# Install lexicon with Homebrew, Nix, apt

Manipulate DNS records on various DNS providers in a standardized way. Version 3.25.2 via Homebrew; verified 2026-06-20.

## Install

```sh
sudo av install brew:lexicon
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install lexicon
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#lexicon
```

  Evidence: nixpkgs package indexes: lexicon from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- Ubuntu apt (92%):

```sh
sudo apt install lexicon
```

  Evidence: Ubuntu 24.04 LTS package indexes: lexicon from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

## Package facts

- **Package key:** brew:lexicon
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/lexicon>
- **Version:** 3.25.2
- **Source summary:** Manipulate DNS records on various DNS providers in a standardized way
- **Homepage:** <https://github.com/dns-lexicon/dns-lexicon>
- **Repository:** <https://github.com/dns-lexicon/dns-lexicon>
- **Upstream docs:** <https://dns-lexicon.github.io/dns-lexicon>
- **License:** MIT
- **Source archive:** <https://files.pythonhosted.org/packages/4b/37/291063606930c749681b2ad0612952b1bc5374ab2037346566812ba8f2c9/dns_lexicon-3.25.2.tar.gz>
- **Last updated:** 2026-06-20T11:14:59Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- lexicon (cli)
- lexicon (alias)

## Dependencies

- certifi
- cryptography
- libyaml
- python@3.14

## Uses from macOS

- libxml2
- libxslt

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 3.25.2
- Package-manager updated: 2026-06-20
- Local data: ok
- Upstream repository: https://github.com/dns-lexicon/dns-lexicon
- info: No cached GitHub release or tag data was available.
## Project history and usage

DNS-Lexicon, packaged by Homebrew as `lexicon`, is a CLI and Python library for manipulating DNS records through a provider-neutral interface. Its practical niche is automation: scripts and certificate clients can create TXT, A, CNAME, and other records without learning each DNS provider API.

### Project history

Lexicon began in the `AnalogJ/lexicon` repository, created on February 2, 2016. The original project described itself as a standardized way to manipulate DNS records across providers and accumulated a large provider-oriented ecosystem.

The project moved to the `dns-lexicon/dns-lexicon` repository starting with version 3.20.0. The old repository README directs users and issue reporters to the new repository, while the DNS-Lexicon changelog records 3.20.0 on December 12, 2024 and subsequent 3.20.x/3.21.x releases in the new line.

### Adoption history

Lexicon's adoption is tied to ACME DNS-01 automation. The PyPI project page for `dns-lexicon` version 2.1.22 stated that Lexicon was designed for automation, specifically Let's Encrypt, and the official docs include installation, Docker, configuration, provider options, integration, and developer-guide sections for adding providers.

### How it is used

As a CLI, Lexicon takes a provider name followed by create, update, delete, or list operations for DNS records. As a library, it exposes the same idea to Python code through a common client/configuration layer. Credentials live in provider-specific configuration, so automation can swap DNS providers with less custom glue.

### Why package nerds care

Package nerds care about Lexicon because it is adapter glue packaged as a first-class tool. It turns dozens of vendor APIs into one command surface, making certificate automation, dynamic DNS workflows, and infrastructure scripts more portable.

### Timeline

- 2016: The original `AnalogJ/lexicon` repository was created on February 2, 2016.
- 2019: DNS-Lexicon changelog entries show the 3.1.x and 3.2.x release line in active use.
- 2024: Version 3.19.0 was released from the original repository on December 6, 2024.
- 2024: Version 3.20.0 on December 12, 2024 marked the move to `dns-lexicon/dns-lexicon`.
- 2026: The documentation changelog records 3.25.2 on May 10, 2026.

### Related projects

- Lexicon is related to Let's Encrypt and ACME DNS-01 clients such as Certbot and dehydrated hooks. It also sits beside DNS automation tools such as lego, acme.sh integrations, octoDNS, and provider-specific DNS plugins.

### Sources

- <https://api.github.com/repos/AnalogJ/lexicon>
- <https://api.github.com/repos/dns-lexicon/dns-lexicon>
- <https://dns-lexicon.github.io/dns-lexicon/>
- <https://dns-lexicon.github.io/dns-lexicon/changelog.html>
- <https://dns-lexicon.github.io/dns-lexicon/user_guide.html>
- <https://formulae.brew.sh/formula/lexicon>
- <https://github.com/AnalogJ/lexicon>
- <https://github.com/dns-lexicon/dns-lexicon>
- <https://pypi.org/project/dns-lexicon/2.1.22/>


## Security Notes

No matching local secret-handling manifest was found for lexicon. Nucleus package metadata is still published here so future coverage has a stable package URL.



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: $CONFIG_DIR/lexicon.yml, $CONFIG_DIR/lexicon_<provider>.yml

## Credential files

- Unix: $CONFIG_DIR/lexicon.yml, $CONFIG_DIR/lexicon_<provider>.yml
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** lexicon
- **Version Scheme:** 0
- **Revision:** 2
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - lexicon: normalized package name match | nixpkgs package indexes: lexicon from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - lexicon - 3.17.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: lexicon from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | CLI for manipulating DNS records on various DNS providers | https://github.com/AnalogJ/lexicon
- Ubuntu apt - python3-lexicon - 3.17.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-lexicon from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Manipulate DNS records on various DNS providers (Python 3) | https://github.com/AnalogJ/lexicon


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [octodns](https://www.automicvault.com/pkg/brew/octodns/) - Shares av.db curated category or tags: automation, cli, dns, networking.
- [adns](https://www.automicvault.com/pkg/brew/adns/) - Shares av.db curated category or tags: cli, dns, networking.
- [aliddns](https://www.automicvault.com/pkg/brew/aliddns/) - Shares av.db curated category or tags: cli, dns, networking.
- [bind](https://www.automicvault.com/pkg/brew/bind/) - Shares av.db curated category or tags: cli, dns, networking.
- [c-ares](https://www.automicvault.com/pkg/brew/c-ares/) - Shares av.db curated category or tags: cli, dns, networking.
- [cdncheck](https://www.automicvault.com/pkg/brew/cdncheck/) - Shares av.db curated category or tags: cli, dns, networking.
- [checkdmarc](https://www.automicvault.com/pkg/brew/checkdmarc/) - Shares av.db curated category or tags: cli, dns, networking.
- [chinadns-c](https://www.automicvault.com/pkg/brew/chinadns-c/) - Shares av.db curated category or tags: cli, dns, networking.
- [dnsviz](https://www.automicvault.com/pkg/brew/dnsviz/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, cryptography, dns, networking, python.

## Combined YAML source

View the package source record on GitHub. [combined/lexicon.yml](https://github.com/automic-vault/db/blob/main/combined/lexicon.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
