skillfed

google-cloud-dns

Google Cloud DNS API client library

google-cloud-dns v0.37.0 406.9K downloads/30d#6,893 on PyPI5,373
Permissive license Apache 2.0 Active released

What it is and what it does

google-cloud-dns is the official Python client for Google Cloud DNS, a managed DNS hosting service on GCP. It wraps the Cloud DNS API to let you create, read, update, and delete DNS zones and resource record sets programmatically. The library depends only on google-cloud-core, keeping the dependency footprint minimal.

You use it to automate DNS management tasks—registering domains, updating records, managing zone configurations—without manual console interaction. It's built for developers running applications on GCP who need to manage DNS as infrastructure code or integrate DNS operations into deployment pipelines.

Use it for:

  • Automate DNS record creation and updates during application deployment or infrastructure provisioning.
  • Manage multi-environment DNS configurations (dev, staging, production) programmatically.
  • Build DNS management tools or dashboards that interact with GCP DNS zones.
  • Integrate DNS operations into CI/CD pipelines for dynamic DNS updates.
  • Sync DNS records between GCP and other systems via custom scripts.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Python client library for Google Cloud DNS API that lets you manage DNS records and zones for applications hosted on Google Cloud Platform.

Yes, if you manage DNS on GCP. The library is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive license. It's the standard way to interact with Cloud DNS from Python. The only gotcha is the hard requirement for Python >= 3.10 and valid GCP credentials.

Install

google-cloud-dns on PyPI

pip

pip install google-cloud-dns

uv

uv add google-cloud-dns

poetry

poetry add google-cloud-dns

Installing google-cloud-dns

Before you install

Low install friction; single lightweight dependency on google-cloud-core. Actively maintained with recent releases; repository shows active development and community engagement.

License in practice

Apache 2.0 permissive license allows free use, modification, and distribution in both open-source and commercial projects with minimal restrictions.

Quickstart

pip install google-cloud-dns

from google.cloud import dns
client = dns.Client(project='your-gcp-project')
zone = client.zone('example-zone')
recordsets = zone.list_resource_record_sets()

Requires Python >= 3.10; GCP project with Cloud DNS API enabled and valid authentication credentials configured.

Verify before relying

  • Specific DNS record types and operations supported beyond basic zone/recordset management.
  • Performance characteristics and rate limits for bulk DNS operations.
  • Whether the library supports all current Cloud DNS API features or lags behind the service.

Package facts

License Apache 2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 1 — google-cloud-core
Maintenance actively maintained — 99 days since the last release
Last repo commit
First released
Downloads 406,879/month — #6,893 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: google_cloud_dns-0.37.0-py3-none-any.whl

Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Internet

Tags

google cloud dns python clientmanage dns records gcpcloud dns api librarydns zone management pythongcp dns automationcloud dns python sdk
gcp-integrationdns-managementinfrastructure-as-code

More Internet packages

botocore

Botocore provides low-level, data-driven access…

permissive · top 100 on PyPI

aiobotocore

Provides an async client for AWS services using…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

filelock

Provides a platform-independent file locking…

permissive · top 100 on PyPI

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

googleapis-common-protos

Provides common Protocol Buffer message…

permissive · top 100 on PyPI

google-cloud-monitoring

Python client library for Google Cloud…

permissive · top 1,000 on PyPI

google-cloud-access-context-manager

Python client library for Google Cloud Access…

permissive · top 5,000 on PyPI

google-cloud-build

Python client library for Google Cloud Build…

permissive · top 1,000 on PyPI

google-cloud-orchestration-airflow

Python client library for managing Apache…

permissive · top 1,000 on PyPI

dns-lexicon

dns-lexicon provides a unified Python interface…

permissive · top 15,000 on PyPI

google-cloud-billing

Programmatic access to Google Cloud Platform…

permissive · top 15,000 on PyPI

google-cloud-logging

Writes log entries to Google Cloud Logging and…

permissive · top 1,000 on PyPI

google-cloud

A deprecated umbrella package that once…

permissive · top 5,000 on PyPI

google-compute-engine

Provides Python bindings and utilities for…

permissive · top 15,000 on PyPI

google-api-python-client

Provides Python bindings to call Google's…

permissive · top 1,000 on PyPI