DNS tools
Nameserver Lookup
Find the NS records that identify a domain’s authoritative nameservers.
What is nameserver lookup?
Nameservers publish the DNS records for a domain. An NS lookup asks the server resolver which nameservers are associated with the name.
How to use this tool
- Enter the domain you want to check and review any options.
- Select Look up to submit your request.
- Read the result, inspect its source and copy or download the response if needed.
Understanding the results
- Nameservers
- The servers that hold the authoritative DNS records for the domain. Using several, on separate networks, keeps the domain online if one fails.
- Provider
- The hostnames usually reveal the DNS provider, which may differ from the web host or the registrar.
- Old values after a change
- Resolvers can keep old NS records until they expire. The .com and .net zones publish NS records with a two-day TTL, so a delegation change can take up to 48 hours to reach every resolver.
Supported features and common uses
Nameserver records can be cached. After changing delegation at a registrar, compare recursive resolver answers with the DNS propagation tool.
Troubleshooting
Check the input format if validation fails. Public data may be missing or redacted, and upstream services can time out or rate limit requests. A failed lookup is not proof that a domain or website is unavailable.
What nameservers do
A domain’s nameservers hold its DNS zone, which is the full set of records for the domain. Every other answer, including the address of the website and the location of the mail servers, comes from them. If the nameservers stop responding, nothing under the domain can be found, even though the web and mail servers are still running.
The NS records returned by this lookup name those servers. They are set at the registrar, which passes them to the registry for the top-level domain. That step is called delegation.
The two places NS records live
NS records for a domain exist in two zones. The parent zone, such as .com, holds the set your registrar submitted. The domain’s own zone holds a second set, published by the DNS provider. Resolvers follow the parent’s set to find the domain, so that copy decides where queries go.
The two sets should match. When the parent lists a server that does not hold the zone, the result is called a lame delegation. Some queries reach the broken server and fail or time out, so the domain appears slow or unreliable without being fully down.
Reading the hostnames
The names often tell you who hosts the DNS:
- Two names ending in ns.cloudflare.com: Cloudflare.
- Names such as ns-123.awsdns-45.com, spread across .com, .net, .org and .co.uk: Amazon Route 53.
- Names ending in domaincontrol.com: GoDaddy.
- Names ending in registrar-servers.com: Namecheap.
- Names such as ns-cloud-a1.googledomains.com: Google Cloud DNS.
Names inside the domain itself, such as ns1.example.com, usually mean the owner runs the nameservers or the provider offers branded names.
How many nameservers a domain needs
The DNS standards ask for at least two, and most registries enforce that. Two servers in the same building do little good, so providers place them on separate networks and in separate locations. Large DNS providers go further and announce each nameserver address from many sites at once, so a single name can be answered by dozens of machines.
Glue records
A nameserver named inside the domain it serves creates a loop. To find ns1.example.com you need to ask the nameservers for example.com, and one of those is ns1.example.com. The parent zone breaks the loop by publishing the nameserver’s IP address alongside the NS record. That extra address is called glue.
Registrars call this registering a host or creating a child nameserver. If you change the IP address of such a server, update the glue at the registrar as well, or resolvers keep following the old address.
Changing nameservers without downtime
- Copy every record to the new DNS provider first, including mail and verification records.
- If the domain uses DNSSEC, remove the DS record at the registrar and wait for it to expire from caches before you switch.
- Change the nameservers at the registrar.
- Leave the old zone in place for at least 48 hours, because resolvers that cached the old delegation keep asking the old servers.
- Run this lookup and the DNS propagation checker to confirm the new names are being returned.
A worked example
Look up a domain that uses Cloudflare and you will see two names ending in ns.cloudflare.com. Every Cloudflare customer gets a pair, and those two names are answered from many locations. A domain on Amazon Route 53 returns four names, one each under .com, .net, .org and .co.uk, so that a problem with one top-level domain cannot take all four away.
A domain with self-hosted DNS might return ns1 and ns2 under its own name. In that case the registry also holds glue records with their addresses.
What to check after a change
- The lookup returns the new names and none of the old ones.
- The website and email still work, which shows the records were copied to the new provider.
- The DNS propagation checker shows the same NS answer from all three resolvers.
- If the domain uses DNSSEC, the DNSSEC checker reports that validation succeeds.
Run through this list again a day or two later, once caches that held the old delegation have expired.
Terms used on this page
- Authoritative nameserver: a server that holds the actual records for a domain.
- Recursive resolver: a server that looks answers up on behalf of users and caches them.
- Delegation: the NS records in the parent zone that point to a domain’s nameservers.
- Zone: the full set of records for a domain.
- Glue: an address published in the parent zone for a nameserver inside the domain it serves.
- Registrar: the company where the domain is registered and where nameservers are changed.
Free and paid DNS hosting
Registrars include basic DNS hosting with a domain, and it is enough for most small sites. Dedicated DNS providers add faster global networks, protection against traffic floods, an API and features such as traffic steering. Changing between them is the nameserver change described above, and the domain stays at the same registrar.
Learn more: How DNS propagation works and how long it takes.
Frequently asked questions
Good questions. Clear answers.Are nameservers the same as web hosting?
No. DNS hosting and website hosting can be supplied by different organizations.
Why is my change not visible yet?
Recursive resolvers may still hold cached answers until their TTL expires.
Where do I change my nameservers?
At the registrar where the domain is registered. The DNS provider tells you which names to enter, but the change itself is made in the registrar’s control panel.
What happens to my DNS records when I change nameservers?
Nothing moves automatically. The new provider answers with whatever records it holds, so recreate them there before you switch or the website and email stop working.
Can I use nameservers from two different providers?
Yes, as long as both serve identical records. You have to keep the two zones in sync yourself, which is why most domains use a single provider.
What is a lame delegation?
A nameserver listed for the domain that does not answer for it. It usually happens when a domain moves to a new DNS provider and an old nameserver is left in the list.
Do nameservers affect email?
Yes. MX, SPF and DMARC records are all served by the nameservers. If a move to new nameservers leaves those records out, mail stops arriving or starts failing authentication.
Is changing nameservers the same as transferring a domain?
No. A transfer moves the registration to a different registrar. Changing nameservers only changes who answers DNS queries, and the domain stays with the same registrar.
How do I find out who hosts a domain’s DNS?
Run this lookup and read the hostnames. The provider’s name usually appears in them, and you can run a domain lookup on the nameserver’s own domain when it does not.
How often can I change nameservers?
As often as you like. Each change takes up to 48 hours to reach every resolver, so frequent changes leave the domain in a mixed state for longer.
Why does the lookup show different nameservers from my registrar account?
A recent change may still be spreading, or the resolver has an older answer cached. Check again after the TTL has passed.
Can nameservers be IP addresses?
No. NS records hold hostnames. The addresses come from the A and AAAA records of those hostnames.