What are nameservers, and how do NS records work?
Nameservers are the servers that hold a domain's DNS records and answer questions about them. The zone above yours, such as the .com registry for example.com, points to them with NS records, and you choose them at your registrar. A subdomain such as www usually has none of its own, and changes can take hours to show because resolvers keep old answers, including "doesn't exist".
Last reviewed: 5 December 2026.
What a nameserver is and where NS records live
A nameserver answers from the zone it holds, and the NS records that name it sit in two places: in the parent zone, which hands out the pointer, and at the top of the domain's own zone.
Read moreShow less: What a nameserver is and where NS records live
RFC 1034 describes the DNS name space being divided by cuts between names; each connected piece is a zone, and the servers that answer from their own copy of it are its authoritative nameservers. The top of every zone carries NS records, one per nameserver, and one SOA (start of authority) record with the zone's settings.
A zone gets its own servers through delegation: the parent zone, such as com for example.com, publishes NS records for the child's name. A resolver asks the com servers, gets a referral listing example.com's nameservers, then asks one of those. So the list exists twice:
- The parent side. The registry's copy, published in the zone above yours. It is a pointer, not the parent's own data, and a parent server doesn't mark it as authoritative.
- The child side. The NS records at the top of your own zone, served by your nameservers with the authoritative flag set.
RFC 1034 says the two lists should be exactly the same. When a nameserver's name sits inside the domain it serves, such as ns1.example.com for example.com, the parent also stores its address, called glue, so resolvers aren't left needing the address they are trying to find.
For email, a sending server looks up your MX records before delivering (RFC 5321, section 5.1), and a record counts only on the servers the delegation points to.
How to find a domain's nameservers and change them
Our NS lookup shows the list public DNS returns, the WHOIS lookup shows the list on the registration, and you change them at the registrar after copying every record to the new DNS host.
Read moreShow less: How to find a domain's nameservers and change them
The NS lookup asks public DNS for a domain's NS records and each nameserver's addresses. The WHOIS lookup reads the domain's registration record over RDAP, which includes the nameserver list held at registration level. Right after a change they can differ because DNS answers are cached.
Nameservers are changed at the registrar, the company you pay for the domain, not in your DNS host's record editor. Cloudflare's guide to moving a domain's DNS to it gives these steps:
- Add the domain at the new DNS host and check every record; Cloudflare says its scan may miss some.
- Log in to your registrar. If you don't know which it is, Cloudflare points to ICANN Lookup.
- If DNSSEC is on, turn it off at the registrar first. Cloudflare warns that changing nameservers while it is active can make the domain unreachable.
- Remove the old nameservers and add the new ones, copied exactly.
- Allow up to 24 hours for the registrar to update them, Cloudflare says.
Gandi, a registrar, has you open the domain's Nameservers tab, choose Change, then External, and save the new names, after copying important records across, or website and email may stop working. It says to wait 12 to 24 hours before testing.
For email, that means at least MX, SPF, DKIM and DMARC; check them after the switch with the MX lookup and SPF checker. A record left at the old host stops existing for everyone else, which can show up as SPF fail results, mail going to spam, or bounces.
Why a subdomain usually has no nameservers of its own
Names such as www.example.com or mail.example.com normally live inside their parent's zone, so they have no NS records, and our NS lookup reports the parent that covers them as information, not a fault.
Read moreShow less: Why a subdomain usually has no nameservers of its own
RFC 1034 says NS records are found only at the top of a zone. A subdomain gets nameservers of its own only if it is delegated, with NS records for it in the parent zone, and usually they aren't: www, mail, _dmarc and _domainkey are ordinary names in your own zone.
When DNS says a name exists but has no NS records, our NS lookup drops the leftmost label and asks again: www.shop.example.com, then shop.example.com, then example.com. It takes at most four steps and never asks about a single label such as com. At the first name with NS records it reports "{name} has no nameservers of its own. It is covered by {parent}." and lists that parent's nameservers. That is information, not a fault; warnings about the parent's servers still appear.
It never takes the parent from the SOA in the answer: for an alias, that SOA belongs to the alias's target, and the answer for www.bbc.co.uk carried the SOA of fastly.net, where its alias chain ends.
"No nameservers." If none of the parents asked has NS records either, the result stays a Fail titled "No nameservers", which can happen with a name so deep that four steps don't reach its zone. The same Fail appears, without any parent being asked, when both public resolvers report a server failure for the name, which RFC 2308 describes as what a resolver gets when the servers it needs don't reply or can't supply the zone.
What "Domain does not exist" means
DNS answered NXDOMAIN, response code 3, which says the name and everything under it don't exist, often because of a typo, a domain that isn't registered or isn't active, or a subdomain nobody created.
Read moreShow less: What "Domain does not exist" means
RFC 1035 defines response code 3 as "Name Error": the name asked about does not exist. RFC 2308 calls it NXDOMAIN, and RFC 8020 says it covers every name below too. Our NS lookup shows it as a Fail, "Domain does not exist". The usual causes:
- A typo, such as a doubled letter or .co for .com.
- Not registered, so the zone above has no delegation for it.
- Registered but not in DNS. ICANN's status code list says "inactive" means no nameservers are associated with the domain, and "clientHold" tells the registry not to put it in DNS, usually during legal disputes, for non-payment, or before deletion; "serverHold" is the registry's own version. The WHOIS lookup shows these statuses in the form RDAP uses, such as "client hold" and "server hold".
- A subdomain nobody created, like our made-up name under wikipedia.org below.
One exception: a zone can publish a wildcard, a record named *.example.com, that makes up records for any name under it (RFC 1034, section 4.3.3). A made-up name then exists, and asking it for a type the wildcard lacks gives "no error, but no data" (RFC 4592), so our lookup says "covered by" instead. That shows DNS treats the name as existing, not that anyone created it.
For mail, NXDOMAIN is final: RFC 5321 says the sender must report an error, so mail to a misspelled or lapsed domain bounces back instead of waiting in a queue.
How long a nameserver change takes to show
The registry has to publish the new list, and then every resolver that cached the old one may keep it until its time to live runs out, which can be an hour or several days depending on the TTLs on both sides of the cut.
Read moreShow less: How long a nameserver change takes to show
First the registry publishes the new NS records in the parent zone. Then resolvers that cached the old list can keep using it until its TTL, the time to live in seconds, runs out. RFC 2181 says a TTL is a maximum, not a required time, and a resolver may cap it.
The two copies can carry different TTLs. On 5 December 2026 a .org registry server gave wikipedia.org's NS records 3600 seconds (one hour), while Wikipedia's own nameserver gave 172800 (two days). A .com registry server gave google.com's 172800, and Google's own server gave 345600 (four days). RFC 2181 ranks a zone's own authoritative answer above the parent's referral, so a resolver that has asked your servers can keep your zone's longer TTL. On the same day our DNS-over-HTTPS queries, run once each, showed 169156 seconds left on wikipedia.org's NS records at Cloudflare's resolver and 21600 at Google's.
When you move DNS hosts, keep the old zone running, unchanged, until the longer of the two has passed.
Why a missing record can stay missing after you add it
Resolvers also cache "doesn't exist" and "no such record" answers, and those that follow the standard keep them no longer than the last number in the zone's SOA record, which is why our result pages use that number for the longest wait.
Read moreShow less: Why a missing record can stay missing after you add it
RFC 2308 calls this negative caching, and it covers NXDOMAIN and NODATA, where the name exists but has no record of the type asked for. The zone's servers must include its SOA record in the Authority section of either answer, with a TTL equal to the smaller of the SOA's own TTL and its last field, called MINIMUM. That is how long a resolver may keep the negative answer, so the last field is the upper limit. RFC 2308 also suggests resolvers cap negative answers, calling one to three hours a sensible default.
The SOA for com ended in 900 on the day, so a made-up .com name can be remembered as missing for up to 15 minutes.
On a Fail or Warning from a DNS check, our result pages put a line under the re-check button: "This result will not change until the record changes." When every problem is a missing record and the answer for each carried an SOA, a second sentence follows: "After you change it, allow up to {N} for it to show." N is the largest SOA last field among the missing records, shown in minutes, hours or days. We never take N from a TTL. On 5 December 2026 we asked both resolvers, once each and in the same second, about the same made-up name under wikipedia.org: Cloudflare's reported a TTL of 3600 and Google's reported 1800. The SOA's last field read 3600 in both. RFC 2308 lets a resolver keep a negative answer for less time than that field, and a reported TTL counts down while an answer sits in a cache.
N is an upper bound for caches that follow RFC 2308. It doesn't include a registry's delay in publishing a new delegation, and can't speak for resolvers we can't see, such as a receiving mail server's.
"Only one nameserver"
The DNS standard requires every zone to be served by at least two nameservers, so a single NS record gets a Warning, and the fix is to add the second name your DNS host gives you.
Read moreShow less: "Only one nameserver"
RFC 1034, section 4.1: "we require every zone to be available on at least two servers". RFC 2182, the best-practice document on secondary servers, recommends three for most organisations' zones, with at least one well away from the others.
With one server, an outage leaves resolvers unable to fetch any record once their caches run out, MX included. A sender can treat that as a temporary failure, which RFC 5321 says means queuing and retrying, so the first sign can be delayed mail.
Fix it at the registrar by adding the second or third nameserver your DNS host lists. Our lookup counts names, not networks, so two names on the same machine would still pass.
When a nameserver's name has no IP address
A listed nameserver whose own name returns no A or AAAA record can be impossible for resolvers to reach, so our lookup warns about it, and the cause is often a typo or a server name that has since been retired.
Read moreShow less: When a nameserver's name has no IP address
RFC 2181, section 10.3, says the name in an NS record must have one or more address records and must not be an alias. Our lookup asks for each nameserver's A and AAAA records; when both are empty it warns "{host} has no IP address" and suggests removing or correcting it at the registrar. One address of either kind is enough to pass.
Possible causes include a typo at the registrar (ns1.exmaple.com), an old provider's name left after a move, or your own nameservers inside the domain without glue at the registry and address records in your zone.
What our NS lookup checks, and what it leaves out
We read NS records and the nameservers' addresses through public DNS-over-HTTPS resolvers, and we never contact the nameservers themselves, so a server that is listed but doesn't answer, or answers differently, isn't caught.
Read moreShow less: What our NS lookup checks, and what it leaves out
Every question our NS lookup asks goes to a public DNS-over-HTTPS resolver: Cloudflare's first, then Google's if Cloudflare times out, returns an HTTP error or reports a server failure. It reads the NS records, each nameserver's A and AAAA records, and the SOA when the name is a zone of its own. It doesn't test:
- That each nameserver answers, or answers with the authoritative flag. RFC 9499 lists a server that doesn't answer, an unreachable address and a reply without the authoritative bit among the faults the older term "lame delegation" now covers.
- That the nameservers agree, with the same serial number and records.
- That the parent's list matches the zone's own. The resolver returns one copy, and we don't fetch the other.
To see each server's own answer, query it directly without recursion, as in the examples below.
Worked examples, checked 5 December 2026
wikipedia.org and bbc.co.uk passed with three and eight nameservers, www.wikipedia.org, www.bbc.co.uk and mail.google.com were each covered by their parent, a made-up .com name didn't exist, and TTLs could differ by resolver while each SOA's last field stayed the same.
Read moreShow less: Worked examples, checked 5 December 2026
wikipedia.org passed with "3 nameservers": ns0, ns1 and ns2.wikimedia.org, each with an IPv4 and an IPv6 address, SOA serial 2026112518. www.wikipedia.org was information: "www.wikipedia.org has no nameservers of its own. It is covered by wikipedia.org." Its raw NS answer was an alias to dyna.wikimedia.org with wikimedia.org's SOA.
bbc.co.uk passed with "8 nameservers", four under bbc.co.uk and four under bbc.com, all with IPv4 and IPv6. www.bbc.co.uk was covered by bbc.co.uk. mail.google.com was covered by google.com, with "4 nameservers (Google Cloud DNS)".
dnsmc-nonexistent-7q3x.com, a name we made up, failed with "Domain does not exist"; both resolvers returned status 3 and the com SOA. That SOA's last field, 900, made the line under the re-check button end "allow up to 15 minutes for it to show."
Negative answers, 5 December 2026 SOA last field TTL reported
dnsmc-nonexistent-7q3x.com A Cloudflare 900 900
dnsmc-nonexistent-7q3x.com A Google 900 900
nosuchname-7q3x.wikipedia.org A Cloudflare 3600 3600
nosuchname-7q3x.wikipedia.org A Google 3600 1800
bbc.co.uk TLSA Cloudflare 900 900 (name exists, no such record)
NS records, asked of each side of the cut TTL
wikipedia.org from the .org registry (v0n0.pir-ns.org) 3600 referral
wikipedia.org from ns0.wikimedia.org 172800 authoritative
google.com from the .com registry (a.gtld-servers.net) 172800 referral
google.com from ns1.google.com 345600 authoritative
wikipedia.org via Cloudflare's resolver 169156
wikipedia.org via Google's resolver 21600
In these runs, the SOA's last field matched across resolvers every time; the reported TTL didn't always.
Nameserver and zone questions
Short answers on moving email without moving DNS, a new subdomain that won't resolve, the SOA's last number and mismatched lists.
Do I have to change nameservers to move my email to a new provider?
No. MX, SPF, DKIM and DMARC are ordinary records in your zone, so you edit them wherever your DNS is hosted now. Changing nameservers moves the whole zone.
I just added a subdomain. Why does it still say it doesn't exist?
A resolver may have cached an NXDOMAIN from a query made before the name existed, and it can keep that for up to the last number in your zone's SOA record, in seconds.
What is the last number in an SOA record?
The field called MINIMUM. RFC 1035 first used it as a lower limit on record TTLs; RFC 2308 redefined it as the limit for caching negative answers. 3600 there means "doesn't exist" can be remembered for up to an hour.
Why does my registrar show different nameservers from the NS lookup?
Just after a change, resolvers can still hold the old list until its TTL runs out. If the difference outlasts those TTLs, the registry's list and your zone's NS records have drifted apart; make them match.
Related guides, tools and problems
These pages cover the lookups used above and the mail problems that a broken or half-finished DNS move tends to cause.