# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix 安装 dnstop

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

## 安装

```sh
sudo av install brew:dnstop
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dnstop
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dnstop
```

  证据: MacPorts ports tree: net/dnstop/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add dnstop
```

  证据: Alpine Linux edge package indexes: dnstop from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install dnstop
```

  证据: Debian stable package indexes: dnstop from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install dnstop
```

  证据: Fedora Rawhide package metadata: dnstop 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#dnstop
```

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

## 软件包事实

- **软件包键:** brew:dnstop
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dnstop>
- **版本:** 20140915
- **来源摘要:** Console tool to analyze DNS traffic
- **主页:** <http://dns.measurement-factory.com/tools/dnstop/index.html>
- **上游文档:** <http://dns.measurement-factory.com/tools/dnstop/index.html>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://cdn.netbsd.org/pub/pkgsrc/distfiles/dnstop-20140915.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- dnstop (cli)
- dnstop (别名)

## macOS 提供的库

- libpcap
- ncurses

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 20140915
- 本地数据: OK
- 上游仓库: http://dns.measurement-factory.com/tools/dnstop/index.html
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

dnstop is a curses-style libpcap tool for watching DNS traffic tables from a live interface or packet capture. It is the DNS equivalent of a focused top-like view: small, old, and still useful when a resolver or network segment is producing strange query traffic.

### 项目历史

The Measurement Factory publicity page says dnstop was written with research into large amounts of bogus traffic received by root DNS servers and was originally presented at NANOG26. The project site and README describe the core feature set: tables for source and destination addresses, query types, response codes, opcodes, and domain levels.

The man page is dated March 21, 2008 and names Duane Wessels, Mark Foster, Jose Nazario, and other contributors. In 2018, the official source page was updated to point to the GitHub repository as the maintained source location while keeping the old source directory for tarballs and individual files.

### 采用历史

dnstop spread early through operator communities. The official source page lists portability notes for Mac OS X with fink, FreeBSD Ports, NetBSD Packages, Gentoo Portage, Debian unstable, EPEL, Linux source builds, and Solaris. The publicity page preserves 2002 and 2003 operator feedback from people running it on DNS, mail, FreeBSD, and Solaris systems.

### 使用方式

Users run dnstop on a network device or read a tcpdump savefile. It can filter for unknown TLD leakage, RFC1918 PTR leakage, REFUSED, SERVFAIL, NXDOMAIN, and other DNS patterns, then switch between live tables interactively or print top entries from a capture in non-interactive mode.

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

dnstop is the kind of small C network utility that package maintainers like because it has a clear job and few moving parts: libpcap plus a terminal UI. Its significance is historical as much as practical: it came from root-DNS measurement work and became a standard packaged tool for DNS traffic triage.

### 时间线

- 2002: dnstop presented at NANOG26 according to the official publicity page.
- 2003: Publicity page records operator adoption feedback after the root-DNS traffic research.
- 2008: dnstop manual page dated March 21, 2008.
- 2018: Official source page updated to point to the GitHub repository.
- 2026: GitHub repository metadata shows continued maintenance activity.

### Related projects

- tcpdump and libpcap are the closest technical relatives: dnstop reads live captures or pcap savefiles. DNS measurement work at The Measurement Factory is the historical context, and DNS-OARC-style operator tooling is the cultural neighborhood.

### 来源

- <http://dns.measurement-factory.com/tools/dnstop/index.html>
- <http://dns.measurement-factory.com/tools/dnstop/source.html>
- <http://dns.measurement-factory.com/tools/dnstop/publicity.html>
- <http://dns.measurement-factory.com/tools/dnstop/dnstop.8.html>
- <https://github.com/measurement-factory/dnstop>
- <https://api.github.com/repos/measurement-factory/dnstop>
- <https://formulae.brew.sh/formula/dnstop>


## 安全说明

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:** dnstop
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Debian apt - dnstop - 20240820-1: normalized package name match | Debian stable package indexes: dnstop from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | console tool to analyze DNS traffic | http://dns.measurement-factory.com/tools/dnstop/
- Nix - dnstop: normalized package name match | nixpkgs package indexes: pkgs/by-name/dn/dnstop/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - dnstop - 20120611-2build5: normalized package name match | Ubuntu 24.04 LTS package indexes: dnstop from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | console tool to analyze DNS traffic | http://dns.measurement-factory.com/tools/dnstop/
- apk - dnstop - 20140915-r8: normalized package name match | Alpine Linux edge package indexes: dnstop from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A DNS traffic capture utility | http://dns.measurement-factory.com/tools/dnstop/
- apk - dnstop-doc - 20140915-r8: normalized package name match | Alpine Linux edge package indexes: dnstop-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A DNS traffic capture utility (documentation) | http://dns.measurement-factory.com/tools/dnstop/
- dnf - dnstop - 20140915-29.git20240708.fc45: normalized package name match | Fedora Rawhide package metadata: dnstop from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Displays information about DNS traffic on your network | http://dns.measurement-factory.com/tools/dnstop/
- MacPorts - dnstop: normalized package name match | MacPorts ports tree: net/dnstop/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [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.
- [Web development packages](https://pkg.so/zh-hans/web-dev-tools/) - Matched web development metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [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.
- [knot](https://pkg.so/zh-hans/brew/knot/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [sniffer](https://pkg.so/zh-hans/brew/sniffer/) - Local package facts share a topical domain. Shared terms: analysis, capture, cli, monitoring, networking.
- [httpflow](https://pkg.so/zh-hans/brew/httpflow/) - Local package facts share a topical domain. Shared terms: analysis, capture, cli, networking, packet.
- [fprobe](https://pkg.so/zh-hans/brew/fprobe/) - Local package facts share a topical domain. Shared terms: analysis, cli, libpcap, monitoring, networking.

## Combined YAML source

View the package source record on GitHub. [combined/dnstop.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dnstop.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
