China Authoritative DNS
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.
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.
Before you enable China Authoritative DNS, confirm that the majority (over 90%) of your traffic comes from Mainland China.
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. |
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.
-
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
CNAMErecord pointing to<hostname>.cdn.cloudflareanycast.netfor global default DNS setting and<hostname>.cdn.cloudflarecn.netfor In-China DNS.
Example 1: China Network zone named
example.cnthat requires In-China DNSIf you have two DNS records,
wwwandmedia, pointing to two different origin servers, your Authoritative DNS server will have the following DNS records:- CNAME
www.example.cntowww.example.cn.cdn.cloudflarecn.net - CNAME
media.example.cntomedia.example.cn.cdn.cloudflarecn.net
Example 2: China Network zone named
example.comthat requires global default DNS settingIf you have two DNS records,
wwwandmedia, pointing to two different origin servers, your Authoritative DNS server will have the following DNS records:- CNAME
www.example.comtowww.example.com.cdn.cloudflareanycast.net - CNAME
media.example.comtomedia.example.com.cdn.cloudflareanycast.net
-
Test your configuration by checking if the domain resolves correctly.
For further assistance, contact your account team.