skillfed

octodns

OctoDNS: DNS as code - Tools for managing DNS across multiple providers

octodns v1.21.1 130.6K downloads/30d#11,638 on PyPI3,745
Permissive license MIT Active released

What it is and what it does

octoDNS is a DNS management framework that treats DNS configuration as code, allowing you to define and synchronize DNS records across multiple providers from a single declarative source. It follows infrastructure-as-code principles, letting you store DNS configuration in version control, review changes, and deploy updates alongside your application code.

The package provides a pluggable architecture where each DNS provider is implemented as a provider class that translates between the provider's API schema and octoDNS's unified record model. It depends on PyYaml for configuration parsing, dnspython for DNS operations, and utility libraries (fqdn, idna, natsort, python-dateutil) for record validation and manipulation. The framework is designed to make adding new providers straightforward—typically requiring a single class and a few hundred lines of translation code.

Use it for:

  • Manage DNS records for multiple providers from a single YAML configuration file.
  • Track DNS changes in version control with full audit history and peer review before deployment.
  • Synchronize DNS state across staging and production environments consistently.
  • Automate DNS updates as part of infrastructure deployment pipelines.
  • Migrate DNS records between providers by changing the target provider configuration.

Worth the install?

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

octoDNS provides tools to manage DNS records across multiple providers using a code-based, version-controlled approach, similar to infrastructure-as-code practices.

Yes. octoDNS is production-stable, actively maintained, has low install friction, and solves a real operational problem for teams managing DNS across multiple providers. The MIT license is permissive. Install it if you manage DNS at scale or across multiple providers and want version control and automation; skip it if you only use a single provider's console.

Install

octodns on PyPI

pip

pip install octodns

uv

uv add octodns

poetry

poetry add octodns

Installing octodns

Before you install

Low install friction with six well-established runtime dependencies. Active maintenance: last commit 2026-08-08, release 13 days ago. Production-stable classifier and 3745 repository stars indicate established project.

License in practice

MIT license permits commercial and private use with minimal restrictions—standard permissive terms suitable for most projects.

Quickstart

pip install octodns

import octodns
from octodns.provider.yaml import YamlProvider

provider = YamlProvider('config')

Requires Python 3.10 or later.

Verify before relying

  • Specific list of supported DNS providers and their maturity levels.
  • Performance characteristics when managing large numbers of DNS records.
  • Extent of provider plugin ecosystem and ease of writing custom providers.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 6 — PyYaml, dnspython, fqdn, idna, natsort, python-dateutil
Maintenance actively maintained — 13 days since the last release
Last repo commit
First released
Downloads 130,561/month — #11,638 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: octodns-1.21.1-py3-none-any.whl

Keywords: dns, octodns, dns-as-code

Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: System AdministratorsOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Internet :: Name Service (DNS)Topic :: System :: Systems Administration

Tags

dns as codemulti-provider dns managementdns infrastructure automationdns record version controldns provider abstractiondeclarative dns configurationdns deployment automation
dns-automationinfrastructure-as-codemulti-provider

More Systems Administration packages