# 使用 Homebrew, apk, MacPorts, Nix, apt 安装 djbdns

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

## 安装

```sh
sudo av install brew:djbdns
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install djbdns
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install djbdns
```

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

### Linux

- apk (92%):

```sh
sudo apk add djbdns
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#djbdns
```

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

- Debian apt (92%):

```sh
sudo apt install axfrdns
```

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

## 软件包事实

- **软件包键:** brew:djbdns
- **软件包管理器:** Homebrew
- **版本:** 1.05
- **来源摘要:** D.J. Bernstein's DNS tools
- **主页:** <https://cr.yp.to/djbdns.html>
- **最后更新:** 2026-06-09T15:08:27+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- axfr-get (别名)
- axfrdns (别名)
- axfrdns-conf (别名)
- dnscache (别名)
- dnscache-conf (别名)
- dnsfilter (别名)
- dnsip (别名)
- dnsipq (别名)
- dnsmx (别名)
- dnsname (别名)
- dnsq (别名)
- dnsqr (别名)
- dnstrace (别名)
- dnstracesort (别名)
- dnstxt (别名)
- pickdns (别名)
- pickdns-conf (别名)
- pickdns-data (别名)
- random-ip (别名)
- rbldns (别名)
- rbldns-conf (别名)
- rbldns-data (别名)
- tinydns (别名)
- tinydns-conf (别名)
- tinydns-data (别名)
- tinydns-edit (别名)
- tinydns-get (别名)
- walldns (别名)
- walldns-conf (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

djbdns is D. J. Bernstein's suite of Unix DNS tools, including dnscache for recursive caching, tinydns for authoritative DNS service, rbldns for DNS blocklist-style zones, and command-line query/debugging programs. It is old, deliberately small, and historically important because it presented a security-conscious alternative to monolithic BIND deployments.

### 项目历史

The official djbdns site organizes the package around separate DNS jobs: finding addresses with dnscache, publishing addresses with tinydns and related servers, and debugging DNS with small command-line tools. The installation page identifies 1.05 as the published djbdns package and states that djbdns works under Unix.

Bernstein's documentation emphasized operational separation: caches and authoritative servers should run as distinct services, often on different IP addresses. The package's daemontools-style service directories and generated `/etc/dnscache` and `/etc/tinydns` trees made that model visible to Unix administrators.

### 采用历史

djbdns adoption was shaped by DNS security culture in the early 2000s. The official security guarantee offered a bounty for verifiable holes in the published 1.05 release and explicitly contrasted djbdns with buffer-overflow classes that had affected BIND and resolver libraries.

The official run-cache and run-server guides asked operators to publish pages saying their DNS cache or server was powered by djbdns, an early-web adoption tactic meant to make deployments searchable and encourage support services and related tools.

### 使用方式

Package users generally install djbdns for its individual Unix commands rather than a single daemon. `dnscache-conf` creates a cache service, `tinydns-conf` creates an authoritative service, `tinydns-data` compiles zone data, and query tools such as `dnsq`, `dnsqr`, and `dnstrace` help debug DNS behavior.

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

djbdns matters in package history because it is a classic DJB-style toolset: small C programs, unusual configuration conventions, strong opinions about privilege separation, and a long afterlife in Unix package managers. It is also a useful example of software whose official distribution predates modern public source hosting, so a package can be historically important without having an official GitHub-style repository.

### 时间线

- 2001-era: Official installation page names djbdns 1.05 as the published package.
- Early 2000s: Official security guarantee advertises a public bounty for verifiable security holes.
- Operational era: Official guides document dnscache, tinydns, rbldns, walldns, axfrdns, and DNS debugging utilities as separate Unix services and tools.

### Related projects

- Related DNS packages include BIND, Unbound, NSD, Knot DNS, PowerDNS, MaraDNS, daemontools, and ucspi-tcp; djbdns is often discussed alongside them because of its separated cache/server design and DJB ecosystem conventions.

### 来源

- <https://cr.yp.to/djbdns.html>
- <https://cr.yp.to/djbdns/install.html>
- <https://cr.yp.to/djbdns/guarantee.html>
- <https://cr.yp.to/djbdns/run-cache.html>
- <https://cr.yp.to/djbdns/run-server.html>


## 安全说明

narrow executable package without higher-risk signals.

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


## 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: /etc/tinydns/root/data, /etc/dnscache/root/ip/127.0.0.1, /etc/dnscache/seed
## 其他软件包管理器记录

- Debian apt - axfrdns - 1:1.05-22: normalized package name match | Debian stable package indexes: axfrdns from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | DNS zone-transfer server | http://cr.yp.to/djbdns.html
- Debian apt - djbdns-conf - 1:1.05-22: normalized package name match | Debian stable package indexes: djbdns-conf from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | programs to create service directories | http://cr.yp.to/djbdns.html
- Debian apt - djbdns-utils - 1:1.05-22: normalized package name match | Debian stable package indexes: djbdns-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | dns debugging tools | http://cr.yp.to/djbdns.html
- Debian apt - dnscache - 1:1.05-22: normalized package name match | Debian stable package indexes: dnscache from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | DNS cache - tool for finding addresses of Internet hosts | http://cr.yp.to/djbdns.html
- Debian apt - rbldns - 1:1.05-22: normalized package name match | Debian stable package indexes: rbldns from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | real time blackhole list server | http://cr.yp.to/djbdns.html
- Debian apt - tinydns - 1:1.05-22: normalized package name match | Debian stable package indexes: tinydns from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | DNS server - tool for publishing addresses of Internet hosts | http://cr.yp.to/djbdns.html
- Debian apt - walldns - 1:1.05-22: normalized package name match | Debian stable package indexes: walldns from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | reverse DNS wall | http://cr.yp.to/djbdns.html
- Nix - djbdns: normalized package name match | nixpkgs package indexes: pkgs/by-name/dj/djbdns/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - axfrdns - 1:1.05-15ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: axfrdns from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | DNS zone-transfer server | http://cr.yp.to/djbdns.html
- Ubuntu apt - djbdns-conf - 1:1.05-15ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: djbdns-conf from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | programs to create service directories | http://cr.yp.to/djbdns.html
- Ubuntu apt - djbdns-utils - 1:1.05-15ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: djbdns-utils from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | dns debugging tools | http://cr.yp.to/djbdns.html
- Ubuntu apt - dnscache - 1:1.05-15ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: dnscache from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | DNS cache - tool for finding addresses of Internet hosts | http://cr.yp.to/djbdns.html
- Ubuntu apt - rbldns - 1:1.05-15ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: rbldns from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | real time blackhole list server | http://cr.yp.to/djbdns.html
- Ubuntu apt - tinydns - 1:1.05-15ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: tinydns from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | DNS server - tool for publishing addresses of Internet hosts | http://cr.yp.to/djbdns.html
- Ubuntu apt - walldns - 1:1.05-15ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: walldns from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | reverse DNS wall | http://cr.yp.to/djbdns.html
- apk - djbdns - 1.05-r55: normalized package name match | Alpine Linux edge package indexes: djbdns from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Excellent high-performance DNS services | https://cr.yp.to/djbdns.html


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
