# 使用 Homebrew, dnf, zypper 安装 doh

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

## 安装

```sh
sudo av install brew:doh
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install doh
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install doh
```

  证据: Fedora Rawhide package metadata: doh from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- zypper (92%):

```sh
sudo zypper install doh
```

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

## 软件包事实

- **软件包键:** brew:doh
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/doh>
- **版本:** 0.1
- **来源摘要:** Stand-alone DNS-over-HTTPS resolver using libcurl
- **主页:** <https://github.com/curl/doh>
- **仓库:** <https://github.com/curl/doh>
- **许可证:** MIT
- **源码归档:** <https://github.com/curl/doh/archive/refs/tags/doh-0.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- doh (cli)
- doh (别名)

## macOS 提供的库

- curl

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.1
- 本地数据: OK
- 上游仓库: https://github.com/curl/doh
- 检测到的最新版本: doh-0.1 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

doh is a small curl project utility: a stand-alone DNS-over-HTTPS resolver built on libcurl.

### 项目历史

The curl/doh repository was created in April 2018, during the period when DNS-over-HTTPS was moving from emerging protocol work into practical client tooling. Its README describes a libcurl-using application that resolves host names through DoH and uses POST requests unconditionally.

The project has stayed deliberately small. GitHub lists a single 0.1 release from September 2019, while the README keeps the interface to a simple form: doh options, a host, and an optional DoH URL.

### 采用历史

doh is more of a reference-quality utility from the curl orbit than a mass-adopted DNS client. Its adoption significance comes from being packaged and visible as a standalone libcurl DoH example at the exact layer where curl users think about HTTP transport behavior.

### 使用方式

The command resolves a hostname through a DoH server, defaulting to Cloudflare when no DoH URL is supplied. The README examples also show targeting Google's DoH endpoint explicitly.

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

For package maintainers, doh is interesting because it exposes DNS-over-HTTPS as a tiny installable command rather than as a feature hidden inside a larger resolver or browser stack. It is also a compact libcurl demonstration for network debugging.

### 时间线

- 2018: curl/doh repository created.
- 2019: doh-0.1 release published.
- 2026: Repository still receives maintenance activity, but remains a compact single-purpose tool.

### Related projects

- doh belongs to the curl/libcurl ecosystem and overlaps with DoH-capable DNS clients such as doggo and doge, while staying narrower than general DNS tools like dig.

### 来源

- <https://github.com/curl/doh#readme>
- <https://api.github.com/repos/curl/doh>
- <https://github.com/curl/doh/releases/tag/doh-0.1>


## 安全说明

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:** doh
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- dnf - doh - 0.1^1.8654bc9-5.fc45: normalized package name match | Fedora Rawhide package metadata: doh from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Application for DNS-over-HTTPS name resolves and lookups | https://github.com/curl/doh
- zypper - doh - 0.1-1.23: normalized package name match | openSUSE Tumbleweed package metadata: doh from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Simple DoH (DNS-over-HTTPS) client | https://github.com/curl/doh


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [doggo](https://pkg.so/zh-hans/brew/doggo/) - Shares pkgdb curated category or tags: cli, dns, dns-over-https, networking.
- [nextdns](https://pkg.so/zh-hans/brew/nextdns/) - Shares pkgdb curated category or tags: cli, dns, networking, resolver.
- [adns](https://pkg.so/zh-hans/brew/adns/) - Shares pkgdb curated category or tags: cli, dns, networking, resolver.
- [doge](https://pkg.so/zh-hans/brew/doge/) - Shares pkgdb curated category or tags: cli, dns, dns-over-https, networking.
- [knot-resolver](https://pkg.so/zh-hans/brew/knot-resolver/) - Shares pkgdb curated category or tags: cli, dns, networking, resolver.
- [massdns](https://pkg.so/zh-hans/brew/massdns/) - Shares pkgdb curated category or tags: cli, dns, networking, resolver.
- [djbdns](https://pkg.so/zh-hans/brew/djbdns/) - Shares pkgdb curated category or tags: cli, dns, networking, resolver.
- [libidn2](https://pkg.so/zh-hans/brew/libidn2/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [dns-query](https://pkg.so/zh-hans/npm/dns-query/) - Local package facts share a topical domain. Shared terms: cli, dns, dns-over-https, doh, https.
- [dohjs](https://pkg.so/zh-hans/npm/dohjs/) - Local package facts share a topical domain. Shared terms: cli, dns, doh, https, networking.

## Combined YAML source

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