Digital Ocean dynamic DNS update script with Perl and LWP.
Supports updating multiple subdomains and wildcard A records and provides detailed timestamped logging to keep track of when your IP address changes as well as if there are any connectivity issues with the service.
This script will query an external service for your public IP, compare it with the IP address for the DNS record, and update the IP address (if it has changed) via the Digital Ocean DNS API.
This is useful in cases where you have a server on your home connection which may get a new IP address from time to time.
by: Chris HandwerkerMay 23, 2016Visit site
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Have you created an Integration, API Wrapper, Service, or other Tool that helps developers build on DigitalOcean? Help users find it by listing it in Community Tools.
Here’s an alternative I wrote, which I think is much more secure.
https://github.com/benyanke/configScripts/tree/master/dns-update-server
In this case, the DO api key only exists on a single central API server with this script, and every other host can connect to this api server to inform it of it’s IP. This means your DO keys (which provide complete access to your DO account) are not spread around on multiple hosts.