Skip to content

nicvw/do_dyndns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Digital Ocean DynDNS Script

Description

Update an 'A' or 'AAAA' record with your external IP address on a domain managed by Digital Ocean using their v2 API. There are more complete packages and scripts out there for interacting with the Digital Ocean API, indeed there are other Digital Ocean dynamic DNS scripts too. So why did I write my own, perhaps so I could reinvent a slightly less-round wheel?

Requirements

It is also written for Python 3 only, because it is 2017 for goodness' sake. For better or worse this script has some third-party package dependencies, namely:

  • requests
  • ipify

Run this command to install them:

pip3 install requests ipify

Usage

The script requires three inputs, the domain being managed by Digital Ocean, the name of the record you with to create/update and your API access token available here

python3 do_dyndns.py <domain> <record> <api-token>

Example

Should I wish to create/update the record for test.example.com

python3 do_dyndns.py example.com test apitoken123qwe

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages