Skip to content

Commit 53807cd

Browse files
More generic CNAME flattening explanation and adjust example
1 parent 035d0ae commit 53807cd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ Refer to [Manage DNS records](/dns/manage-dns-records/how-to/create-dns-records/
1616

1717
## CNAME flattening in Internal DNS
1818

19-
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.
19+
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.
2020

2121
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.
2222

2323
<Details header="Example">
2424

25-
- Query for `abc.example.local` with view ID 111.
25+
- Query for the `A` record on `abc.example.local` with view ID 111.
2626
- Zone 600 references zone 700, which is not linked to any view.
2727

2828
```mermaid
@@ -39,6 +39,7 @@ subgraph View 111 - London
3939
subgraph Zone 600 - example.local
4040
X["@ A 192.0.2.1"]
4141
Y["abc CNAME xyz.net"]
42+
U["def TXT 15192-51"]
4243
Z["def A 192.0.2.9"]
4344
end
4445
end
@@ -47,7 +48,7 @@ end
4748

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

50-
The record in zone 700 then points to `def.example.local`, which Cloudflare will then try to resolve in the original view. As an `A` record can be found for `def.example.local`, Cloudflare will return the IP address `192.0.2.9`.
51+
The record in zone 700 points to `def.example.local`, which Cloudflare will then try to resolve in the original view. As an `A` record can be found for `def.example.local`, Cloudflare will return the corresponding IP address - in this example, `192.0.2.9`.
5152

5253
</Details>
5354

0 commit comments

Comments
 (0)