Authoritative Nameserver Assignment, Advanced DNS, Custom Hostnames, and Registrar Delegation
How Cloudflare assigns authoritative nameservers, when to use advanced or custom sets, and how to update your registrar so the zone activates.
This page summarizes Cloudflare DNS nameserver documentation: how authoritative nameservers are assigned, the difference between standard and Foundation DNS advanced nameservers, custom and vanity hostnames, updating delegation at your registrar, and why a zone can stay in Pending Nameserver Update.
Authoritative nameservers: what they are and why delegation matters
Section titled “Authoritative nameservers: what they are and why delegation matters”Authoritative nameservers are the DNS servers that hold the definitive records for your domain and answer the final step of DNS resolution. On Cloudflare DNS, that means the nameserver hostnames Cloudflare assigns (or you configure as custom nameservers) must be published by your domain’s parent—usually at your registrar—before the zone can activate and most application features apply.
Nameservers are DNS servers that answer DNS queries about the domains they are authoritative for. When a nameserver is authoritative for example.com, DNS resolvers will consider responses from this nameserver when a user tries to access example.com.
— Cloudflare, Nameservers
To use Cloudflare DNS as an authoritative DNS provider - be it in a primary (full) or secondary setup -, your domain nameservers must point to nameservers that you get from your Cloudflare account. Updating your nameservers is required to activate your domain on Cloudflare and use most of our application services.
— Cloudflare, Update nameservers
If the domain uses DNSSEC at the registrar, turn DNSSEC off there before changing nameservers; re-enable it through Cloudflare after activation (Onboard a domain).
Nameserver types: standard, advanced, and custom
Section titled “Nameserver types: standard, advanced, and custom”Cloudflare automatically assigns nameservers when you add a domain on primary (full) or secondary DNS setup. The default aims for consistent names across zones in one account, but conflicts can yield different hostnames even within the same account (Nameserver options).
| Setup | Count | Hostname pattern | Plan / product |
|---|---|---|---|
| Standard full setup | 2 | <proper_name>.ns.cloudflare.com |
Default |
| Foundation DNS advanced nameservers | 3 | <color>.foundationdns.com, .net, .org (one of each) |
Enterprise, opt-in |
| Secondary DNS on Cloudflare | 2 | <proper_name>.secondary.cloudflare.com |
Secondary setup |
| Custom nameservers | 2–5 names | Your FQDNs (e.g. ns1.example.com) |
Business / Enterprise (varies) |
Unless your account has a specific DNS zone defaults configuration, when you add a domain on a primary (full) or secondary DNS setup, Cloudflare automatically assigns two standard nameservers for your zone.
— Cloudflare, Nameservers
Enterprise accounts on Foundation DNS have access to advanced nameservers. Advanced nameservers are hosted on foundationdns.com, foundationdns.net, and foundationdns.org.
— Cloudflare, Nameservers
Foundation DNS is Cloudflare’s enterprise DNS offering; advanced nameservers and account-unique DNSSEC keys are opt-in (Set up advanced nameservers).
Advanced nameservers: resiliency and assignment rules
Section titled “Advanced nameservers: resiliency and assignment rules”Advanced nameservers (included with Foundation DNS) add geographically distributed anycast groups, a slower release path for changes, and stricter assignment rules so directly descending zones do not share the same nameserver set as a parent.
Advanced nameservers included with Foundation DNS offer improved resiliency and more consistent nameserver assignment.
— Cloudflare, Advanced nameservers
The IPs assigned to each nameserver are static, meaning they will not change without notification.
— Cloudflare, Advanced nameservers
A zone uses only one nameserver configuration at a time. Legacy zone, account, or tenant custom nameservers do not support Advanced anycast network groups; for branded names on that network, use an Advanced Custom Nameserver set (Custom nameservers).
Custom nameservers: legacy sets vs nameserver sets (beta)
Section titled “Custom nameservers: legacy sets vs nameserver sets (beta)”Custom (vanity) nameservers let a domain use Cloudflare DNS without Cloudflare-branded NS hostnames—for example ns1.example.com and ns2.example.com (Custom nameservers).
Two parallel models exist; a zone uses one or the other, not both:
- Nameserver sets (beta) — account-level, API-only for Enterprise; reusable, immutable objects with 2–5 names and assigned IPv4/IPv6 (Nameserver sets).
- Legacy custom nameservers — zone, account (
ns_set1–5), or tenant level (Set up account custom nameservers, Set up zone custom nameservers).
Where to find assigned nameservers and update the registrar
Section titled “Where to find assigned nameservers and update the registrar”Find nameserver names in the dashboard or API
Section titled “Find nameserver names in the dashboard or API”On the DNS Records page, use the Cloudflare Nameservers card (DNS FAQ). During onboarding they also appear in the flow; later, the zone Overview works (Set up a primary zone).
For automation (many domains), after POST to create a zone, read name_servers from the Create Zone response or zone details (Add multiple sites via automation).
You can resolve a nameserver hostname to its IP with dig (example from the FAQ):
dig kate.ns.cloudflare.comUpdate delegation at the registrar (full setup)
Section titled “Update delegation at the registrar (full setup)”- Remove existing authoritative nameservers at your registrar (or parent zone if delegated).
- Add the exact hostnames Cloudflare shows for this zone—standard zones use two names; advanced Foundation DNS zones need all three TLD variants (Zone stuck in Pending Nameserver Update).
- Wait for registrar propagation (up to 24 hours); Cloudflare emails when the site activates (Change nameservers).
- If you use custom or advanced nameservers with Cloudflare Registrar, contact Cloudflare Support to apply the delegation (Update nameservers, Set up advanced nameservers).
If you do not know your registrar, use ICANN Lookup (linked from Cloudflare’s update guide). Some hosts are resellers; nameserver UI may be on the reseller platform, not the underlying registrar.
Why a new zone gets different nameservers than your other zones
Section titled “Why a new zone gets different nameservers than your other zones”Cloudflare cannot manually swap the standard or advanced set assigned at zone creation—not even via Support (Nameserver options, DNS FAQ).
Common reasons for a different pair or triple:
- The same domain is (or was recently) active on another Cloudflare account.
- The zone was deleted and re-added.
- A parent or child zone already uses the “preferred” set (especially with advanced blue/gold/orange sets).
- Registrar delegation already pointed at Cloudflare when the zone was created (reassignment to prevent hijacking).
To align future zones, Enterprise options include account custom nameservers, nameserver sets (beta), or DNS zone defaults (applied only when a new zone is created, not retroactively).
DNS zone defaults are only applied at the moment a new zone is created and will not impact already existing zones, nor zones that existed previously and are being revived.
— Cloudflare, Configure DNS zone defaults
Deleting and re-adding a zone does not force a specific assignment and may produce yet another set (DNS FAQ).
Enable advanced nameservers and configure them in the API
Section titled “Enable advanced nameservers and configure them in the API”Advanced nameservers are opt-in per zone. After enablement, standard nameservers may still respond during transition (Set up advanced nameservers).
Dashboard: DNS Records → Cloudflare nameservers card → enable Advanced nameservers, then update delegation.
API (preferred field):
curl "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_settings" \ --request PATCH \ --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \ --json '{"nameservers": {"type": "cloudflare.advanced"}}'nameservers.type and deprecation of foundation_dns
Section titled “nameservers.type and deprecation of foundation_dns”DNS settings endpoints now represent Advanced Nameservers with nameservers.type: "cloudflare.advanced" instead of relying on foundation_dns: true alone.
Use nameservers.type: “cloudflare.advanced” for new writes.
— Cloudflare, Advanced Nameservers use a nameserver type
| Phase | Behavior |
|---|---|
| Rollout (~7 days from Oct 26, 2026) | Advanced zones may still return cloudflare.standard until rollout hits the account; PATCH can use cloudflare.advanced if entitled |
| Transition | foundation_dns remains a compatibility alias; if both are sent in PATCH, they must match or the API rejects the request |
| End of life (Nov 23, 2026) | foundation_dns no longer returned or accepted on /zones/{zone_id}/dns_settings and /accounts/{account_id}/dns_settings |
(API deprecations, DNS changelog)
Account-level legacy fields default_nameservers and use_account_custom_ns_by_default on account settings are deprecated in favor of DNS Settings; zone defaults use zone_defaults.nameservers.type with values such as cloudflare.standard, cloudflare.standard.random, custom.account, and custom.tenant (API deprecations).
This API metadata change does not alter Foundation DNS subscription status or require zone migration (Advanced Nameservers use a nameserver type).
Nameserver sets (beta): create, glue, assign
Section titled “Nameserver sets (beta): create, glue, assign”For Enterprise, a nameserver set groups 2–5 custom nameserver names with Cloudflare-assigned addresses. Sets are immutable; only the set’s label name can be renamed later (Nameserver sets, changelog: nameserver sets).
High-level flow:
POST/accounts/{account_id}/dns_settings/nameserver_setswithadvanced: truefor Foundation DNS anycast groups.- Create
A/AAAA(and parent glue if in-bailiwick) at the authoritative DNS for each nameserver name—Cloudflare does not create those records for you. PATCHzonedns_settingswith"nameservers": {"type": "custom", "nameserver_set_id": "..."}.- Point the registrar (or parent
NSrecords) at all names in the set.
Assignment fails if set addresses conflict with a parent zone, subdomain zone, or same name on another account; use a different ip_set number (Nameserver sets).
Activation requires parent NS names, and per-nameserver A/AAAA answers matching assigned addresses (Nameserver sets).
Behavior differences worth knowing before switching to advanced
Section titled “Behavior differences worth knowing before switching to advanced”With advanced nameservers (Set up advanced nameservers):
- Wildcard vs empty non-terminal: a
*.example.comwildcard does not apply to empty non-terminals (RFC 4592 behavior). - Delegated subdomains: once a name is delegated with
NSrecords, Cloudflare does not serve other record types on that name from the parent zone—even if they still exist in the table.
For subdomain delegations, RFC 1912 recommends at most seven nameservers per delegation name; Cloudflare allows up to ten NS records per name but advises seven or fewer (Delegate subdomains, DNS record types — NS).
Nameserver TTL (for Cloudflare-branded or custom authoritative NS) is a separate DNS Records option; default 86,400 seconds, range 30–86,400 on Foundation DNS (Nameserver options, TTL reference).
Common mistakes
Section titled “Common mistakes”- Updating the registrar with nameservers from another zone, account, or an old screenshot instead of the current zone Overview list.
- Presetting Cloudflare NS at the registrar before creating the zone, then failing to update after Cloudflare reassigns.
- For advanced DNS, publishing only two of the three required
foundationdns.*hostnames. - Enabling custom or advanced NS on Cloudflare Registrar without opening a Support ticket for delegation.
- Expecting Support to “rotate” branded standard/advanced assignments; use custom/account defaults or nameserver sets instead.
- For nameserver sets, missing glue or
A/AAAAon each vanity hostname, or reusing anip_setthat collides with a parent or child zone.
How to check this on your site
Section titled “How to check this on your site”- In the Cloudflare dashboard, open the zone Overview and copy the full assigned nameserver list from the pending/active status area (Zone stuck in Pending Nameserver Update).
- Run a WHOIS or ICANN Lookup and confirm the registrar-published NS hostnames match that list exactly.
- For each assigned hostname, run
dig <nameserver>and compare theArecord to Cloudflare’s documentation or your custom set assignment (DNS FAQ). - If the zone stays pending, re-check for typos in delegation and for preset-NS reassignment cases described in Nameserver options.
- You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about, and we will correct or clarify it.