Setup (3)
Last updated May 5, 2026 With outgoing zone transfers, you can keep Cloudflare as your primary DNS provider and use one or more secondary providers for increased availability and fault tolerance.
Before you begin
Make sure your account team has enabled your zone for outgoing zone transfers.
Consider the expected behaviors for different record types, and review your existing DNS records to make sure all of them have the desired Proxy status.
If using the API, you may also want to locate your Zone and Account IDs.
1. Create TSIG (optional)
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:
- TSIG name: The name of the TSIG object using domain name syntax (more details in RFC 8945 section 4.2 ↗︎).
- Secret (optional): Get a shared secret to add to your third-party nameservers. If left blank, this field generates a random secret.
- Algorithm: Choose a TSIG signing algorithm.
- Select Create.
To create a TSIG using the API, send a POST request.
2. Create Peer DNS Server (optional)
You only need to create a peer DNS server if you want:
- Your secondary nameservers to receive NOTIFYs for changes to your Cloudflare DNS records.
- A TSIG to sign zone transfer requests and NOTIFYs.
To create a peer 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:
- IP: If configured, specifies where Cloudflare sends NOTIFY requests to.
- Port: Specifies the IP Port for the NOTIFY IP.
- Enable incremental (IXFR) zone transfers: Does not apply when you are using Cloudflare as your primary DNS provider (Cloudflare zones always accept IXFR requests).
- Link an existing TSIG: If desired, link the TSIG you previously created.
- Select Create.
To create a peer DNS server using the API, send a POST request.
3. Link peer to primary zone (optional)
If you previously created a peer DNS server, you should link it to your primary zone.
Note
The maximum number of linked peers per zone is 30.
To link a primary zone to a peer using the dashboard:
- In the Cloudflare dashboard, go to the DNS Settings page. Go to Settings ↗
- For DNS Zone Transfers, select Manage linked peers.
- Select a peer.
- Select Save.
To link a primary zone to a peer using the API, send a POST request with the ID of the peer you previously created.
Multiple peers and TSIG
If you link more than one peer to a zone and at least one of them has TSIG configured, all peers are expected to also use the same TSIG.
4. Update your secondary DNS provider
Your secondary DNS provider should send zone transfer requests (via AXFR or IXFR) to this IP on port 53 and from the IP address specified in your peer configuration.
It should also have updated Access Control Lists (ACLs) to prevent NOTIFY messages sent from Cloudflare IP ranges from being blocked.
5. Add secondary nameservers within Cloudflare
Using the information from your secondary DNS provider, create NS records on your zone apex listing your secondary nameservers.
By default, Cloudflare ignores NS records added to the zone apex. To modify this behavior, enable multi-provider DNS.
Note
If your account zone defaults are already defined to have Multi-provider DNS enabled, this step may not be necessary.
- In the Cloudflare dashboard, go to the DNS Settings page. Go to Settings ↗
- Enable Multi-provider DNS.
Send the following PATCH request replacing the placeholders with your zone ID and authentication information:
<details>
<summary>
Required API token permissions
</summary>
At least one of the following <a href="https://developers.cloudflare.com/fundamentals/api/reference/permissions/">token permissions</a> is required:
- <code>Zone DNS Settings Write</code>
- <code>DNS Write</code>
</details>
Update DNS Settingsbash
curl "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_settings" \
--request PATCH \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--json '{
"multi_provider": true
}'
Note
In case you want to keep Cloudflare as the only authoritative DNS provider, do not enable multi-provider DNS. In this way, your secondary DNS is kept hidden and up-to-date with the Cloudflare primary, as a backup option for disaster recovery scenarios.
6. Enable outgoing zone transfers
When you enable outgoing zone transfers, this will send a DNS NOTIFY message to your secondary DNS provider.
- In the Cloudflare dashboard, go to the DNS Settings page. Go to Settings ↗
- For Outgoing Zone Transfers, switch the toggle to On.
To enable outgoing zone transfers using the API, send a POST request.
7. Add secondary nameservers to registrar
At your registrar, add the nameservers of your secondary DNS provider.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/dns/zone-setups/zone-transfers/cloudflare-as-primary/setup/#page","headline":"Setup","description":"With outgoing zone transfers, you can keep Cloudflare as your primary DNS provider and use one or more secondary providers for increased availability.","url":"https://developers.cloudflare.com/dns/zone-setups/zone-transfers/cloudflare-as-primary/setup/","inLanguage":"en","image":"https://developers.cloudflare.com/dns/zone-setups/zone-transfers/cloudflare-as-primary/setup/og.png?v=3a1f802e29fea71d","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: Which records transfer when Cloudflare is primary. title: Records transfer image: https://developers.cloudflare.com/dns/zone-setups/zone-transfers/cloudflare-as-primary/transfer-criteria/og.png?v=b30925d207b1f7de
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.
Docs