Dynamic DNS Update Script

Visit site

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.

Was this helpful?
 
1 Comments


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!

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.

Publish your Tool on Community

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.

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel