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

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

## 安装

```sh
sudo av install brew:dnstracer
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dnstracer
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dnstracer
```

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

### Linux

- apk (92%):

```sh
sudo apk add dnstracer
```

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

- Debian apt (92%):

```sh
sudo apt install dnstracer
```

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

- dnf (92%):

```sh
sudo dnf install dnstracer
```

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

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

- zypper (92%):

```sh
sudo zypper install dnstracer
```

  证据: openSUSE Tumbleweed package metadata: dnstracer from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:dnstracer
- **软件包管理器:** Homebrew
- **版本:** 1.9
- **来源摘要:** Trace a chain of DNS servers to the source
- **主页:** <https://www.mavetju.org/unix/dnstracer.php>
- **最后更新:** 2026-07-17T01:00:37-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dnstracer (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

dnstracer is a small DNS troubleshooting tool that follows the delegation chain for a name back toward authoritative servers. Its history is thinly documented, but the official pages show an early-2000s Unix utility aimed at explaining how DNS answers are reached.

### 项目历史

The Mavetju project page explains dnstracer as a tool that determines where a DNS server gets information from and follows the chain of DNS servers back to the servers that know the data. The page revision marker is from November 2002, and the man-page source marker is from January 2002.

The manual page, dated July 8, 2004, documents the classic behavior: send non-recursive queries, follow authority records, detect lame servers, and stop after all name servers are queried. The official 1.9 source tarball was still being served by the Mavetju site with a 2008 last-modified timestamp.

### 采用历史

dnstracer's adoption is mostly as a packaged Unix DNS diagnostic, not as an actively branded upstream project. Homebrew and other Unix package managers keep it available because it does one old-school job that overlaps with, but is not identical to, dig +trace.

### 使用方式

Users run dnstracer with a domain name and optional query type or starting server. It is useful for visualizing referrals, cached answers, authoritative answers, missing glue, lame servers, and PTR/SOA/MX tracing paths.

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

dnstracer is package-nerd significant as a fossil utility that still earns a slot in package managers: no service, no config, no credentials, just a compact DNS delegation tracer whose behavior is easy to compare across Unix systems.

### 时间线

- 2002: Mavetju dnstracer project and man-page revision markers appear on the official pages.
- 2004: Manual page dated July 8, 2004.
- 2008: Official dnstracer 1.9 source tarball served with a February 10 last-modified timestamp.
- 2026: Homebrew still carries dnstracer as a packaged DNS diagnostic.

### Related projects

- dig +trace is the common modern comparison point for DNS delegation tracing. traceroute is the conceptual naming relative, but dnstracer traces DNS authority paths rather than network hops.

### 来源

- <https://www.mavetju.org/unix/dnstracer.php>
- <https://www.mavetju.org/unix/dnstracer-man.php>
- <http://www.mavetju.org/download/dnstracer-1.9.tar.gz>
- <https://formulae.brew.sh/formula/dnstracer>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

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

- Debian apt - dnstracer - 1.9-8: normalized package name match | Debian stable package indexes: dnstracer from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | trace DNS queries to the source | http://www.mavetju.org/unix/dnstracer.php
- Nix - dnstracer: normalized package name match | nixpkgs package indexes: pkgs/by-name/dn/dnstracer/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - dnstracer - 1.9-8build1: normalized package name match | Ubuntu 24.04 LTS package indexes: dnstracer from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | trace DNS queries to the source | http://www.mavetju.org/unix/dnstracer.php
- apk - dnstracer - 1.10-r3: normalized package name match | Alpine Linux edge package indexes: dnstracer from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Trace a chain of DNS servers to the source | http://www.mavetju.org/unix/dnstracer.php
- apk - dnstracer-doc - 1.10-r3: normalized package name match | Alpine Linux edge package indexes: dnstracer-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Trace a chain of DNS servers to the source (documentation) | http://www.mavetju.org/unix/dnstracer.php
- dnf - dnstracer - 1.10-12.fc45: normalized package name match | Fedora Rawhide package metadata: dnstracer from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Trace DNS queries to the source | http://www.mavetju.org/unix/dnstracer.php
- zypper - dnstracer - 1.10-1.21: normalized package name match | openSUSE Tumbleweed package metadata: dnstracer from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Trace a DNS record to its start of authority | https://www.mavetju.org/unix/dnstracer.php
- MacPorts - dnstracer: normalized package name match | MacPorts ports tree: net/dnstracer/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/dnstracer.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dnstracer.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
