Small DNS updater to keep Digital Ocean domain records up to date with a DDNS. This code uses ipify.org to get the public IPv4 address of the local machine and updates a given Digital Ocean record.
- Currently this project only supports A records with IPv4 addresses.
- Meant to be ran periodically on a cron timer.
-d- Domain to update on
-r- Record to update on domain
-k- Digital Ocean API key (get a key here)
-c- Allow new record to be created if it doesn't exist
-v- increase logging verbosity (log is written to install directory)
apt install python python-pip
git clone https://github.com/mtverlee/dnsUpdater
pip install -r requirements.txt
python updater.py --domain <domain> --record <record> --key <key> --verbosity
- Please feel free to file issues or create pull requests! All input is welcome.