Skip to main content

A Python module and CLI for managing zones and resource record sets on Google Cloud DNS

Project description

A Python module and CLI for managing zones and resource record sets on Google Cloud DNS

Usage: gcpdns [OPTIONS] CREDENTIAL_FILE COMMAND [ARGS]...

gcpdns: A CLI for managing resource records 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.

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

Setup

To use gcpdns, you’ll need a separate service account credentials JSON file for each 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 |

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

gcpdns-1.2.6.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

gcpdns-1.2.6-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file gcpdns-1.2.6.tar.gz.

File metadata

  • Download URL: gcpdns-1.2.6.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.7.3rc1

File hashes

Hashes for gcpdns-1.2.6.tar.gz
Algorithm Hash digest
SHA256 58ed87586b1d0b9efe0b8fa7ce8c1df6076646716f6aa94c81708423c1c440ca
MD5 fdc02568cfb8aea69800157f7b854b31
BLAKE2b-256 48e2e29fd96dc71382dca7ce229f080f4a6f2fb83a75b89a4df9907e12cc82be

See more details on using hashes here.

File details

Details for the file gcpdns-1.2.6-py3-none-any.whl.

File metadata

  • Download URL: gcpdns-1.2.6-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.7.3rc1

File hashes

Hashes for gcpdns-1.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f48f06cda44a05180ad9b120e7cd249ef19e5d0d797d71f97ab124a96e8669f6
MD5 3b34deb08e4caeb9b566b586bee509f7
BLAKE2b-256 91f62db7e59b6ac5d3a960454394afd062aa71ab6fb8cf649ac3f8becdf48c70

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page