# 使用 Homebrew, dnf, Nix 安装 dnsx

查看 dnsx 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:dnsx
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dnsx
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install dnsx
```

  证据: Fedora Rawhide package metadata: dnsx from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#dnsx
```

  证据: nixpkgs package indexes: pkgs/by-name/dn/dnsx/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:dnsx
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dnsx>
- **版本:** 1.3.0
- **来源摘要:** DNS query and resolution tool
- **主页:** <https://github.com/projectdiscovery/dnsx>
- **仓库:** <https://github.com/projectdiscovery/dnsx>
- **许可证:** MIT
- **源码归档:** <https://github.com/projectdiscovery/dnsx/archive/refs/tags/v1.3.0.tar.gz>
- **最后更新:** 2026-07-25T14:21:57-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- dnsx (cli)
- dnsx (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.3.0
- 管理器更新时间: 2026-07-25
- 本地数据: OK
- 上游仓库: https://github.com/projectdiscovery/dnsx
- 检测到的最新版本: v1.3.0 (当前)
## 项目历史与用法

dnsx is ProjectDiscovery's fast DNS query and resolution CLI, built for reconnaissance pipelines and bulk probing rather than interactive DNS administration.

Its history is mainly the history of ProjectDiscovery standardizing bug-bounty and attack-surface tooling around composable Go CLIs that stream data through stdin and stdout.

### 项目历史

The public release line starts with v1.0.0 in November 2020, and subsequent releases kept dnsx in the ProjectDiscovery toolkit alongside tools such as subfinder, httpx, naabu, nuclei, and shuffledns.

The documentation and README frame dnsx as a retryabledns-based toolkit for multiple DNS query types, custom resolvers, brute-force resolution, and wildcard handling.

### 采用历史

dnsx became part of the common ProjectDiscovery reconnaissance workflow: subdomain inputs from one tool can be resolved and filtered through dnsx, then passed onward to HTTP probing or vulnerability scanning tools.

Packaging in Homebrew, Fedora, Nix, and Kali reflects adoption by both developer workstations and security-testing distributions.

### 使用方式

dnsx is commonly used to resolve lists of domains, query specific DNS record types, use custom resolver pools, brute-force names, and remove wildcard DNS noise from large candidate sets.

Its stdin/stdout design makes it useful in shell pipelines and CI-style scanning jobs.

### 为什么软件包爱好者会关心

dnsx matters less as a novel DNS protocol implementation and more as a modern packaging example: a single static-ish Go CLI designed to be chained with a security-tool ecosystem.

The package shows how DNS utilities have moved from administrator-only troubleshooting toward high-volume reconnaissance and asset inventory workflows.

### 时间线

- 2020: dnsx v1.0.0 was released as a ProjectDiscovery DNS toolkit.
- 2021-2023: v1.0.x and v1.1.x releases broadened the tool while it became a regular component of ProjectDiscovery reconnaissance pipelines.
- 2024: v1.2.0 and later releases continued the Go module and packaging lifecycle.
- 2025: v1.2.3 release activity shows the project still being maintained.

### Related projects

- ProjectDiscovery siblings include subfinder for subdomain discovery, httpx for HTTP probing, naabu for port scanning, nuclei for template-based scanning, and shuffledns for mass DNS resolution with wildcard filtering.
- dnsx is also related to retryabledns, the Go library it uses for resilient DNS probing.

### 来源

- <https://docs.projectdiscovery.io/opensource/dnsx/overview>
- <https://docs.projectdiscovery.io/opensource/dnsx/usage>
- <https://docs.projectdiscovery.io/opensource/dnsx/running>
- <https://github.com/projectdiscovery/dnsx>
- <https://github.com/projectdiscovery/dnsx/releases>
- <https://www.kali.org/tools/dnsx/>
- <https://formulae.brew.sh/formula/dnsx>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

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

## 其他软件包管理器记录

- Nix - dnsx: normalized package name match | nixpkgs package indexes: pkgs/by-name/dn/dnsx/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - dnsx - 1.3.0-1.fc45: normalized package name match | Fedora Rawhide package metadata: dnsx from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Dnsx is a fast and multi-purpose DNS toolkit | https://github.com/projectdiscovery/dnsx


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://pkg.so/zh-hans/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [massdns](https://pkg.so/zh-hans/brew/massdns/) - Shares pkgdb curated category or tags: cli, dns, networking, reconnaissance.
- [libidn2](https://pkg.so/zh-hans/brew/libidn2/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [libidn](https://pkg.so/zh-hans/brew/libidn/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [dnsmasq](https://pkg.so/zh-hans/brew/dnsmasq/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [ldns](https://pkg.so/zh-hans/brew/ldns/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [bind](https://pkg.so/zh-hans/brew/bind/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [doggo](https://pkg.so/zh-hans/brew/doggo/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [dnscrypt-proxy](https://pkg.so/zh-hans/brew/dnscrypt-proxy/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [dns-query](https://pkg.so/zh-hans/npm/dns-query/) - Local package facts share a topical domain. Shared terms: cli, dns, dns-query, networking, query.
- [aliddns](https://pkg.so/zh-hans/brew/aliddns/) - Local package facts share a topical domain. Shared terms: cli, dns, networking.

## Combined YAML source

View the package source record on GitHub. [combined/dnsx.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dnsx.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
