Skip to content

zeblau/Digital-Ocean-Dynamic-DNS-Updater

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Digital-Ocean-Dynamic-DNS-Updater

Purpose:

Allows the dynamic updating of an 'A' record that is managed by Digital Oceans domain server.

Liberated From:

The original script and idea (i.e. the brains behind the whole thing) was lovingly taken from:

http://pushingkarma.com/notebook/dynamic-dns-your-home-pc-using-digitaloceans-api/

However it was written using Python v2, I had installed v3 so adapted the script as best I could.

Additions:

I then decided it would be cool to also convert it into PHP (I know at least 1 other person that would find it useful) so that's what I did, enjoy!

Usage:

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).

E.g:

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 your 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'.

About

Digital Ocean Dynamic DNS Updater

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 76.7%
  • Python 23.3%