A name server (NS) is a kind of DNS server. It stores all the DNS records for a domain, including its A, MX and CNAME records, and publishes them to the rest of the internet.
Your domain's NS records tell every other server on the internet "ask these servers for this domain's records". For example:
example.com. 86400 IN NS ns1.examplehosting.com.
example.com. 86400 IN NS ns2.examplehosting.com.
These two servers are the domain's "authoritative name servers". When a question about your domain comes in, they give the final, correct answer.

How do name servers work?
When you register a domain, your registrar passes the name server details to the parent zone (Verisign for .com, DENIC for .de, Nominet for .uk). This is called delegation. A resolver anywhere in the world can then go to the .com servers for example.com, learn the names of your name servers there and fetch the actual records from them.
Since name servers are themselves domain names, the resolver also has to turn those names into IP addresses. If a name server sits inside your own domain (for example ns1.example.com), its IP address must also be registered with the parent zone. This is called a glue record; without it the resolver would go round in circles.
Where do you change NS records?
A domain's name servers are managed in the control panel of the registrar the domain is registered with. The NS rows you see in your hosting panel or in Cloudflare are for information only; the actual delegation happens at the registrar.
Once you've updated the name servers, you manage your DNS records in the panel of the provider you pointed them to (your hosting company, Cloudflare and so on). Records in the old panel are no longer used.
Steps for changing name servers
- Write down the current records. Look up your domain and save every A, MX, TXT (SPF, DKIM, DMARC), CNAME and verification record. The tool's "Show as zone file" option gives you all of them at once.
- Create the records in the new panel. Before you switch name servers, add every record at the new provider. Some services such as Cloudflare scan existing records automatically, but always check DKIM and verification records by hand.
- Change the NS at your registrar. Enter the name server names your new provider gave you.
- Watch the propagation. The change can take a few hours, sometimes 24–48 hours, to spread. During that time some users see the old servers and some the new ones; as long as both have the same records, nothing breaks.
- Don't shut down the old provider right away. Keep the old DNS service running for at least two days.
Things to watch out for
- Use at least two name servers. If one becomes unreachable, the other answers. Ideally they're on different networks (different IP blocks).
- The NS list at the registrar and in the DNS panel should match. If the list in the parent zone differs from the NS records the name servers publish themselves, some resolvers get inconsistent results.
- If DNSSEC is on, turn it off first. If the old DS record stays at the registrar when you switch providers, the new servers' signatures can't be validated and your domain won't load at all on resolvers that use DNSSEC.
- Keep an eye on your domain's expiry date. When a domain expires, the registrar points the name servers to its own parking page; the website and email stop together.
NS and the SOA record
Every zone also has an SOA (Start of Authority) record. The SOA holds the primary name server, the administrator's email address and the zone's serial number. Secondary name servers fetch the zone from the primary again when the serial number goes up. Our lookup tool shows the SOA values separately and warns you if they fall outside the recommended ranges.
