Convert secondary setup to partial setup

Last updated May 5, 2026 If you initially set up incoming zone transfers (Cloudflare as secondary), you can later convert your zone to use a CNAME setup (partial).

Subdomain setup

If you also use subdomain setup<sup>1</sup>, consider the available combinations and whether your zone conversion could have any implications.

Footnotes

  1. Meaning you have one or more subdomains ( sub.example.com) added to Cloudflare as their own zone, separate from your apex domain ( example.com). ↩

Follow the steps below to achieve this conversion.

1. Stop transferring the zone

  1. In the Cloudflare dashboard, go to the DNS Settings page. Go to Settings ↗
  2. Under DNS Zone Transfers, and select Manage linked peers.
  3. Unlink the peer and select Save.

At this point, your zone will be read-only.

2. Configure your authoritative DNS provider

  1. (Optional) If you are also migrating to a new authoritative DNS provider, export a zone file from the previous provider and import it into the new one.
  2. At your authoritative DNS provider, create CNAME records pointing to {your-hostname}.cdn.cloudflare.net for every hostname you wish to proxy through Cloudflare.<details><summary>

Example CNAME record at authoritative DNS provider</summary>

The <code>CNAME</code> record for <code>www.example.com</code> would be:

txt www.example.com CNAME www.example.com.cdn.cloudflare.net

</details>

  1. At your authoritative DNS provider, remove any previously existing A, AAAA, or CNAME records referencing the hostnames you want to proxy through Cloudflare. For these hostnames, leave only the records pointing to {your-hostname}.cdn.cloudflare.net.

3. Convert your Cloudflare zone

  1. Back at your Cloudflare zone, confirm that you have all the A, AAAA, or CNAME DNS records needed for the hostnames you pointed to {your-hostname}.cdn.cloudflare.net in the previous step. You can also delete any DNS records that have a different type, as they will no longer resolve once you convert your zone to a CNAME setup (partial).
  2. Use the Edit Zone endpoint with type set to partial to convert the zone type. Existing DNS records will not be affected.
  3. On the DNS Records ↗︎ page, get the Verification TXT Record and add it at your authoritative DNS provider.<details><summary>

Example verification record</summary>

A verification record for <code>sub.example.com</code> might be:

Type Name Content
TXT <code>cloudflare-verify.sub.example.com</code> 966215192-518620144

If your authoritative DNS provider automatically appends DNS record <code>name</code> fields with your domain, make sure to only insert <code>cloudflare-verify</code> as the record name. Otherwise, it may result in an incorrect record name, such as <code>cloudflare-verify.sub.example.com.sub.example.com</code>.

After creating the record, you can use this <a href="https://digwebinterface.com/?type=TXT&ns=auth&nameservers=">Dig Web Interface link ↗︎</a> to search (<code>dig</code>) for <code>cloudflare-verify.<YOUR DOMAIN></code> and validate if it is working.</details>

Note

The verification record must remain in place for as long as you want your CNAME setup (partial) to be active on Cloudflare.

4. Update nameservers

At your domain registrar (or parent zone), update the nameservers. In a CNAME setup (partial), only the nameservers of your external DNS provider should be listed.

  • Remove any secondary.cloudflare.com nameservers if you used to have them.
  • If you are also migrating to a new authoritative DNS provider, add your new nameservers.

Was this helpful?

YesNo

On this page

Convert secondary setup to partial setup - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/dns/zone-setups/conversions/convert-secondary-to-partial/#page","headline":"Convert secondary setup to partial setup","description":"If you initially set up incoming zone transfers (Cloudflare as secondary), you can later convert your zone to use a partial setup.","url":"https://developers.cloudflare.com/dns/zone-setups/conversions/convert-secondary-to-partial/","inLanguage":"en","image":"https://developers.cloudflare.com/dns/zone-setups/conversions/convert-secondary-to-partial/og.png?v=a1d1b555018619c2","dateModified":"2026-05-05","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/"}}


description: Use Cloudflare as your primary DNS provider. title: Primary setup (Full) image: https://developers.cloudflare.com/dns/zone-setups/full-setup/og.png?v=d703cc27fa9611a3


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/dns/llms.txt
Use this file to discover all available pages before exploring further.