A bash script that maintains a dynamic DNS record.
Inspired by:
http://nexus.zteo.com/blog/your-own-dynamic-dns-in-3-steps/
This assumes you have already got your name server configured for remote updates using nsupdate. See below for more details on how to get that part configured.
-
Clone the myddns repo:
git clone https://github.com/rmacduff/myddns.git
-
Make the myddns directory:
mkdir ${HOME}/.myddns
-
Copy the myddns configuration file in the myddns directory:
cp myddns.conf $HOME/.myddns
-
Update myddns.conf with the particulars of your record and domain.
-
Add a cron job to trigger this script. Be nice to the upstream IP provider and don't run it more than once per hour.