How do I update my DNS on Cloudflare?
4 min
Process
The process for setting up account-level custom nameservers depends on whether Cloudflare is managing your domainās DNS.
If Cloudflare manages your domainās DNS:
- To enable the custom nameservers on existing zones:
- Modify the zoneās registrar to use the custom nameserver names.
- To enable the custom nameserver by default for all new zones, use aĀ PUT commandĀ setting the value ofĀ use_account_custom_ns_by_defaultĀ toĀ true.
If another provider manages your domainās DNS:
- Add the glue records for each entry at your DNS provider.
- To enable the custom nameservers on existing zones:
- Modify the zoneās registrar to use the custom nameserver names.
- To enable the custom nameserver by default for all new zones, use aĀ PUT commandĀ setting the value ofĀ use_account_custom_ns_by_defaultĀ toĀ true.
Configure zone-level custom NameServers
To add custom nameservers to a specific zone:
- Log into the Cloudflare dashboard.
- Ensure the website you want to update is selected.
- Click theĀ DNSĀ app.
- OnĀ Custom Nameservers, clickĀ Add Custom NameserversĀ and enter nameserver hostnames. (e.g. ns1, ns2, ns3).
- Cloudflare will assign IPv4 and IPv6 to your nameservers.
- The next steps depends on whether Cloudflare manages the DNS for your domain:
- If Cloudflare does manage the DNS for your domain, no further action is required.
- If Cloudflare does not manage the DNS for your domain, add theĀ Custom NameserversĀ and IP addresses to your domain registrarās DNS as glue (AĀ orĀ AAAA) records. If you do not add these records, DNS lookups for your domain will fail.