Set up advanced nameservers
Advanced nameservers included with Foundation DNS are an opt-in configuration.
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 
NSrecords. 
Use the Update DNS Settings endpoint to send a PATCH request like the following:
Terminal window curl --request PATCH \"https://api.cloudflare.com/client/v4/zones/{zone_id}/dns_settings" \--header "X-Auth-Email: <EMAIL>" \--header "X-Auth-Key: <API_KEY>" \--header "Content-Type: application/json" \--data '{"foundation_dns": true}'The response body will contain your assigned namservers in the
nameserversobject. 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.
 
 - 
 
Was this helpful?
- Resources
 - API
 - New to Cloudflare?
 - Products
 - Sponsorships
 - Open Source
 
- Support
 - Help Center
 - System Status
 - Compliance
 - GDPR
 
- Company
 - cloudflare.com
 - Our team
 - Careers
 
- 2025 Cloudflare, Inc.
 - Privacy Policy
 - Terms of Use
 - Report Security Issues
 - Trademark