google-cloud-dns
Google Cloud DNS API client library
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-dnsuv
uv add google-cloud-dnspoetry
poetry add google-cloud-dnsInstalling 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
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
google-cloud-monitoringPython client library for Google Cloud…
permissive · top 1,000 on PyPI
google-cloud-access-context-managerPython client library for Google Cloud Access…
permissive · top 5,000 on PyPI
google-cloud-buildPython client library for Google Cloud Build…
permissive · top 1,000 on PyPI
google-cloud-orchestration-airflowPython client library for managing Apache…
permissive · top 1,000 on PyPI
dns-lexicondns-lexicon provides a unified Python interface…
permissive · top 15,000 on PyPI
google-cloud-billingProgrammatic access to Google Cloud Platform…
permissive · top 15,000 on PyPI
google-cloud-loggingWrites log entries to Google Cloud Logging and…
permissive · top 1,000 on PyPI
google-cloudA deprecated umbrella package that once…
permissive · top 5,000 on PyPI
google-compute-engineProvides Python bindings and utilities for…
permissive · top 15,000 on PyPI
google-api-python-clientProvides Python bindings to call Google's…
permissive · top 1,000 on PyPI