# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 20140915
- **来源摘要:** Console tool to analyze DNS traffic
- **主页:** <http://dns.measurement-factory.com/tools/dnstop/index.html>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dnstop (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 20140915
## 项目历史与用法

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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
