# zfl9/chinadns-ng

chinadns 重构增强版，支持域名分流、ipset/nftset、UDP/TCP/DoT

Repository: https://github.com/zfl9/chinadns-ng
Canonical: https://ross.abutalabs.com/products/chinadns-ng
Language: Zig
License: AGPL-3.0
License Family: copyleft
Topics: chinadns, chinadns-ng, ipset, netlink, ss-tproxy, dns, gfwlist, dnsmasq, nftables, dot, dns-over-tls, iptables
Last push: 2025-08-09T09:22:44+00:00

## Health v2 (maintenance only)
Score: 47/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 36, release rhythm 30, longevity 100
- inputs: {"age_days": 2599, "days_push": 389, "days_rel": 389, "gap_med": 43.0, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1374, forks 200 (observed 2026-08-28T04:04:32.948099+00:00)

## What it is
ChinaDNS-NG is a rewritten and enhanced version of ChinaDNS that splits DNS queries between domestic (China) and trusted upstream DNS servers based on domain lists like chnlist and gfwlist. It supports UDP/TCP/DoT upstreams, dynamic ipset/nftset population, DNS caching, and fine-grained IPv6 filtering to support transparent proxy and anti-censorship routing setups.

## Use cases
- split DNS queries between Chinese and foreign DNS servers
- avoid DNS poisoning when resolving blocked domains
- populate ipset or nftables sets with resolved IPs for transparent proxying
- prevent DNS leaks when using a VPN or proxy
- run a lightweight DNS forwarder on an OpenWrt router
- resolve Chinese domains via domestic DNS for CDN-friendly results

## When to choose
- you need DNS-based traffic splitting for transparent proxy setups like ss-tproxy
- you want gfwlist/chnlist-based domain routing with ipset/nftset integration
- you run a Linux router or embedded device and need a fast, low-memory DNS splitter
- you need DoT support and DNS caching with stale-cache and pre-refresh features

## When to avoid
- you need a general-purpose full-featured DNS server like dnsmasq or AdGuard Home
- you are not in a censorship/DNS-pollution scenario and just need a simple DNS resolver
- you need DNS-over-HTTPS upstreams, which are not supported
- you need a GUI-managed DNS solution

## Facets
- artifact type: cli-tool
- maturity: active
- function: networking, proxy, security, caching
- domain: networking, privacy, censorship-circumvention, self-hosted
- platform: cli, embedded
- tags: dns-splitting, gfwlist, chnlist, ipset, nftables, dns-over-tls, transparent-proxy, openwrt, anti-dns-poisoning, command-line, linux

## Member repositories
- zfl9/chinadns-ng (main) score 47

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:32.948099+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-30T04:40:39.563769+00:00, confidence not recorded.
  - readme: https://github.com/zfl9/chinadns-ng (fetched 2026-08-28T04:04:32.948099+00:00, sha f3792c5285c9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
