Digital Ocean Dynamic DNS

Visit site

This script allows you to dynamically update a DO domain name 'A' record, a'la mini dynamic-dns.

Usage Example

Simply enter your D.O. client credentials at the top of the script. Set the domain you want to update and the ‘Record’ for that domain and schedule the script to run however often you want (using for example the Windows Scheduler or a cron job).

My home server has a sticky IP, I want to be able to connect to it remotely using:

home.joebloggs.com

I’d create an ‘A’ record in DO with the hostname ‘home’, under the domain ‘joebloggs.co.uk’ and while I was there retrieve my API credentials.

If you’re using the python or updater.php script you’ll need a (client ID & key, v1 of the API). If however your using the v2 of the API (updater-v2.php and recommended) then you’ll need to generate a ‘Personal Access Token’.

by: Ben SquireSeptember 23, 2014Visit site

Was this helpful?
 
2 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.

I’ve been thinking about making a quick small .NET application that sits and watches your IP, and only pushes an update when the IP changes. Glad I’m not the only one thinking about this. I wish I could have my router natively do this : (

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.

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.