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

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

## 安装

```sh
sudo av install brew:getdns
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install getdns
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install getdns
```

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

### Linux

- apk (92%):

```sh
sudo apk add getdns
```

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

- dnf (92%):

```sh
sudo dnf install getdns
```

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

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

- pacman (92%):

```sh
sudo pacman -S getdns
```

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

- Debian apt (92%):

```sh
sudo apt install getdns-utils
```

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

## 软件包事实

- **软件包键:** brew:getdns
- **软件包管理器:** Homebrew
- **版本:** 1.7.3
- **来源摘要:** Modern asynchronous DNS API
- **主页:** <https://getdnsapi.net>
- **仓库:** <https://github.com/getdnsapi/getdns>
- **最后更新:** 2026-08-02T20:52:04+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- getdns_query (别名)
- getdns_server_mon (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

getdns is a C implementation of a modern asynchronous DNS API. It was designed to expose DNS data, DNSSEC validation, event-loop integration, and DNS privacy features to application developers who do not want to hand-code low-level resolver behavior.

### 项目历史

The API specification was originally edited by Paul Hoffman, and the open source C implementation has been developed with NLnet Labs, Sinodun, and No Mountain Software. The GitHub repository dates to 2014 and the release history shows a 1.x line that added DNS privacy work, CMake builds, platform fixes, and Stubby integration.

### 采用历史

getdns occupies a specialized layer in the DNS ecosystem: lower-level than application frameworks but higher-level than raw resolver libraries. Its distribution through Homebrew and major Unix-like package managers reflects use by DNS engineers, resolver-tool authors, and privacy-focused networking users.

### 使用方式

Practitioners use libgetdns in C programs that need asynchronous DNS lookups, DNSSEC status, IDNA handling, event-loop adapters, or DNS-over-TLS behavior. The package also installs `getdns_query` for command-line testing and `getdns_server_mon` for server capability checks.

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

For package maintainers, getdns is important because optional features map directly to dependency choices: OpenSSL, libunbound, libidn2, event-loop libraries, and Stubby support all affect the build. Its packaging footprint therefore records how each platform chooses resolver, DNSSEC, and DNS privacy tradeoffs.

### 时间线

- 2014: The public GitHub repository for getdns was created.
- 2019: The 1.6.0 beta moved the build system to CMake.
- 2020: Version 1.6.0 was released.
- 2021: Version 1.7.0 added transport and DNS behavior fixes.
- 2022: Version 1.7.3 shipped as a quickfix release with Stubby 0.4.3.

### Related projects

- getdns is closely related to Stubby, Unbound, libidn2, OpenSSL, and event-loop libraries such as libevent, libuv, and libev.

### 来源

- <https://api.github.com/repos/getdnsapi/getdns>
- <https://getdnsapi.net/>
- <https://getdnsapi.net/documentation/spec/>
- <https://getdnsapi.net/releases/>
- <https://github.com/getdnsapi/getdns>
- <https://raw.githubusercontent.com/getdnsapi/getdns/develop/ChangeLog>
- <https://raw.githubusercontent.com/getdnsapi/getdns/develop/README.md>


## 安全说明

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

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

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

- Debian apt - getdns-utils - 1.6.0-3.2: normalized package name match | Debian stable package indexes: getdns-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | modern asynchronous DNS API (utils) | https://getdnsapi.net/
- Debian apt - libgetdns-dev - 1.6.0-3.2: normalized package name match | Debian stable package indexes: libgetdns-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | modern asynchronous DNS API (development) | https://getdnsapi.net/
- Debian apt - libgetdns10t64 - 1.6.0-3.2: normalized package name match | Debian stable package indexes: libgetdns10t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | modern asynchronous DNS API (shared library) | https://getdnsapi.net/
- Debian apt - stubby - 1.6.0-3.2: normalized package name match | Debian stable package indexes: stubby from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | modern asynchronous DNS API (stub resolver) | https://getdnsapi.net/
- Nix - getdns: normalized package name match | nixpkgs package indexes: pkgs/by-name/ge/getdns/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - getdns-utils - 1.6.0-3.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: getdns-utils from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | modern asynchronous DNS API (utils) | https://getdnsapi.net/
- Ubuntu apt - libgetdns-dev - 1.6.0-3.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libgetdns-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | modern asynchronous DNS API (development) | https://getdnsapi.net/
- Ubuntu apt - libgetdns10t64 - 1.6.0-3.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libgetdns10t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | modern asynchronous DNS API (shared library) | https://getdnsapi.net/
- Ubuntu apt - stubby - 1.6.0-3.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: stubby from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | modern asynchronous DNS API (stub resolver) | https://getdnsapi.net/
- apk - getdns - 1.7.3-r0: normalized package name match | Alpine Linux edge package indexes: getdns from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Modern asynchronous DNS API | https://getdnsapi.net
- apk - getdns-dev - 1.7.3-r0: normalized package name match | Alpine Linux edge package indexes: getdns-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Modern asynchronous DNS API (development files) | https://getdnsapi.net
- apk - getdns-doc - 1.7.3-r0: normalized package name match | Alpine Linux edge package indexes: getdns-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Modern asynchronous DNS API (documentation) | https://getdnsapi.net
- apk - getdns-libs - 1.7.3-r0: normalized package name match | Alpine Linux edge package indexes: getdns-libs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Modern asynchronous DNS API (libraries) | https://getdnsapi.net
- dnf - getdns - 1.7.3-10.fc44: normalized package name match | Fedora Rawhide package metadata: getdns from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Modern asynchronous API to the DNS | http://www.getdnsapi.net
- dnf - getdns-devel - 1.7.3-10.fc44: normalized package name match | Fedora Rawhide package metadata: getdns-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development package that includes getdns header files | http://www.getdnsapi.net
- dnf - getdns-utils - 1.7.3-10.fc44: normalized package name match | Fedora Rawhide package metadata: getdns-utils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | getdns utilities | http://www.getdnsapi.net


## Combined YAML source

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