# 使用 Homebrew 安装 chinadns-c

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

## 安装

```sh
sudo av install brew:chinadns-c
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install chinadns-c
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:chinadns-c
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/chinadns-c>
- **版本:** 1.3.2
- **来源摘要:** Port of ChinaDNS to C: fix irregularities with DNS in China
- **主页:** <https://github.com/shadowsocks/ChinaDNS>
- **仓库:** <https://github.com/shadowsocks/ChinaDNS>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://github.com/shadowsocks/ChinaDNS/releases/download/1.3.2/chinadns-1.3.2.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- chinadns (cli)
- chinadns (别名)

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.3.2
- 本地数据: OK
- 上游仓库: https://github.com/shadowsocks/ChinaDNS
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

ChinaDNS-C is the packaged C implementation of ChinaDNS, a small DNS forwarder built for networks affected by DNS poisoning and CDN split-horizon behavior.

### 项目历史

The upstream repository started in 2014 and its README describes a DNS design that queries local resolvers for Chinese domains and foreign resolvers for foreign domains, using a relatively stable Chinese IP range file instead of fast-changing domain lists. The project is closely tied to the Shadowsocks-era anti-censorship tooling ecosystem and explicitly points users toward VPN software such as ShadowVPN for IP blocking.

### 采用历史

Upstream documented Linux/Unix builds, OpenWrt packaging, Tomato-router cross-compilation, and a Windows Python executable, which made the tool relevant beyond a single desktop formula. Homebrew packages the C port as chinadns-c and tracks the 1.3.2 release tarball.

### 使用方式

Typical use is running chinadns as a local UDP DNS server, often with dnsmasq on routers, with a chnroute.txt file generated from APNIC delegated address data and options such as DNS compression pointer mutation.

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

For package people, chinadns-c is a compact example of network-circumvention software moving from router firmware workflows into general-purpose package managers, with Homebrew preserving a once-active C utility from the Shadowsocks orbit.

### 时间线

- 2014: First commits in the official ChinaDNS repository.
- 2014: 1.0.0 tag appears shortly after the initial import.
- 2015: README copyright and later 1.3.x tags show the mature C release line packaged by Homebrew.
- 2026: Homebrew still exposes chinadns-c as a bottled formula at stable version 1.3.2.

### Related projects

- The README names ShadowVPN as companion VPN software and dnsmasq as the recommended local DNS front end on OpenWrt. chnroute.txt generation is based on APNIC delegated address data.

### 来源

- <https://github.com/shadowsocks/ChinaDNS#readme>
- <https://formulae.brew.sh/api/formula/chinadns-c.json>
- <https://github.com/shadowsocks/ChinaDNS>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** chinadns-c
- **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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [dnsmasq](https://pkg.so/zh-hans/brew/dnsmasq/) - Shares pkgdb curated category or tags: cli, dns, dns-forwarder, networking.
- [ldns](https://pkg.so/zh-hans/brew/ldns/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [bind](https://pkg.so/zh-hans/brew/bind/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [knot](https://pkg.so/zh-hans/brew/knot/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [nextdns](https://pkg.so/zh-hans/brew/nextdns/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [q](https://pkg.so/zh-hans/brew/q/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [pdns](https://pkg.so/zh-hans/brew/pdns/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [knot-resolver](https://pkg.so/zh-hans/brew/knot-resolver/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [ctrld](https://pkg.so/zh-hans/brew/ctrld/) - Local package facts share a topical domain. Shared terms: cli, dns, forwarder, networking.
- [aliddns](https://pkg.so/zh-hans/brew/aliddns/) - Local package facts share a topical domain. Shared terms: cli, dns, networking.

## Combined YAML source

View the package source record on GitHub. [combined/chinadns-c.yml](https://github.com/mxcl/pkgdb/blob/main/combined/chinadns-c.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
- cross-ecosystem install command graph
