Websites and Tech

Nameserver

Also called NS record, name server

The authoritative server holding your domain's records, and the place the rest of the internet asks when it needs to find you.

Quick facts: Nameserver

Category
Websites and Tech
Also called
NS record, name server
Level
Intermediate
Affects
Who controls DNS, website and email routing, migration risk
Where to see it
Registrar control panel, WHOIS lookup, dig or nslookup
In this article4
  1. How a nameserver works
  2. Why nameservers matter
  3. Common mistakes with nameservers
  4. Getting the nameserver choice right

How a nameserver works

A nameserver is the machine holding the authoritative answers for your domain: the zone file containing every record, from the address of the website to mail routing and platform verification strings. When a resolver anywhere in the world needs to know where your site or your email lives, the chain of lookups ends at your nameservers, and whatever they publish is treated as the truth.

Which nameservers are authoritative is recorded at the registry for your top-level domain, and you set that at your registrar. That separation is the part worth understanding. The registrar decides which nameservers answer for the name; the nameservers decide what every record inside it says. Changing the first swaps the whole rulebook rather than editing a line in it.

Why nameservers matter

They determine where the truth about your domain is kept, and therefore who is able to change it. A business whose nameservers point into a former developer’s account has no practical control of its own website or email, whatever the ownership record at the registrar says, until that is untangled. It is the first thing worth checking when a working relationship ends.

They also mark the difference between a controlled edit and an outage. Changing a single A record alters one thing. Changing nameservers alters everything at once, and any record that was not re-created at the new provider beforehand simply ceases to exist the moment the switch takes effect.

Common mistakes with nameservers

Switching them to a new host during a website build is the one I meet most often, and it is always well intentioned. The host generates a default zone, the new site appears, everyone is pleased, and the company’s mail routing and verification records — which nobody thought to copy — have gone. The email failure surfaces later and gets blamed on the email provider.

The second is a split brain: someone edits records in the registrar’s DNS panel while the nameservers actually point somewhere else. The changes save without complaint and have no effect whatsoever, because nothing on the internet is asking that provider. Hours disappear into re-checking an edit that was never live in the first place.

Getting the nameserver choice right

Choose one place to manage DNS — the registrar, the host, or a dedicated provider — and keep it there. Write down which it is somewhere the whole team can find without logging into anything. None of the three options is wrong on its own; the only genuinely wrong answer is nobody in the business knowing where the records live.

Before any nameserver change, export the entire zone and re-create every record at the new provider first, then switch. Afterwards, check the website, send and receive a test email, and open each connected platform to confirm its verification survived. Where the move is part of a bigger change of server, plan it as a hosting migration rather than an afternoon’s edit.

Do and do not

Do

  • Keep DNS management in one documented place
  • Re-create every record before switching provider
  • Test site, email and platforms after the switch

Do not

  • Change nameservers to fix a single record
  • Leave them pointing at a former developer's account
  • Edit records at a provider that is not authoritative

Questions people ask about this

Should my DNS be managed at my registrar or at my host?

Either works. Keeping it at the registrar means your records survive a change of host, which suits businesses that switch hosting occasionally. Keeping it at the host is simpler when one provider handles everything. What matters far more than the choice is that it is documented, that the account is in your name, and that it has two-factor authentication.

How do I find out which nameservers my domain is using?

Look the domain up with any public WHOIS or DNS lookup tool, or run a nameserver query from a command line. The answer tells you which provider is authoritative right now, which is not always the company you think manages it. Do this before making any DNS edit, so you know you are editing in the place that counts.

Will changing nameservers take my website offline?

It should not, if the new provider is already serving a complete copy of the zone before you switch. Visitors move across gradually as cached answers expire, so both providers need to give the same answers during that window. Problems come from switching first and building the records afterwards, which leaves a gap where nothing resolves.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.