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:
- Opt for advanced nameservers on your zone:
- Log in to the Cloudflare dashboard and select your account and domain.
- Go to DNS > Records.
- In the Cloudflare nameservers card, enable Advanced nameservers.
- 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.
- Update the authoritative nameservers at your registrar. This step depends on whether you are using Cloudflare Registrar:
- If you are using Cloudflare Registrar, contact Cloudflare Support to have your nameservers updated.
- If you are using a different registrar or if your zone is delegated to a parent zone, manually update your nameservers.