# shadowsocks/ChinaDNS

Protect yourself against DNS poisoning in China.

Repository: https://github.com/shadowsocks/ChinaDNS
Canonical: https://ross.abutalabs.com/products/chinadns
Language: C
License: GPL-3.0
License Family: copyleft
Last push: 2020-05-03T10:00:17+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4423, "days_push": 2313, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3606, forks 1254 (observed 2026-08-28T04:08:11.515223+00:00)

## What it is
ChinaDNS is a C-based local DNS server that prevents DNS poisoning by routing Chinese domain queries to local DNS servers and foreign domain queries to trusted foreign DNS servers, using a Chinese IP range file. It runs on Linux/Unix, OpenWRT routers, and Windows, and is commonly paired with VPN or proxy tools like ShadowVPN.

## Use cases
- prevent DNS poisoning in China
- resolve Chinese domains via local DNS and foreign domains via foreign DNS
- set up anti-censorship DNS on an OpenWRT router
- avoid wrong CDN results when tunneling all DNS through a VPN
- run a local DNS server that filters poisoned responses

## When to choose
- you are in China and suffer from DNS poisoning or polluted DNS results
- you want split DNS resolution without maintaining a domain list
- you need a lightweight DNS fixer on a router or embedded device

## When to avoid
- you are not behind the GFW and don't face DNS poisoning
- you need a maintained, actively developed solution - the last release was 2020
- you need encrypted DNS like DoH/DoT rather than poisoning detection

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: networking, security, proxy
- domain: networking, security, privacy, censorship-circumvention
- platform: windows, cli, self-hosted
- tags: dns, dns-poisoning, censorship-circumvention, openwrt, shadowsocks, china, linux, macos

## Member repositories
- shadowsocks/ChinaDNS (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:11.515223+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:33:42.139815+00:00, confidence not recorded.
  - readme: https://github.com/shadowsocks/ChinaDNS (fetched 2026-08-28T04:08:11.515223+00:00, sha e388c9132dd9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
