Manage internal DNS records

Last updated Apr 17, 2026 Internal zones can contain the same DNS record types that Cloudflare supports for public zones.

You can manage internal DNS records in the same way as you would manage public DNS records, with the difference that proxy status does not apply to internal DNS records.

Refer to Manage DNS records or to the API documentation for further guidance.

CNAME flattening in Internal DNS

With CNAME flattening, Cloudflare finds the final target content that a CNAME points to and then returns this content instead of a CNAME record. With Internal DNS, CNAME flattening is applied by default and cannot be turned off.

Cloudflare will try to flatten the CNAME record considering both the specified DNS view and any existing reference zones. If the reference zone then has another CNAME, the record will again be considered from the perspective of the original view.

<details>

<summary>

Example

</summary>

  • Query for the <code>A</code> record on <code>abc.example.local</code> with view ID 111.
  • Zone 600 references zone 700, which is not linked to any view.
flowchart LR
accTitle: Internal DNS zones and CNAME flattening example
accDescr: Diagram exemplifying Internal DNS zones and containing CNAME and A records

subgraph Internal DNS
subgraph Zone 700 - net
A["@ A 192.0.2.10"]
B["xyz CNAME def.example.local"]
end
subgraph View 111 - London
subgraph Zone 600 - example.local
X["@ A 192.0.2.1"]
Y["abc CNAME xyz.net"]
U["def TXT 15192-51"]
Z["def A 192.0.2.9"]
end
end
end

After finding the CNAME record that points to <code>xyz.net</code>, Cloudflare cannot resolve it within zone 600. However, since this zone is referencing zone 700, this will be considered in the resolution.

The record in zone 700 points to <code>def.example.local</code>, which Cloudflare will then try to resolve in the original view. As an <code>A</code> record can be found for <code>def.example.local</code>, Cloudflare will return the corresponding IP address - in this example, <code>192.0.2.9</code>.

</details>

If it is not possible to flatten the CNAME record, the following will happen:

  1. The CNAME record is returned to Gateway resolver as-is.
  2. Gateway resolver will process the returned record, depending on the Fallback through public DNS configuration:
  3. On: Gateway will try to resolve the query by sending it to Cloudflare's public DNS resolver (1.1.1.1).
  4. Off: Gateway will return the response as-is to the client.

Was this helpful?

YesNo

On this page

Manage internal DNS records - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/dns/internal-dns/internal-zones/internal-dns-records/#page","headline":"Manage internal DNS records","description":"Manage internal DNS records in Cloudflare. Learn about supported DNS record types and CNAME flattening.","url":"https://developers.cloudflare.com/dns/internal-dns/internal-zones/internal-dns-records/","inLanguage":"en","image":"https://developers.cloudflare.com/dns/internal-dns/internal-zones/internal-dns-records/og.png?v=694ea01d70058dd9","dateModified":"2026-04-17","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/"},"keywords":["Private networks"]}


description: Learn about reference zones. Cloudflare Internal DNS allows zones to reference others for query resolution when no direct record is found. title: Reference zones image: https://developers.cloudflare.com/dns/internal-dns/internal-zones/reference-zones/og.png?v=5d7a13183ad3c595


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.