Name servers at Cloudflare: what you should know
Cloudflare automatically assigns two name servers to every zone, following the pattern name.ns.cloudflare.com. The names cannot be changed, and Cloudflare requires them to be entered exactly as shown for the zone, so do not rely on the names from another zone. Custom names for the name servers are only available on the Business and Enterprise plans.
The switch happens at the registrar: there you remove the existing name servers and enter the two from Cloudflare exactly as shown. According to Cloudflare it can take up to 24 hours until the zone is reported as active. If DNSSEC is active at the current provider, it has to be disabled at the registrar first.
Conversely there is a restriction: a domain registered through Cloudflare Registrar always uses the Cloudflare name servers. If you want to run the zone elsewhere you have to transfer the domain to another registrar; the only option is delegating individual subdomains with NS records.
How to change the name servers at Cloudflare
The way at Cloudflare:
- Add the domain in the Cloudflare dashboard and check that Cloudflare imported all existing DNS records, above all MX, SPF, DKIM and DMARC.
- Note the two assigned name servers; they are shown in the onboarding flow and later on the “Overview” page of the zone.
- At the domain’s registrar remove the existing name servers and enter the two from Cloudflare.
- Wait until Cloudflare shows the zone as “Active” and check which name servers the registry returns.
Click path at Cloudflare
Official guide from Cloudflare: Change your nameservers (Full setup)(opens in a new tab)
Before any name server change
With the name servers the whole zone changes. Whatever is missing at the new provider no longer exists after the switch, and with mail that often only shows days later.
- Create all records of the old zone at the new provider: A and AAAA, MX, SPF, DKIM, DMARC, CNAMEs for services, verifications.
- Switch off DNSSEC or remove the DS record beforehand and wait for its TTL.
- Enter at least two name servers that already answer for the domain.
- Delete the old zone only once the switch has arrived everywhere; that can take one to two days.
Verify and keep an eye on it
The name server check below compares the name servers at the registry with those in the zone and checks whether all are reachable and return the same data. You see whether the switch at Cloudflare has arrived and whether one server is out of line. DomainWarn then monitors the name servers permanently and reports every change, including one nobody ordered.