Skip to content

Commit 9761735

Browse files
Add Dash and API tabs for Per-record CNAME flattening
1 parent a5a8582 commit 9761735

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

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

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ head:
99

1010
---
1111

12-
import { Render } from "~/components"
12+
import { Render, TabItem, Tabs } from "~/components"
1313

1414
:::note
1515

@@ -37,12 +37,31 @@ Accounts on paid plans can choose to flatten all `CNAME` records on their domain
3737

3838
## Per record
3939

40-
Accounts on paid plans also have the option to flatten specific `CNAME` records. This operation is currently only supported via API.
40+
Accounts on paid plans also have the option to flatten specific `CNAME` records.
41+
42+
<Tabs syncKey="dashPlusAPI"> <TabItem label="Dashboard">
43+
44+
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/login) and select your account and domain.
45+
2. In **DNS** > **Settings**, make sure that **CNAME flattening for all CNAME records** is turned off.
46+
3. Go to **DNS** > **Records** and find the CNAME record you would like to flatten.
47+
4. Select **Edit** and turn on the **Flatten** option.
48+
5. Select **Save** to confirm.
49+
50+
:::note[Unavailable flatten option]
51+
For the following cases, **Flatten** will not be available:
52+
- The record is at the [zone apex](#for-your-zone-apex).
53+
- The record is already proxied, which means it will be flattened by default.
54+
- **CNAME flattening for all CNAME records** is turned on, which means you cannot override it per-record.
55+
:::
56+
57+
</TabItem> <TabItem label="API">
4158

4259
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:
4360

4461
```txt
4562
"settings": {
4663
"flatten_cname": true
4764
}
48-
```
65+
```
66+
67+
</TabItem> </Tabs>

0 commit comments

Comments
 (0)