Proxy traffic

Last updated May 12, 2026 When you set up incoming zone transfers on a secondary zone, you cannot enable the proxy on any transferred DNS records by default.

With Secondary DNS override, you can use Cloudflare as your secondary DNS provider but still get the performance and security benefits of Cloudflare's proxy. Additionally it lets you override any A and AAAA records on your zone apex with a CNAME record.

Note

Only A, AAAA, and CNAME records can be proxied.

Prerequisites

Before you set up Secondary DNS override, make sure that you have:

  • Set up a secondary DNS zone and confirmed your DNS records are transferred correctly.
  • Set your DNSSEC with Secondary DNS ↗︎ option to either Unsigned or Live Signing. If set to Pre-signed, Cloudflare will treat all your DNS records as unproxied (DNS only).
  • Removed all nameservers from your registrar except for those provided by Cloudflare (highly recommended).

Caution

If you use Secondary DNS override and keep other nameservers at your registrar, DNS responses will be inconsistent across DNS providers, which goes against official standards ↗︎.

Set up Secondary DNS override

  1. In the Cloudflare dashboard, go to the DNS Settings page. Go to Settings ↗
  2. Enable Secondary DNS override.
  3. On the DNS Records ↗︎ page, for specific A, AAAA, or CNAME records, select the grey cloud icon to set their Proxy status to Proxied.

  4. To enable Secondary DNS override on a zone, use the following PATCH request:

<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 '{
        "secondary_overrides": true
    }'
  1. For specific A, AAAA, or CNAME records, send a POST request with the proxied status as true.
  2. Make sure the added record has the same name as the transferred record you intend to proxy. Cloudflare only looks at the name and the proxy status, so the record content does not matter.

Zone transfers interaction

Zone transfers from the primary (including content or TTL changes) do not change the proxy status of records you set to proxied. The override persists until the record is deleted on the primary.

Proxied A and AAAA records

After proxying (orange clouding) a Secondary DNS record, any additional records under that hostname transferred from the primary DNS provider are automatically proxied. This applies to all A and AAAA records under that domain.

CNAME record on the zone apex

You can also add a CNAME record on the zone apex (supported through CNAME Flattening) and either proxy that record or keep it on DNS Only.

Once you create a CNAME record at the apex, existing A or AAAA records on the zone apex will be deactivated. You can view those deactivated records by clicking View Inactive Records. To re-activate the A or AAAA records at the root, remove the CNAME record.

Verify that your records are proxied

Query DNS at your assigned Secondary DNS nameserver to confirm the DNS response Cloudflare returns. Records proxied by Cloudflare return Cloudflare IPs ↗︎.

Was this helpful?

YesNo

On this page

Proxy traffic - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/dns/zone-setups/zone-transfers/cloudflare-as-secondary/proxy-traffic/#page","headline":"Proxy traffic","description":"Proxy traffic through Cloudflare on secondary zones.","url":"https://developers.cloudflare.com/dns/zone-setups/zone-transfers/cloudflare-as-secondary/proxy-traffic/","inLanguage":"en","image":"https://developers.cloudflare.com/dns/zone-setups/zone-transfers/cloudflare-as-secondary/proxy-traffic/og.png?v=6fdc5649dc51a947","dateModified":"2026-05-12","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: With incoming zone transfers, you can keep your primary DNS provider and use Cloudflare as a secondary DNS provider. title: Setup image: https://developers.cloudflare.com/dns/zone-setups/zone-transfers/cloudflare-as-secondary/setup/og.png?v=3a1f802e29fea71d


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.