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 Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file do-update-fqdn-0.2.0.tar.gz.
File metadata
- Download URL: do-update-fqdn-0.2.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
639a016340cb81cf64fa3e5164f3c241b3b30fc6fabb317f28c8d9649071fab7
|
|
| MD5 |
408f6be15eb882c5aeadbcefe74efaaa
|
|
| BLAKE2b-256 |
e73095b61e0bf674f9a3a6e1a5711c366c27a1e9ace99ff8e3fa956076808118
|
File details
Details for the file do_update_fqdn-0.2.0-py3-none-any.whl.
File metadata
- Download URL: do_update_fqdn-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f95d1ac812fd0852566a4b82c8ffab7c8355a23c92390678099e8fd210e0adc
|
|
| MD5 |
672603f2c006ee344c6dde3e32bfeed7
|
|
| BLAKE2b-256 |
9ff7edbec56d8963354a6c3555774873d9eed8f6c0cc9bcc769184dca94345c8
|