# 使用 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/getdns>
- **版本:** 1.7.3
- **来源摘要:** Modern asynchronous DNS API
- **主页:** <https://getdnsapi.net>
- **仓库:** <https://github.com/getdnsapi/getdns>
- **上游文档:** <https://getdnsapi.net>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://getdnsapi.net/releases/getdns-1-7-3/getdns-1.7.3.tar.gz>
- **最后更新:** 2026-08-02T20:52:04+09:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

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

## 依赖

- libev
- libevent
- libidn2
- libuv
- openssl@3
- unbound

## 构建依赖

- cmake

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.7.3
- 管理器更新时间: 2026-08-02
- 本地数据: OK
- 上游仓库: https://getdnsapi.net
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** getdns
- **Version Scheme:** 0
- **Revision:** 1
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | getdns utilities | http://www.getdnsapi.net


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [unbound](https://pkg.so/zh-hans/brew/unbound/) - Runtime dependency declared by Homebrew.
- [libevent](https://pkg.so/zh-hans/brew/libevent/) - Runtime dependency declared by Homebrew.
- [libidn2](https://pkg.so/zh-hans/brew/libidn2/) - Runtime dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [stubby](https://pkg.so/zh-hans/brew/stubby/) - Popular package that depends on this formula.
- [ldns](https://pkg.so/zh-hans/brew/ldns/) - Shares pkgdb curated category or tags: c-library, cli, dns, dnssec, networking.
- [adns](https://pkg.so/zh-hans/brew/adns/) - Shares pkgdb curated category or tags: c-library, cli, dns, networking, resolver.
- [knot-resolver](https://pkg.so/zh-hans/brew/knot-resolver/) - Shares pkgdb curated category or tags: cli, dns, dnssec, networking, resolver.
- [c-ares](https://pkg.so/zh-hans/brew/c-ares/) - Shares pkgdb curated category or tags: cli, dns, networking, resolver.
- [bind](https://pkg.so/zh-hans/brew/bind/) - Shares pkgdb curated category or tags: cli, dns, dnssec, networking.
- [knot](https://pkg.so/zh-hans/brew/knot/) - Shares pkgdb curated category or tags: cli, dns, dnssec, networking.
- [nextdns](https://pkg.so/zh-hans/brew/nextdns/) - Shares pkgdb curated category or tags: cli, dns, networking, resolver.
- [dnsviz](https://pkg.so/zh-hans/brew/dnsviz/) - Local package facts share a topical domain. Shared terms: cli, dns, dnssec, networking, openssl.

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