Update or create a dns record through the DigitalOcean API.
Project description
do-update-fqdn
Update or create a dns record through the DigitalOcean API.
Caveats
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 foo.example.com, 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.
Source Distribution
Built Distributions
Hashes for do_update_fqdn-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d81f1c526c4ba42bf47e80decb3241c74c681605625358de7789ed3a0b0584c3 |
|
MD5 | bcabb62a50a24a0abd83dcb5622c5136 |
|
BLAKE2b-256 | 8c8f0fd25daa51795f9caa63fb23d97add54210bd89a6e2a206c385d15b7a4a7 |