Why You Are Here
Nameservers decide which servers hold the authoritative answers for a domain. Everything else in DNS, the website address, the mail routing, the verification records, is only reachable once a resolver knows where to ask.
You have changed nameservers and want to confirm it worked. Moving DNS hosting, switching registrars, or pointing a domain at a new provider all mean updating nameservers, and the change is not instant. This is how you check whether it has taken effect.
A domain is resolving inconsistently. It works for some people and not others, or it works from one network and fails from another. Mismatched or stale nameserver records are among the most common causes.
You are investigating another domain's setup. Confirming which DNS provider a company uses, checking a client's configuration before taking over their DNS, or diagnosing why a partner's domain keeps failing.
What This Tool Does
The NS Lookup tool queries the DNS records for any domain you enter and returns its nameserver configuration.
Enter a domain name and the tool returns the nameservers currently listed as authoritative for it, showing you which servers hold the domain's DNS records and answer queries about it.
How DNS Delegation Works
DNS is a hierarchy, and NS records are what connect each level to the next. Understanding the chain explains what a lookup is actually showing you. When a resolver needs to find www.example.com, it does not know where to ask, so it works down from the top:
- The root servers are asked which servers handle .com
- The .com servers are asked which servers handle example.com, and they answer with its NS records
- Those nameservers are asked for www.example.com and give the authoritative answer
A parent zone points at the child zone's nameservers, and that pattern repeats all the way down. It is what makes DNS a distributed system rather than one central database that everyone must query.
They contain hostnames, exactly like MX records. A resolver that receives ns1.example.com still needs that name's address before it can ask anything, which is where glue records come in.
The Two Sets of NS Records
This is the single most useful thing to understand about nameservers, and it explains a whole category of confusing failures.
| Delegation records | Authoritative records | |
|
Location |
The parent zone, usually the TLD |
Your own zone file |
|
Set at |
Your domain registrar |
Your DNS provider |
|
Who returns them |
The .com servers, or your TLD's |
Your own nameservers |
|
Authoritative? |
No, these are a referral |
Yes |
Resolvers may receive one set or the other depending on what they have cached and which path they took, so the domain works for some people and fails for others. Because it is intermittent rather than total, it is frequently misdiagnosed as a caching problem or a local network issue.
Someone updates the nameservers at the registrar but the old zone file still lists the previous nameservers, or vice versa. Both need changing.
At least two, for basic resilience. Four is a common de facto standard, enough to survive an outage without producing unnecessarily large DNS responses. Publishing one is fragile, and publishing eight or more mainly adds response size.
Glue Records
Glue solves a genuine chicken-and-egg problem, but it only applies in one specific situation, and this is where most explanations become muddled.
The problem it solves
If example.com is served by nameservers called ns1.example.com and ns2.example.com, a resolver hits a loop: to reach ns1.example.com it needs that host's IP address, but to look up that address it needs to ask the nameservers for example.com, which are the very servers it cannot reach yet.
The parent zone publishes the IP addresses alongside the delegation, so the resolver receives both the nameserver names and their addresses in one response and can proceed directly.
When glue is required and when it is not
| Your nameservers | Glue needed? | Why |
|
ns1.example.com for example.com |
YES |
Inside the domain they serve, so the loop exists |
|
ns1.dnsprovider.com for example.com |
NO |
Different domain, resolvable independently |
|
Vanity nameservers on your own domain |
YES |
Same as the first case |
This covers most domains. The parent zone should not publish glue for out-of-domain nameservers, and asking a registrar to add it is unnecessary.
It lives at the parent, which means changing the IP address of a nameserver inside your own domain requires updating the glue record at the registrar as well as your zone file. Updating only the zone file leaves the parent handing out an address that no longer works.
Lame Delegation
A lame delegation is when an NS record points at a server that is not actually authoritative for the zone. The referral exists, but the destination cannot answer.
| Cause |
What happened |
|
Nameserver removed but delegation left in place |
The record still points at a server no longer hosting the zone |
|
Zone never configured on the server |
The delegation was set before the zone was created |
|
Provider account closed or expired |
The server no longer recognises the domain |
|
Typo in the nameserver hostname |
Points at a host that does not serve the zone |
Resolvers try the lame server, wait for a timeout, and only then try another. If some of your nameservers are lame and others work, the domain resolves eventually but slowly and unpredictably.
Nameservers get added at the new provider and the old ones are never removed, leaving delegations pointing at servers that stopped serving the zone months ago.
Reading Your Results
|
What you see |
What it indicates |
|
Nameservers on a provider's domain |
The domain uses that provider's DNS |
|
Nameservers on the domain's own name |
Self-hosted or vanity nameservers, glue required |
|
Only one nameserver |
Fragile, no redundancy |
|
Four or more, consistent naming |
Standard, well-configured delegation |
|
Nameservers from two different providers |
Either a migration in progress or a deliberate multi-provider setup |
|
Old and new providers both listed |
Almost always an incomplete migration |
|
No nameservers returned |
Domain is unregistered, expired, or delegation is missing |
Common Mistakes to Avoid
A nameserver change involves two places: the delegation records at your registrar and the authoritative records in your zone file. Updating only one leaves the two sets disagreeing, which produces intermittent resolution failures that vary by resolver and are frequently misdiagnosed as caching problems. Check both after any migration and confirm they match.
If your nameservers sit inside your own domain, their IP addresses are published as glue at the parent zone, set through your registrar. Changing the address in your zone file alone leaves the parent handing out the old address, and resolvers that rely on glue will keep trying a server that is no longer there. Update the glue at the registrar at the same time.
NS records must reference a hostname that resolves through an A or AAAA record. Pointing one at a CNAME is invalid, and the resulting behaviour varies by resolver, producing failures that appear inconsistent and depend on who is asking. This is the same restriction that applies to MX records, and it catches people for the same reason.
Quick Reference
| Item | Detail |
|
NS record |
Which servers are authoritative |
|
Contents |
A hostname, never an IP |
|
Minimum |
Two nameservers, four is common |
|
Two record sets |
Registrar and zone file |
|
Both sets |
Must match |
|
Mismatch |
Causes intermittent failures |
|
Glue |
Nameserver IPs at the parent zone |
|
Glue needed |
Only for in-domain nameservers |
|
Glue location |
Set at the registrar |
|
Changing a nameserver IP |
Means updating glue too |
|
Lame delegation |
Points at a non-authoritative server |
|
CNAME |
Never point an NS record at one |
