# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 0.1
- **来源摘要:** Stand-alone DNS-over-HTTPS resolver using libcurl
- **主页:** <https://github.com/curl/doh>
- **仓库:** <https://github.com/curl/doh>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- doh (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


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