Helper scripts for updating a dynamic DNS domain name.
Uses ip addr and curl to get your IPs, sends them out with nsupdate.
-
Set up your dynamic DNS zone:
mkdir /var/lib/bindtouch /var/lib/bind/db.dynamic.example.com.jnl- copy and edit
db.dynamic.example.comto/var/lib/bind - insert and edit the contents of
named.conf.localinto your/etc/bind/named.conf.local - run
ddns-confgenand copy the generatedkeyto /etc/bind - make sure the key is only readable by the bind user
-
On your clients:
- get the keyfile, chmod it to be only be readable by the user which the script will run as
- Copy
config.exampleto a file namedconfig - Edit
configto your desires - Execute:
SEND=false ./update # to see what would be sent
./update # to actually send itThese are the minimum requirements for running the script on a client:
- nsupdate
can be found in the dnsutils package on most distros - bash
- GNU awk
can be found in the gawk package - curl
- ip utility
can be found in the iproute2 package