Cloudflare Docs
DNS
DNS
Edit this page
Report an issue with this page
Log into the Cloudflare dashboard
Set theme to dark (⇧+D)

Set up advanced nameservers

Advanced nameservers included with Foundation DNS are an opt-in configuration.

Having advanced namservers configured is a requirement for you to have access to the new GraphQL DNS analytics.

​​ Enable on a zone

To enable advanced nameservers on an existing zone:

  1. Opt for advanced nameservers on your zone:
  1. Log in to the Cloudflare dashboard and select your account and domain.
  2. Go to DNS > Records.
  3. In the Cloudflare nameservers card, enable Advanced nameservers.
  4. After you refresh the page, the card will display the values for your advanced nameservers NS records.

Use the Update DNS Settings endpoint to send a PATCH request like the following:

$ curl --request PATCH 'https://api.cloudflare.com/client/v4/zones/{zone_id}/dns_settings' \
--header 'X-Auth-Email: <EMAIL>' \
--header 'X-Auth-Key: <KEY>' \
--header 'Content-Type: application/json' \
--data '{
"foundation_dns": true
}'

The response body will contain your assigned namservers in the nameservers object. You will use these nameservers in the next step.

  1. Update the authoritative nameservers at your registrar. This step depends on whether you are using Cloudflare Registrar: