Skip to content

Commit 0b127f5

Browse files
RebeccaTamachiropedrosousa
authored andcommitted
[DNS] Per-record CNAME flattening API only (#17299)
* Add per record CNAME flatenning and point to API docs * Apply suggestion from code review Co-authored-by: Pedro Sousa <[email protected]> * More specific about this being a field available for CNAME only --------- Co-authored-by: Pedro Sousa <[email protected]>
1 parent 1cde093 commit 0b127f5

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

src/content/docs/dns/cname-flattening/set-up-cname-flattening.mdx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,24 @@ If the `CNAME` target is on the same zone as the `CNAME` record, Cloudflare proc
2525

2626
## For all CNAME records
2727

28-
Accounts on paid plans can also choose to flatten all `CNAME` records on their domain. This option is useful for DNS-only (unproxied) `CNAME` records since proxied records are flattened by default (as they return Cloudflare IPv4 and IPv6 addresses).
28+
Accounts on paid plans can choose to flatten all `CNAME` records on their domain. This option is useful for DNS-only (unproxied) `CNAME` records since proxied records are flattened by default (as they return Cloudflare IPv4 and IPv6 addresses).
2929

3030
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/login) and select your account and domain.
31-
2. Navigate to **DNS** > **Settings**.
31+
2. Go to **DNS** > **Settings**.
3232
3. For **CNAME Flattening**, select **Flatten all CNAMEs**.
3333

3434
:::caution
35-
<Render file="cname-flattening-callout" />
35+
<Render file="cname-flattening-callout" />
3636
:::
37+
38+
## Per record
39+
40+
Accounts on paid plans also have the option to flatten specific `CNAME` records. This operation is currently only supported via API.
41+
42+
With the available [API endpoints](/api/operations/dns-records-for-a-zone-create-dns-record), specify the following for each `CNAME` record in the request body:
43+
44+
```txt
45+
"settings": {
46+
"flatten_cname": true
47+
}
48+
```

0 commit comments

Comments
 (0)