dns-lexicon
Manipulate DNS records on various DNS providers in a standardized/agnostic way
Decision gist · record as of 2026-08-14
Yes. dns-lexicon is actively maintained, has no known vulnerabilities, uses a permissive license, and solves a real problem for anyone managing DNS across multiple providers. The low install friction and broad provider support make it the standard choice for DNS automation, especially in Let's Encrypt workflows. Install it if you need to automate DNS operations or support multiple DNS backends.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Provider-specific API credentials must be configured via environment variables or passed in the config dict.
- Low install friction with a pure-Python wheel distribution.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and imposes no restrictions on use, modification, or redistribution in proprietary or commercial contexts.
last release 2026-05-10 (96 days) · last repo commit 2026-08-10 · 126 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 161,094 downloads/mo, #10,643 on PyPI
Alternatives
Verify before relying
pip install dns-lexicon
from lexicon.client import Client
from lexicon.config import ConfigResolver
config = ConfigResolver().with_env().with_dict({
"provider_name": "cloudflare",
"domain": "example.com",
})
with Client(config) as operations:
operations.create_record("TXT", "foo", "bar")- Whether all listed providers are equally well-maintained or if some have stale implementations.
- Performance characteristics when managing large numbers of DNS records across providers.
- Error handling and retry behavior for transient API failures from DNS providers.
What it is and what it does
dns-lexicon abstracts away the differences between DNS provider APIs, letting you manage DNS records using a single standardized interface. It supports many providers—from major cloud platforms like AWS Route 53, Azure, and Google Cloud DNS to registrars like GoDaddy, Namecheap, and smaller regional providers. You can use it as a command-line tool for one-off operations or import it as a Python library for automation scripts.
The package was designed specifically for Let's Encrypt certificate automation, where you need to prove domain ownership by creating DNS challenge records. It handles the boilerplate of authentication, API calls, and response parsing for each provider, so you write the same code regardless of which DNS backend you're using. Dependencies include requests for HTTP, cryptography for secure operations, dnspython for DNS utilities, and parsing libraries like beautifulsoup4 and pyyaml.
Use it for
- Automate DNS record creation for Let's Encrypt ACME challenges across multiple DNS providers without rewriting provider-specific code.
- Build multi-tenant DNS management tools that support customers using different registrars or DNS hosting services.
- Migrate DNS records between providers by reading from one and writing to another using the same API.
- Create or update DNS records programmatically in CI/CD pipelines for dynamic infrastructure provisioning.
- Manage DNS records for intranet or private network SSL certificates where DNS validation is required.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
dns-lexicon is actively maintained, has no known vulnerabilities, uses a permissive license, and solves a real problem for anyone managing DNS across multiple providers. The low install friction and broad provider support make it the standard choice for DNS automation, especially in Let's Encrypt workflows. Install it if you need to automate DNS operations or support multiple DNS backends.
Install
dns-lexicon on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. Actively maintained with a recent release and steady commit activity. Nine runtime dependencies are all well-established packages (requests, cryptography, dnspython, pyyaml, beautifulsoup4, etc.), so installation should be straightforward.
Requires Python 3.10 or later. Provider-specific API credentials must be configured via environment variables or passed in the config dict.
License in practice
MIT license is permissive and imposes no restrictions on use, modification, or redistribution in proprietary or commercial contexts.
Quickstart
pip install dns-lexicon
from lexicon.client import Client
from lexicon.config import ConfigResolver
config = ConfigResolver().with_env().with_dict({
"provider_name": "cloudflare",
"domain": "example.com",
})
with Client(config) as operations:
operations.create_record("TXT", "foo", "bar")
Verify before relying
- Whether all listed providers are equally well-maintained or if some have stale implementations.
- Performance characteristics when managing large numbers of DNS records across providers.
- Error handling and retry behavior for transient API failures from DNS providers.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 9 packagesbeautifulsoup4cryptographydnspythonimportlib-metadatapyotppyyamlrequests-unixsocketrequeststldextract |
| Maintenance | Actively maintained 96 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 161,094 / month, #10,643 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: System AdministratorsLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Internet :: Name Service (DNS)Topic :: Software Development :: Libraries :: Python ModulesTopic :: System :: Systems AdministrationTopic :: Utilities |
Evidence: dns_lexicon-3.25.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “multi-provider dns api”
- dns-lexicondns-lexicon provides a unified Python interface to create, read,…
- octodnsoctoDNS provides tools to manage DNS records across multiple…
- certbot-dns-multiA Certbot DNS plugin that automates ACME DNS challenges across 117+…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also certbot-dns-multi · octodns · certbot-dns-duckdns · google-cloud-dns · nslookup · dnspython · certbot-dns-directadmin · dnslib · certbot-dns-cloudflare · infoblox-client