How can we help?
< All Topics
Print

How do I update my DNS on Cloudflare?

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:

  1. Create an account-level nameserver with a POST command.
  2. Cloudflare creates the glue records automatically.
  3. To enable the custom nameservers on existing zones:
    1. Use a PUT command on each zone.
    2. Modify the zone’s registrar to use the custom nameserver names.
  4. 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:

  1. Create an account-level nameserver with a POST command.
  2. Add the glue records for each entry at your DNS provider.
  3. Use a POST command to verify that the glue records are active.
  4. To enable the custom nameservers on existing zones:
    1. Use a PUT command on each zone.
    2. Modify the zone’s registrar to use the custom nameserver names.
  5. 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:

  1. Log into the Cloudflare dashboard.
  2. Ensure the website you want to update is selected.
  3. Click the DNS app.
  4. On Custom Nameservers, click Add Custom Nameservers and enter nameserver hostnames. (e.g. ns1, ns2, ns3).
  5. Cloudflare will assign IPv4 and IPv6 to your nameservers.
  6. 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 (or AAAA) records. If you do not add these records, DNS lookups for your domain will fail.
Previous How do I add my domain?
Next How do I update my DNS on Godaddy
Table of Contents