Skip to main content

Update or create a dns record through the DigitalOcean API.

Project description


Update or create a dns record through the DigitalOcean API.


This script makes the assumption that there is only one FQDN that matches a given combination of name and record type. So if you have two A records for, this script might fail or delete one of them, depending on what I have implemented at that moment.

Right now it simply sets all records that the DO API returned for the given combination to the given --data. I might even try to fix this shortcoming in the future.

Multiple --type arguments with their own address each for updating A and AAAA in one go would also be nice.

It also exposes your DO API token in the process list while running. You have to trust your local machine.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for do-update-fqdn, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size do_update_fqdn-0.2.0-py3-none-any.whl (4.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size do-update-fqdn-0.2.0.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page