Convert full setup to partial setup
If you initially configured a primary setup (full), you can later convert your zone to use a CNAME setup (also known as partial setup). This guide assumes your zone is already in an active status.
A CNAME setup allows you to use Cloudflare's reverse proxy on individual subdomains while using a different authoritative DNS provider.
-
A CNAME setup requires a CNAME record for each proxied hostname but, following RFC 1912 ↗, CNAME records are not allowed on the zone apex (
example.com). With a CNAME setup, you can only proxy the zone apex if your authoritative DNS provider supports CNAME flattening ↗ (or an equivalent like ALIAS/ANAME records), or if you create A/AAAA records pointing the apex directly to Cloudflare anycast IP addresses. Otherwise, you can only proxy subdomains. -
Once your zone is using CNAME setup, on the dashboard, you will only be able to create A, AAAA, and CNAME records, which are the DNS record types that can be proxied.
New Universal SSL certificates will be provisioned for your proxied subdomains only after each CNAME record pointing to {your-hostname}.cdn.cloudflare.net is in place, and domain ownership is verified with the TXT record, as explained below.
To avoid downtime, replace your Universal SSL certificates with an advanced certificate, which will persist during the transition. After the conversion, you can optionally configure delegated DCV.
-
Export a zone file
To export records using the dashboard:
-
In the Cloudflare dashboard, go to the DNS Records page.
Go to Records -
Select Import and Export.
-
Select Export.
To export records using the API, send a GET request.
At least one of the following token permissions is required:Required API token permissions
DNS ReadDNS Write
Export DNS Records curl "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records/export" \--request GET \--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" -
-
Import the zone file into your new primary DNS provider.
-
At your new authoritative DNS provider, create or update records so that you have CNAME records pointing to
{your-hostname}.cdn.cloudflare.netfor every hostname you wish to proxy through Cloudflare.Example CNAME record at authoritative DNS provider
The CNAME record for
www.example.comwould be:www.example.com CNAME www.example.com.cdn.cloudflare.net
-
On the Cloudflare dashboard, go to the zone's Overview page.
-
Select Convert to CNAME DNS Setup and then Convert to confirm.
-
Save the information from the Verification TXT Record and add the record at your new authoritative DNS provider. If you lose the information, you can also access it on the DNS Records ↗ page, under Verification TXT Record.
Example verification record
A verification record for
example.commight be:Type Name Content TXT cloudflare-verify.example.com966215192-518620144
-
Use the Edit Zone endpoint with
typeset topartialto convert the zone type. -
Take note of the value returned under
verification_keyin the API response and add the corresponding TXT record at your new authoritative DNS provider.Example verification record
A verification record for
example.commight be:Type Name Content TXT cloudflare-verify.example.com966215192-518620144
Update the nameservers at your domain registrar to point to your new authoritative DNS provider. Make sure to remove the Cloudflare nameservers.
In Cloudflare, remove all records that are not of type A, AAAA, or CNAME, and also remove any A, AAAA, or CNAME records for hostnames you do not want to proxy after the conversion. After this cleanup, only the A, AAAA, or CNAME records for hostnames you want to proxy should remain in Cloudflare, and those same hostnames should have CNAME records pointing to {your-hostname}.cdn.cloudflare.net at your new authoritative DNS provider.