| [ Web Proxy ] |
| Viewing: https://developers.cloudflare.com/dns/zone-setups/conversions/convert-full-to-secondary/ | [Back] [Original] |
If you initially configured a primary setup (full), you can later convert your zone to use incoming zone transfers (Cloudflare as secondary).
Subdomain setup
If you also use subdomain setup1, consider the available combinations and whether your zone conversion could have any implications.
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.
Import the zone file into your new primary DNS provider.
At your Cloudflare zone, use the Update DNS Settings endpoint to enable secondary DNS overrides. Set the value for secondary_overrides to true.
Note
Enabling secondary DNS overrides is necessary in case you have DNS records that you wish to keep proxied.
Make adjustments to DNSSEC according to your option for DNSSEC with secondary setup.
(Optional) Create a Transaction Signature (TSIG).
A Transaction Signature (TSIG) authenticates communication between a primary and secondary DNS server.
Note
The TSIG names configured at your primary and secondary DNS providers have to be exactly the same. Any differences in TSIG names will cause zone transfers to fail.
While optional, this step is highly recommended.
To create a TSIG using the dashboard:
In the Cloudflare dashboard, go to the account Settings page.
Go to Configurations ↗Go to DNS Settings.
Under DNS Zone Transfers, for TSIG, select Create.
Enter the following information:
Select Create.
To create a TSIG using the API, send a POST request.
Create a peer server.
To create a peer server using the dashboard:
In the Cloudflare dashboard, go to the account Settings page.
Go to Configurations ↗Go to DNS Settings.
Under DNS Zone Transfers, for Peer DNS servers, select Create.
Enter the following information, paying particular attention to:
Select Create.
To create a peer DNS server using the API, send a POST request.
Use the Edit Zone endpoint with type set to secondary to convert the zone type. The existing records will remain in place.
In the Cloudflare dashboard, go to the DNS Settings page.
Go to Settings ↗Select Manage linked peers under DNS Zone Transfers.
Link the peer server you created in the previous steps and select Save.
Back on the DNS Settings page, select Initiate zone transfer.
Confirm the DNS records are transferring as expected.
Go to the DNS Records page and take note of your new Cloudflare Nameservers.
At your domain registrar (or parent zone), update your nameservers to include the secondary.cloudflare.com nameservers.
| Web Proxy Viewer | New URL | Original Page |