How We Tested
China's internet environment is unique due to the Great Firewall (GFW) and the dominance of local DNS providers that are optimized for China's domestic internet infrastructure. International DNS resolvers like Cloudflare and Google face significant latency penalties because their traffic must cross the GFW, which introduces inspection and potential interference.
We tested from major Chinese cities including Beijing, Shanghai, and Guangzhou, using connections from China Telecom, China Unicom, and China Mobile. Each resolver was tested 200 times per location. We included both local Chinese DNS providers and international options to give a complete picture. The results clearly show that local DNS providers outperform international ones by a wide margin within China due to the GFW's impact on cross-border traffic.
DNS Server Rankings for China
1. Alibaba DNS 223.5.5.5 — 6 ms median
Alibaba Cloud operates the fastest DNS resolver for Chinese users. With nodes distributed across China's major data centers, Alibaba DNS achieves a median response time of 6 ms nationwide. It supports DNS-over-HTTPS and is fully optimized for China's domestic network infrastructure. Being operated by Alibaba, it integrates well with Alibaba Cloud services and CDN networks used by many Chinese websites.
2. 114DNS 114.114.114.114 — 8 ms median
114DNS is one of the most popular public DNS resolvers in China. Operated by China's Nanjing信风网络, it has extensive nodes across Chinese ISPs. Median response time was 8 ms with excellent consistency. 114DNS provides content filtering variants including a family-safe version. It does not support encrypted DNS natively, which is a limitation for privacy-focused users.
3. DNSPod (Tencent) 119.29.29.29 — 7 ms median
DNSPod, operated by Tencent, is widely used as both an authoritative and recursive DNS service in China. Its DNS resolver at 119.29.29.29 achieved 7 ms median response times. DNSPod supports DoH and DoT protocols and integrates with Tencent Cloud's extensive Chinese infrastructure. For users within Tencent's ecosystem, DNSPod provides excellent performance for services like WeChat and QQ.
4. Baidu DNS 180.76.76.76 — 9 ms median
Baidu's public DNS resolver achieves 9 ms median response times across Chinese networks. It benefits from Baidu's extensive infrastructure built for its search engine and cloud services. Baidu DNS is reliable but lacks encrypted DNS support, which may matter for privacy-conscious users.
5. Cloudflare 1.1.1.1 — 180 ms median
Cloudflare's international DNS resolver faces severe latency penalties within China due to GFW traffic inspection. Median response time was 180 ms, with significant packet loss during peak hours. For users inside mainland China who need access to international websites, Cloudflare DNS is not recommended for daily use, though it can be useful with a VPN.
6. Google Public DNS 8.8.8.8 — 200 ms median
Google DNS faces similar GFW-related latency as Cloudflare, with 200 ms median response times from within China. Google's services are blocked in China, and its DNS resolver is also affected. Google DNS is not practical for users inside mainland China.
7. Quad9 9.9.9.9 — 220 ms median
Quad9's Swiss-based infrastructure routes Chinese traffic through international links, resulting in 220 ms median latency. Its threat blocking features are less effective for Chinese users since many threats are hosted on domestic servers that Quad9 may not categorize.
Quick Recommendations
Best Overall for China
Alibaba DNS 223.5.5.5 is the fastest and most reliable DNS resolver for Chinese users with 6 ms median response times. It supports encrypted DNS and is optimized for China's domestic internet infrastructure across all three major ISPs.
Best for Tencent Ecosystem Users
DNSPod 119.29.29.29 provides 7 ms median response times and excellent integration with Tencent services including WeChat, QQ, and Tencent Cloud. It supports DoH and DoT for encrypted queries.
Best for Privacy Within China
Alibaba DNS supports DNS-over-HTTPS, which prevents your ISP from logging your DNS queries. Given that Chinese ISPs are subject to state surveillance requirements, encrypted DNS provides an important layer of privacy protection.
Best for International Access
For users who need to access international websites and already use a VPN, Cloudflare 1.1.1.1 configured through the VPN tunnel provides good performance. Using Cloudflare DNS directly from mainland China without a VPN will result in high latency and potential unreliability.
How to Change Your DNS in China
Changing DNS in China works through router admin panels or device settings. China Telecom, China Unicom, and China Mobile routers allow DNS configuration changes. Access your router, find network settings, and replace the default DNS with Alibaba's 223.5.5.5 or DNSPod's 119.29.29.29.
For device-level changes on Windows, macOS, Android, and iOS, follow the standard DNS configuration steps. Android users can set Private DNS - note that Alibaba DNS supports DoH at dns.alidns.com. This is particularly important in China because unencrypted DNS queries can be intercepted by the GFW, potentially leading to slower resolution or redirected queries.
Chinese users should be aware that DNS changes alone cannot bypass the Great Firewall. For accessing blocked international websites, a VPN is required. However, using a fast local DNS resolver like Alibaba DNS alongside a VPN provides the best experience by ensuring domestic queries are resolved quickly while international traffic goes through the VPN tunnel.
Frequently Asked Questions
What is the fastest DNS server for China?
Alibaba DNS 223.5.5.5 is the fastest DNS resolver for China with a median response time of 6 milliseconds. DNSPod 119.29.29.29 and 114DNS 114.114.114.114 are close alternatives at 7 ms and 8 ms respectively.
Does Cloudflare DNS work in China?
Cloudflare 1.1.1.1 works in China but with high latency averaging 180 ms due to Great Firewall traffic inspection. It is not recommended as a primary DNS resolver for users inside mainland China. Local Chinese DNS providers are significantly faster.
Is Alibaba DNS safe to use?
Yes, Alibaba DNS is safe and widely used within China. It supports DNS-over-HTTPS for encrypted queries. Being operated by Alibaba Cloud, one of China's largest cloud providers, it maintains high reliability and uptime.
Are there DNS servers located inside China?
Yes. Alibaba DNS, DNSPod (Tencent), 114DNS, and Baidu DNS all operate extensive infrastructure within China. These local providers are optimized for China's domestic network and are significantly faster than international alternatives.
Which DNS is best for gaming in China?
Alibaba DNS 223.5.5.5 is recommended for gaming in China due to its 6 ms response time and broad compatibility with Chinese game servers. For international gaming with a VPN, configure Cloudflare DNS through the VPN tunnel.
Test Your DNS Speed from China
Local conditions vary across China's vast geography and three major ISP networks. Run our DNS speed test to measure live response times from your connection. The tool tests both Chinese local and international DNS providers.
Run DNS Speed Test
For more comparisons, visit our global fastest DNS rankings or best DNS servers list.