| [ Web Proxy ] |
| Viewing: https://developers.cloudflare.com/dns/nameservers/custom-nameservers/zone-custom-nameservers/ | [Back] [Original] |
With zone custom nameservers (ZCNS), each custom nameserver name must be a subdomain of the zone where the custom nameservers are configured.
For example, for a zone domain.test, the ZCNS can be ns1.domain.test and ns2.domain.test but they cannot use a different TLD (ns1.domain.org) nor a different domain (ns1.example.com).
Zone custom nameservers are available for zones on Business or Enterprise plans. Via API or on the dashboard.
To create zone custom nameservers:
In the Cloudflare dashboard, go to the DNS Records page.
Go to Records ↗On Custom nameservers, select Configure.
Select Create custom nameservers just for your-domain.com and enter the subdomains used for the ZCNS names (for example, ns1, ns2, ns3).
Select Save to confirm.
Use the Edit zone endpoint and specify the custom nameservers in the payload:
"vanity_name_servers": ["ns1.example.com","ns2.example.com"]Cloudflare will assign an IPv4 and an IPv6 address to each ZCNS name and automatically create the associated A or AAAA records.
The next step depends on whether you are using Cloudflare Registrar for your domain:
If you are using Cloudflare as a secondary DNS provider, you can still set up zone custom nameservers. After following the steps above to create zone custom nameservers, do the following:
vanity_name_servers_ips.NS records and, on the subdomains that you used as ZCNS names, add A/AAAA records.To remove zone custom nameservers (and their associated, read-only DNS records):
In the Cloudflare dashboard, go to the DNS Records page.
Go to Records ↗On Custom nameservers, select Disable.
Use the Edit zone endpoint and include an empty array in the payload:
"vanity_name_servers": []Cloudflare will remove your ZCNS and their associated read-only A or AAAA records.
If you are not using Cloudflare Registrar for your domain, make sure to adjust your nameservers at the registrar, parent zone, or Primary DNS provider accordingly.
| Web Proxy Viewer | New URL | Original Page |