gcpdns
A Python module and CLI for managing zones and resource record sets on Google Cloud DNS
Features
Dump all project zones names in CSV and/or JSON format
Dump all zone resource record sets in CSV and/or JSON format
Create and delete zones via CLI or CSV
Create and delete resource record sets via CLI
Update DNS resource records for multiple zones in one project using one CSV file
Automatically split TXT records longer than 255 characters when publishing
Automatically add an ending . to records when needed
CLI
Usage: gcpdns [OPTIONS] CREDENTIAL_FILE COMMAND [ARGS]... gcpdns: A CLI for managing zones and resource record sets on Google Cloud DNS. Options: --version Show the version and exit. --verbose Enable verbose logging. --help Show this message and exit. Commands: record Manage DNS resource record sets. zone Manage DNS zones.
gcpdns record
Usage: gcpdns record [OPTIONS] COMMAND [ARGS]... Manage DNS resource record sets. Options: --help Show this message and exit. Commands: create Create a resource record set (Data fields separated by |). delete Delete a resource record set dump Dump a list of DNS resource records. update Create, replace, and delete resource record sets using a CSV file.
gcpdns zone
Manage DNS zones. Options: --help Show this message and exit. Commands: create Create a DNS zone. delete Delete a DNS zone and all its resource records. dump Dump a list of DNS zones. update Create and delete zones using a CSV file.
Installation
Use pip (or pip3 for Python 3).
sudo -H pip install gcpdns
Setup
To use gcpdns, you’ll need a separate service account credentials JSON file for each GCP project that you want to work with.
Ensure that the Service Account has the proper permissions to edit DNS (e.g. the DNS Administrator role) in the project.
Zone CSV fields
action
create - Creates a zone
delete - Deletes a zone
dns_name - The zone’s DNS name
gcp_name - The zone’s name in GCP (optional)
description - The zone’s description (optional)
Record CSV fields
action
create - Creates a resource record set
replace - The same as create, but will replace an existing resource record set with the same name and record_type (if it exists)
delete - Deletes a resource record set
name - The record set name (i.e. the Fully-Qualified Domain Name)
record_type - The DNS record type
ttl - DNS time to live (in seconds)
data - DNS record data separated by |
Metadata
Release files for gcpdns 1.2.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gcpdns-1.2.9.tar.gz | 7.7 kB | Without provenance | Details for gcpdns-1.2.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gcpdns-1.2.9-py3-none-any.whl | Python 3 | none | any | Details for gcpdns-1.2.9-py3-none-any.whl |
Total release size: 19.1 kB
Release files / gcpdns-1.2.9.tar.gz
| Download URL | gcpdns-1.2.9.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
782ae8755d02cd76b5452bd9944cc908d150f6ce2e03baa445b7ad433b2e1c4a
|
|
BLAKE2b-256 checksum How to use checksums |
c28867f1ed8efa74dc59bd7ae44f82834be2cdf0dac20555a9e1a58c5d49155e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|
Release files / gcpdns-1.2.9-py3-none-any.whl
| Download URL | gcpdns-1.2.9-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b114507f1605bd9eb75885f033f0ec99ad077a5d61833e506791e0ca7dc6dcf0
|
|
BLAKE2b-256 checksum How to use checksums |
75dc4dd3ca221b00fc9ffe6861e11d38069bbdb954bc4508f9648bd1610c2d77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|
Security for gcpdns 1.2.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.