Client for Dynamic DNS service by FHD GmbH & Co. KG Website: http://www.fhd.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lukas c41e3a8a68 delete file 4 months ago
.gitignore init 2 years ago
README.md changes for release 3.1 2 years ago
fhdyndns.json changes for 3.2 4 months ago
fhdyndns.py changes for 3.2 4 months ago

README.md

FHDynDNS

Client for Dynamic DNS service by FHD GmbH & Co. KG
Website: http://www.fhd.de

Configure DNS

You want to use FHDynDNS? Fine, ok. Your DNS file should look like this:

; Enter Username and Password here, leave it empty for no access
; you can repeat this line severals times for multiuser access.
; user: 	password: 
; dyndns: *,s3cr3t
; dyndns: @,0therS3cr3t
; dyndns: srv1,5p3ci4lS3cr3t
;
; [..] SOA and other DNS stuff [..]
;
@               50      IN      A       4.3.2.1
*               50      IN      A       1.2.3.4
srv1            50      IN      A       2.3.4.1
;

First you should add the dyndns comments at the top of your DNS file. Please notice the ; at the beginning of each line!

; dyndns: <host>,<password>
; dyndns: *,s3cr3t
; dyndns: @,0therS3cr3t
; dyndns: srv1,5p3ci4lS3cr3t

The host is the beginning of your domain. You also can use some custom character:

want to bind character
all subdomains *
the zone it self @
a specific subdomain “srv1” srv1

In the end you should change the TTL of each FHDynDNS host. 50 seconds in my example.

Local configuration

The conf file is located in /etc/fhdydns.json
Let me explain the simple json config file. By default this file shows like this:

{
  "logfile": "/var/log/fhdyndns.log",
  "interval": 5,
  "zones": {
    "example.org": {
      "*": "s3cr3t",
      "@": "0therS3cr3t",
      "srv1": "5p3ci4lS3cr3t"
    }
  }
}

logfile explained it self. The interval in minutes defined the interval of binding ip address to server.

Each zone can have unlimited hosts. Each host need a password witch is setting in the DNS file (Configure DNS). Easy syntax:

<host> : <password>
"*": "s3cr3t",
"@": "0therS3cr3t"