China Authoritative DNS
Last updated Apr 30, 2026 By default, Cloudflare China Network resolves each DNS request at the data center closest to the client. For clients outside of Mainland China, the closest global Cloudflare data center handles the request. For clients in Mainland China, a JD Cloud data center handles the request.
In-China Nameserver
Cloudflare can deploy DNS service in Mainland China to improve Time to First Byte (TTFB) performance. With this option enabled, DNS queries resolve at data centers in Mainland China instead of at global DNS servers.
When to use
Before you enable China Authoritative DNS, confirm that the majority (over 90%) of your traffic comes from Mainland China.
Caution
After you enable China Authoritative DNS, all DNS requests — including those from users outside of China — route to JD Cloud data centers in Mainland China instead of to the nearest global data center. This can increase latency for users outside of China.
Comparison
The following table compares the default DNS offering with the In-China Nameserver option.
| DNS option | Behavior |
|---|---|
| Default | Uses the DNS server closest to the end user. |
| In-China DNS | Uses only DNS in China, operated by JD Cloud. |
General setup
After you enable the Cloudflare China Network service, do the following:
- Contact your Cloudflare sales team to enable the feature. Currently you cannot enable it in the Cloudflare dashboard.
The current China Network supports both a full setup and a partial setup.
2. Update your domain registrar with the assigned in-China nameservers.
- For a full setup: These nameservers are displayed in the Cloudflare dashboard.
- For a partial setup: Create a CNAME record pointing to <hostname>.cdn.cloudflareanycast.net for global default DNS setting and <hostname>.cdn.cloudflarecn.net for In-China DNS.<details><summary>
Example 1: China Network zone named <code>example.cn</code> that requires In-China DNS</summary>
If you have two DNS records, <code>www</code> and <code>media</code>, pointing to two different origin servers, your Authoritative DNS server will have the following DNS records: - CNAME <code>www.example.cn</code> to <code>www.example.cn.cdn.cloudflarecn.net</code> - CNAME <code>media.example.cn</code> to <code>media.example.cn.cdn.cloudflarecn.net</code></details>
<details><summary>
Example 2: China Network zone named <code>example.com</code> that requires global default DNS setting</summary>
If you have two DNS records, <code>www</code> and <code>media</code>, pointing to two different origin servers, your Authoritative DNS server will have the following DNS records: - CNAME <code>www.example.com</code> to <code>www.example.com.cdn.cloudflareanycast.net</code> - CNAME <code>media.example.com</code> to <code>media.example.com.cdn.cloudflareanycast.net</code></details>
- Test your configuration by checking if the domain resolves correctly.
For further assistance, contact your account team.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/china-network/concepts/china-dns/#page","headline":"China Authoritative DNS","description":"Resolve DNS queries in Mainland China to improve Time to First Byte performance.","url":"https://developers.cloudflare.com/china-network/concepts/china-dns/","inLanguage":"en","image":"https://developers.cloudflare.com/china-network/concepts/china-dns/og.png?v=08df0d9700555d07","dateModified":"2026-04-30","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"},"keywords":["DNS"]}
description: Simplify global asset deployment in China with connectivity from CMI, CBC Tech, and JD Cloud. title: Global Acceleration image: https://developers.cloudflare.com/china-network/concepts/global-acceleration/og.png?v=7cd3839c6ea601eb
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/china-network/llms.txt
Use this file to discover all available pages before exploring further.
Docs