Skip to content

Commit c13fcea

Browse files
[DNS] Update API instructions for default ACNS or TCNS (#18099)
* Replace deprecated API with instructions for new option * Fix indentation within codeblock
1 parent 69524f0 commit c13fcea

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

src/content/docs/dns/nameservers/custom-nameservers/account-custom-nameservers.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,15 @@ Cloudflare will assign an IPv4 and an IPv6 address to each ACNS name.
6666

6767
### 3. (Optional) Make ACNS default for new zones
6868

69-
To make these ACNS the default nameservers for all new zones added to your account from now on, use the [Update Account endpoint](/api/operations/accounts-update-account) and set the value of `default_nameservers` to `custom.account`.
69+
To make these ACNS the default nameservers for all new zones added to your account from now on, use the endpoint [Update DNS Settings for an Account](/api/operations/dns-settings-for-an-account-update-dns-settings). Within the `zone_defaults` object, set the following:
70+
71+
```txt
72+
"zone_defaults": {
73+
"nameservers": {
74+
"type": "custom.account"
75+
}
76+
}
77+
```
7078

7179
## Disable account custom nameservers
7280

src/content/docs/dns/nameservers/custom-nameservers/tenant-custom-nameservers.mdx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,15 @@ If the parameter `ns_set` is omitted, the default set `1` will be assigned.
5555

5656
2. If you are **not** using [Cloudflare Registrar](/registrar/), update the nameservers at your registrar to use the TCNS names. If you are using [Cloudflare Registrar](/registrar/), no further action is needed.
5757

58-
To make these TCNS the default namerservers for all new zones added to your account from now on, use the [Update Account endpoint](/api/operations/accounts-update-account) and set the value of `default_nameservers` to `custom.tenant`.
59-
58+
To make these TCNS the default namerservers for all new zones added to your account from now on, use the endpoint [Update DNS Settings for an Account](/api/operations/dns-settings-for-an-account-update-dns-settings). Within the `zone_defaults` object, set the following:
59+
60+
```txt
61+
"zone_defaults": {
62+
"nameservers": {
63+
"type": "custom.tenant"
64+
}
65+
}
66+
```
6067
### Disable tenant custom nameservers on a zone
6168

6269
To remove TCNS and their associated DNS records from a zone, use a [PUT command](/api/operations/account-level-custom-nameservers-usage-for-a-zone-set-account-custom-nameserver-related-zone-metadata).

0 commit comments

Comments
 (0)