# 使用 Homebrew, dnf, MacPorts, Nix, pacman, zypper, apt 安装 adns

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

## 安装

```sh
sudo av install brew:adns
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install adns
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install adns
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install adns
```

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

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

- pacman (92%):

```sh
sudo pacman -S adns
```

  证据: Arch Linux sync databases: adns from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install adns
```

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

- Debian apt (92%):

```sh
sudo apt install adns-tools
```

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

## 软件包事实

- **软件包键:** brew:adns
- **软件包管理器:** Homebrew
- **版本:** 1.6.2
- **来源摘要:** C/C++ resolver library and DNS resolver utilities
- **主页:** <https://www.chiark.greenend.org.uk/~ian/adns/>
- **最后更新:** 2026-05-26T23:37:49-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- adnsheloex (别名)
- adnshost (别名)
- adnslogres (别名)
- adnsresfilter (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

GNU adns is Ian Jackson's asynchronous-capable DNS resolver library for C and C++ programs, accompanied by command-line resolver utilities. It offers a nonblocking resolver API and utility programs such as adnshost, adnslogres, and adnsresfilter.

### 项目历史

The official homepage describes adns as an advanced, easy-to-use DNS client library and utilities collection. It contrasts adns with gethostbyname and libresolv by emphasizing asynchronous operation, multiple simultaneous queries, decoded response structures, sanity checking, explicit resolver state, and conventional resolv.conf support.

The official previous-versions directory shows public release tarballs starting with adns 0.1 in April 1999, progressing through 1.0 in 2000, 1.5.x in the 2010s, and 1.6.x releases in the 2020s. The homepage also points to a master git repository browser and notes that adns is available from GNU Project FTP servers and mirrors.

### 采用历史

adns became a GNU-distributed resolver component with both library and scriptable CLI use cases. The supplied package metadata shows broad packaging under Homebrew, Debian/Ubuntu adns-tools, Fedora/DNF, MacPorts, Nix, Arch/pacman, and openSUSE zypper.

The homepage lists ecosystem bindings and integrations, including Python bindings, liboop event-loop support, and an MS Visual Studio C++ port. That adoption pattern is very Unix-library-like: one C API, a few small command-line tools, and integrations by event loops and language bindings.

### 使用方式

C and C++ programs use adns when they need DNS lookups without blocking on one resolver call at a time. The library can process many queries simultaneously, return decoded records, distinguish failure causes, and use or override conventional resolver configuration.

Shell and scripting users get adnshost for DNS lookups, adnslogres as a faster Apache logresolv-style tool, and adnsresfilter for replacing IP addresses in streamed command output without delaying the stream unnecessarily.

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

adns is package-nerd interesting because it is a classic Unix networking library packaged alongside small utilities, with GNU distribution, long-running release tarballs, and distro-specific binary splits. It also documents the resolver boundary clearly: it is a stub resolver and expects a real recursive nameserver on the same system or a secure nearby network.

### 时间线

- 1999-04: adns 0.1 tarball appears in the official previous-versions directory.
- 2000-09: adns 1.0 tarball appears in the official previous-versions directory.
- 2014-11: adns 1.5.0 tarball appears after the long 1.4 era.
- 2020-06: adns 1.6.0 tarball appears.
- 2026-05: adns 1.6.2 tarball appears in the official previous-versions directory.

### Related projects

- GNU FTP distribution and mirrors are linked by the homepage.
- liboop is listed as having a built-in adns binding.
- Python bindings and a Visual Studio C++ port are listed as related projects.

### 来源

- <https://www.chiark.greenend.org.uk/~ian/adns/>
- <https://www.chiark.greenend.org.uk/~ian/adns/docs/adns.h.txt>
- <https://www.chiark.greenend.org.uk/~ian/adns/docs/adnshost.txt>
- <https://www.chiark.greenend.org.uk/~ian/adns/ftp/>
- source_facts.package-manager


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like 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/resolv.conf
## 其他软件包管理器记录

- Debian apt - adns-tools - 1.6.1-1: normalized package name match | Debian stable package indexes: adns-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Asynchronous-capable DNS client utilities | http://www.chiark.greenend.org.uk/~ian/adns/
- Debian apt - libadns1-dbg - 1.6.1-1: normalized package name match | Debian stable package indexes: libadns1-dbg from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Asynchronous-capable DNS client library (debugging symbols) | http://www.chiark.greenend.org.uk/~ian/adns/
- Debian apt - libadns1-dev - 1.6.1-1: normalized package name match | Debian stable package indexes: libadns1-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Asynchronous-capable DNS client library (development) | http://www.chiark.greenend.org.uk/~ian/adns/
- Debian apt - libadns1t64 - 1.6.1-1: normalized package name match | Debian stable package indexes: libadns1t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Asynchronous-capable DNS client library | http://www.chiark.greenend.org.uk/~ian/adns/
- Nix - adns: normalized package name match | nixpkgs package indexes: pkgs/by-name/ad/adns/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - adns-tools - 1.6.0-2.1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: adns-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Asynchronous-capable DNS client utilities | http://www.chiark.greenend.org.uk/~ian/adns/
- Ubuntu apt - libadns1-dbg - 1.6.0-2.1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libadns1-dbg from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Asynchronous-capable DNS client library (debugging symbols) | http://www.chiark.greenend.org.uk/~ian/adns/
- Ubuntu apt - libadns1-dev - 1.6.0-2.1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libadns1-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Asynchronous-capable DNS client library (development) | http://www.chiark.greenend.org.uk/~ian/adns/
- Ubuntu apt - libadns1t64 - 1.6.0-2.1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libadns1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Asynchronous-capable DNS client library | http://www.chiark.greenend.org.uk/~ian/adns/
- dnf - adns - 1.6.1-7.fc45: normalized package name match | Fedora Rawhide package metadata: adns from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Advanced, easy to use, asynchronous-capable DNS client library | http://www.chiark.greenend.org.uk/~ian/adns/
- dnf - adns-devel - 1.6.1-7.fc45: normalized package name match | Fedora Rawhide package metadata: adns-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Asynchronous-capable DNS client library - development files | http://www.chiark.greenend.org.uk/~ian/adns/
- dnf - adns-progs - 1.6.1-7.fc45: normalized package name match | Fedora Rawhide package metadata: adns-progs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Asynchronous-capable DNS client library - utility programs | http://www.chiark.greenend.org.uk/~ian/adns/
- pacman - adns - 1.6.1-1: normalized package name match | Arch Linux sync databases: adns from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | An asyncronous replacement resolver library | https://www.chiark.greenend.org.uk/~ian/adns/
- zypper - adns - 1.6.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: adns from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Advanced Easy-to-Use Asynchronous-Capable DNS Utilities | https://www.chiark.greenend.org.uk/~ian/adns/ftp/
- zypper - libadns-devel - 1.6.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libadns-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Libraries and header files to develop programs with libadns support | https://www.chiark.greenend.org.uk/~ian/adns/ftp/
- zypper - libadns1 - 1.6.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libadns1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Advanced DNS resolver client library | https://www.chiark.greenend.org.uk/~ian/adns/ftp/


## Combined YAML source

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