Description
chinadns-ng is a rebuilt and enhanced version of ChinaDNS, a DNS forwarder that sends lookups to domestic and trusted upstream servers. It is built on epoll and netlink, and supports IPv4 and IPv6, EDNS requests and responses, and UDP, TCP and DoT upstreams. You set the domestic and trusted DNS servers yourself rather than letting the program detect them, which the author describes as more controllable. It works with chnlist and gfwlist domain files, and it can route plain domains to one group or the other without testing the answer's IP address. Resolved IP addresses can be added to ipset or nftset sets, which helps with proxy and routing setups. The DNS cache offers stale-cache and pre-refresh modes and an ignore list. The README explains the routing logic: chnlist domains go to the domestic group, gfwlist domains go to the trusted group, and other domains go to both, with the domestic answer used when it is a domestic address. Docker and OpenWrt setups and configuration examples are covered. The README gives a Zig-based build, and downloads of the executable are on the releases page.…
Highlights
- Splits lookups between domestic and trusted DNS
- IPv4 and IPv6 with EDNS support
- UDP, TCP and DoT upstreams
- chnlist and gfwlist domain files
- Adds resolved IPs to ipset or nftset
- DNS cache with stale and pre-refresh modes
Ratings & Reviews
No ratings yet
Be the first to rate Chinadns NG.
People also visit
Routedns
DNS stub resolver, proxy and router with support for DoT, DoH, DoQ, and DTLS
Smartdns RS
A cross platform local DNS server (Dnsmasq like) written in rust to obtain…
XDP DNS Evadeproxy
Proxy DNS en Rust para evitar bloqueos de operadores mediante reescritura
Chinadns NG FAQ
What is chinadns-ng?
A rebuilt, enhanced version of ChinaDNS that routes domestic and foreign DNS lookups to different upstream servers.
Does it find DNS servers automatically?
No. You set the domestic and trusted DNS servers yourself, which the README says gives more control.
How do I install it?
Download the executable from the releases page, make it executable and place it on your PATH. The README also covers Docker and OpenWrt.
What are chnlist and gfwlist?
Domain lists. Domains in chnlist go to the domestic group, and domains in gfwlist go to the trusted group.
What are the best Chinadns NG alternatives?
Popular alternatives to Chinadns NG include Routedns, Smartdns RS and Dnsproxy. See all Chinadns NG alternatives

