A dynamic dns updater for DigitalOcean that sets the specified records to the current WAN ip.
dns-updater.exe [OPTIONS] --api-key <DO_API_KEY> --domain <DOMAINS>
Options:
-a, --api-key <DO_API_KEY>
API key for DigitalOcean
-m, --update-interval <UPDATE_INTERVAL>
How often (in minutes) to check WAN IP and update records. If unset the records will only be updated once and then the program will exit
-A, --apply
If this flag is **NOT** set the program will only validate that the specified domain records are of type A/AAAA depending on WAN ip type. It will also preview the changes that would be made
-d, --domain <DOMAINS>
List of fully qualified domain names to update the values for
-S, --skip-warning
If this flag is set the 10 second warning on startup will not be shown before applying record changes
-h, --help
Print help
dns-updater --api-key key_with_write_access -d @.example.com -d subdomain.example.com
dns-updater --api-key key_with_write_access -d @.example.com -d subdomain.example.com -A
dns-updater --api-key key_with_write_access -d @.example.com -AS
Update records now and also skip 10 second warning on startup, and then keep updating records every 30 minutes
dns-updater --api-key key_with_write_access -d @.example.com -ASm 30
A text file is created on startup in the working directory that contains a list of api endpoints for querying the current WAN IP. It's then read before every record update.
By default the following endpoints are included: