What is a nameserver?

Nameservers hold your domain’s DNS records. Changing them moves control of every record to a new provider at once.

1–2 minutes
Coiled green network cable on a white background

A nameserver is a server that stores a domain’s DNS records and answers questions about them. When anyone looks up example.com, the final answer comes from that domain’s authoritative nameservers.

Where nameservers are set

At your registrar. The registrar passes the list to the registry for your domain ending (such as .com), which tells the whole internet “for example.com, ask these servers”. You will usually see two to four names, such as ns1.provider.net and ns2.provider.net.

Changing nameservers versus changing records

You changeWhat movesTypical wait
A recordWhere the website pointsMinutes to hours (the TTL)
NameserversWho controls every recordUp to 48 hours

Changing nameservers hands the whole zone to a new provider. Any record not recreated there disappears, including email (MX) and verification (TXT) records. Before switching:

  1. List every record at the current provider. Many panels have an export option.
  2. Recreate them all at the new provider.
  3. Only then change the nameservers at the registrar.

Check which nameservers a domain uses

dig NS example.com +short
whois example.com

dig asks DNS; whois shows what the registry has on file. During a change they can briefly disagree.

Running your own

Your host or DNS provider normally runs the nameservers for you. Running your own is possible but rarely worth it: nameservers need to be reliable, spread across networks and protected from attacks, because if they fail, the whole domain stops resolving.

Something out of date? Software changes. If a step no longer works, tell us and we will check it and update the page.