Skip to content

Commit 6f8f186

Browse files
Descride CNAME flattening behavior with reference zones and view
1 parent 53bf5dd commit 6f8f186

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/content/docs/dns/cname-flattening/index.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ With CNAME flattening, Cloudflare finds the IP address that a CNAME points to. T
2020

2121
For more details on the steps involved in CNAME flattening, review the [CNAME flattening diagram](/dns/cname-flattening/cname-flattening-diagram/) and refer to the [Cloudflare blog post](https://blog.cloudflare.com/introducing-cname-flattening-rfc-compliant-cnames-at-a-domains-root/).
2222

23+
:::note
24+
For information about CNAME flattening in [Internal DNS](/dns/internal-dns/), refer to [internal DNS records](/dns/internal-dns/internal-zones/internal-dns-records/).
25+
:::
26+
2327
## Aspects to keep in mind
2428

2529
* CNAME flattening happens by default in some cases. Refer to [Setup](/dns/cname-flattening/set-up-cname-flattening/) for details.

src/content/docs/dns/internal-dns/internal-zones/internal-dns-records.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ You can manage internal DNS records in the same way as you would manage public D
1212

1313
Refer to [Manage DNS records](/dns/manage-dns-records/how-to/create-dns-records/) or to the [API documentation](/api/resources/dns/subresources/records/) for further guidance.
1414

15-
### CNAME flattening
15+
## CNAME flattening
1616

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

19-
Cloudflare will try to flatten the CNAME record within the same [DNS view](/dns/internal-dns/dns-views/). If that is not possible, the following will happen:
19+
Cloudflare will try to flatten the CNAME record considering both the specified [DNS view](/dns/internal-dns/dns-views/) and any existing [reference zones](/dns/internal-dns/internal-zones/reference-zones/). If the reference zone then has another CNAME, the record will again be considered from the perspective of the original view.
20+
21+
If it is not possible to flatten the CNAME record, the following will happen:
2022

2123
1. The CNAME record is returned to Gateway resolver as-is.
2224
2. Gateway resolver will process the returned record, depending on the **Fallback through public DNS** configuration:

0 commit comments

Comments
 (0)