# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 unbound

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

## 安装

```sh
sudo av install brew:unbound
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install unbound
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install unbound
```

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

### Linux

- apk (92%):

```sh
sudo apk add unbound
```

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

- Debian apt (92%):

```sh
sudo apt install unbound
```

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

- dnf (92%):

```sh
sudo dnf install unbound
```

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

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

- pacman (92%):

```sh
sudo pacman -S unbound
```

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

- zypper (92%):

```sh
sudo zypper install unbound
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/unbound
```

  证据: Scoop official bucket manifest trees: bucket/unbound.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id NLnetLabs.Unbound -e
```

  证据: Windows Package Manager source index: NLnetLabs.Unbound from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:unbound
- **软件包管理器:** Homebrew
- **版本:** 1.25.2
- **来源摘要:** Validating, recursive, caching DNS resolver
- **主页:** <https://www.unbound.net>
- **仓库:** <https://github.com/NLnetLabs/unbound>
- **最后更新:** 2026-07-22T11:02:40Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- unbound (别名)
- unbound-anchor (别名)
- unbound-checkconf (别名)
- unbound-control (别名)
- unbound-control-setup (别名)
- unbound-host (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Unbound is NLnet Labs' validating, recursive, caching DNS resolver. It is one of the significant infrastructure packages in this batch: a security- and privacy-oriented resolver used as a local stub resolver, a network recursive resolver, a DNSSEC validator, and a library.

### 项目历史

The official Unbound history says the project started to develop independent open-source DNS software and documentation, jointly funded by VeriSign and the University of Southern California/Information Sciences Institute. The C implementation was based on a Java prototype and was released in May 2008.

The official requirements document names the early resolver work by Bill Manning, David Blacka, and Matt Larson, with contributions from Geoff Sisson and Roy Arends, and says that around 2006 NLnet Labs volunteered to write a full C implementation ready for deployed use.

From the beginning, Unbound was designed around modular resolver components: validator, iterator, cache, networking, and query management. Its stated goals included DNSSEC support, high performance, code diversity in the DNS resolver monoculture, use as a stub resolver or full caching nameserver, portability, and a BSD license.

### 采用历史

NLnet Labs' project page says Unbound runs on Linux and BSD distributions as well as macOS, has packages for most platforms, is included in the base system of all major BSD operating systems, and is in the standard repositories of most Linux distributions.

The input package metadata reflects that breadth in package-manager terms: Homebrew, MacPorts, Nix, pacman, Scoop, winget, zypper, apk, Debian, Fedora, and Ubuntu entries are present. For package users, Unbound is not a novelty CLI; it is deployable network infrastructure.

Unbound's adoption also tracks changes in DNS operations: DNSSEC validation, local caching, query minimisation, DNS-over-TLS, DNS-over-HTTPS, authority zones, and aggressive DNSSEC-validated cache all appear in official NLnet Labs documentation or release notes.

### 使用方式

The official home-network tutorial presents Unbound as a resolver that can be installed from OS packages, tested with `dig`, and then used first for a single machine and then for a whole network. It notes that Unbound behaves as a caching recursive DNS resolver out of the box on installation.

Command-line package users care about the suite around the daemon: `unbound-checkconf` for validation, `unbound-control` and `unbound-control-setup` for administration, `unbound-anchor` for trust-anchor handling, and `unbound-host` for lookups. Those executables turn the resolver into something that can be configured, tested, and automated like other Unix services.

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

Unbound is highly significant in package-manager culture because it is a small, modern alternative to monolithic DNS server deployments for the recursive-resolver role. It is commonly installed on routers, servers, BSD systems, developer laptops, and self-hosted networks.

For package nerds, Unbound represents the ideal infrastructure package: source-available, portable, daemonized, scriptable, configurable through text files, and backed by a specialist upstream. Its DNSSEC and privacy features made it a default recommendation in many local-resolver and self-hosting setups.

### 时间线

- 2006: NLnet Labs volunteers to write the deployed C implementation.
- 2008: Unbound C implementation released in May.
- 2018: Unbound 1.7.0 adds features including aggressive use of the DNSSEC-validated cache.
- 2026: NLnet Labs documentation and project page list Unbound 1.25.1 as the current documented series.

### Related projects

- NSD, also from NLnet Labs, is the related authoritative DNS server counterpart to Unbound's recursive-resolver role.
- libunbound exposes resolver functionality to applications, and related DNS privacy/standards work includes DNSSEC, DNS-over-TLS, DNS-over-HTTPS, query name minimisation, and RFC 8198 aggressive DNSSEC-validated cache.

### 来源

- <https://nlnetlabs.nl/news/2018/Mar/15/unbound-1.7.0-released/>
- <https://nlnetlabs.nl/projects/unbound/about/>
- <https://unbound.docs.nlnetlabs.nl/en/latest/reference/history/index.html>
- <https://unbound.docs.nlnetlabs.nl/en/latest/reference/history/requirements.html>
- <https://unbound.docs.nlnetlabs.nl/en/latest/use-cases/home-resolver.html>
- source_facts.package-manager


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service


## 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: /usr/local/etc/unbound/unbound.conf

## Credential files

- Unix: /usr/local/etc/unbound/unbound_server.key, /usr/local/etc/unbound/unbound_control.key, /usr/local/etc/unbound/unbound_server.pem, /usr/local/etc/unbound/unbound_control.pem
## 其他软件包管理器记录

- Debian apt - libunbound-dev - 1.22.0-2+deb13u3: normalized package name match | Debian stable package indexes: libunbound-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | static library, header files, and docs for libunbound | https://www.unbound.net/
- Debian apt - libunbound8 - 1.22.0-2+deb13u3: normalized package name match | Debian stable package indexes: libunbound8 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library implementing DNS resolution and validation | https://www.unbound.net/
- Debian apt - python3-unbound - 1.22.0-2+deb13u3: normalized package name match | Debian stable package indexes: python3-unbound from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library implementing DNS resolution and validation (Python3 bindings) | https://www.unbound.net/
- Debian apt - unbound - 1.22.0-2+deb13u3: normalized package name match | Debian stable package indexes: unbound from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | validating, recursive, caching DNS resolver | https://www.unbound.net/
- Debian apt - unbound-anchor - 1.22.0-2+deb13u3: normalized package name match | Debian stable package indexes: unbound-anchor from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | utility to securely fetch the root DNS trust anchor | https://www.unbound.net/
- Debian apt - unbound-host - 1.22.0-2+deb13u3: normalized package name match | Debian stable package indexes: unbound-host from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | reimplementation of the 'host' command | https://www.unbound.net/
- Nix - unbound: normalized package name match | nixpkgs package indexes: pkgs/by-name/un/unbound/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libunbound-dev - 1.19.2-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libunbound-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | static library, header files, and docs for libunbound | https://www.unbound.net/
- Ubuntu apt - libunbound8 - 1.19.2-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libunbound8 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library implementing DNS resolution and validation | https://www.unbound.net/
- Ubuntu apt - python3-unbound - 1.19.2-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-unbound from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library implementing DNS resolution and validation (Python3 bindings) | https://www.unbound.net/
- Ubuntu apt - unbound - 1.19.2-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: unbound from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | validating, recursive, caching DNS resolver | https://www.unbound.net/
- Ubuntu apt - unbound-anchor - 1.19.2-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: unbound-anchor from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | utility to securely fetch the root DNS trust anchor | https://www.unbound.net/
- Ubuntu apt - unbound-host - 1.19.2-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: unbound-host from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | reimplementation of the 'host' command | https://www.unbound.net/
- apk - py3-unbound - 1.25.2-r0: normalized package name match | Alpine Linux edge package indexes: py3-unbound from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Python bindings to libunbound | https://nlnetlabs.nl/projects/unbound/about/
- apk - unbound - 1.25.2-r0: normalized package name match | Alpine Linux edge package indexes: unbound from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Unbound is a validating, recursive, and caching DNS resolver | https://nlnetlabs.nl/projects/unbound/about/
- apk - unbound-dbg - 1.25.2-r0: normalized package name match | Alpine Linux edge package indexes: unbound-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Unbound is a validating, recursive, and caching DNS resolver (debug symbols) | https://nlnetlabs.nl/projects/unbound/about/


## Combined YAML source

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