NS Lookup
With Zoho Toolkit’s NS lookup tool, you can instantly retrieve the authoritative name servers for any domain and verify your DNS configuration without any technical setup required.
What is NS lookup?
NS lookup queries the DNS system to return the name server (NS) records for a domain. NS records indicate which DNS servers hold authoritative data for that domain and handle queries directed at it.
Entering a domain into a browser sends a request to a DNS resolver, which forwards it to the authoritative name servers to retrieve the correct IP address. Querying an NS lookup domain returns those name server hostnames directly. Within NS lookup DNS diagnostics, this is among the first checks used to confirm DNS configuration or trace the source of resolution failures.
How NS lookup works?
An NS lookup is initiated when a DNS resolver requests the NS record associated with a domain. The query progresses from the root name servers to the appropriate top-level domain servers, and then to the authoritative name servers assigned to that domain.
The result returns name server hostnames such as ns1.example.com and ns2.example.com. These servers maintain the domain’s zone file and handle all DNS queries. The process can be carried out using an NS lookup command or an NS lookup tool, including an NS lookup online tool or by running an NS lookup from specific DNS server settings. Typical queries include NS lookup domain, NS lookup DNS, NS lookup IP, and NS lookup IP address. An NS record checker provides the same set of name server details.
A reverse NS lookup follows the same resolution path in the opposite direction. It maps an IP address to a hostname by querying PTR records in the in-addr.arpa zone.
Components of an NS lookup
A standard NS lookup response contains several fields:
Name: The domain being queried.
Type: The record type returned, in this case NS.
Value: The hostname of each authoritative name server assigned to the domain.
TTL (Time to Live): The duration, in seconds, that the result can be cached by a resolver before it must query DNS again. A TTL of 86400 means the record is cached for 24 hours.
Serial number: Present in the domain’s SOA record, this indicates the version of the DNS zone file. It increments each time the zone is updated.
Most domains have at least two name servers listed for redundancy. If one name server is unreachable, DNS queries route to the next available one.
What records do NS lookups hold?
An NS lookup retrieves only NS records, which name the authoritative name servers for a domain. Those name servers hold all other record types within the domain’s DNS zone:
- A records resolve domain names to IPv4 addresses.
- AAAA records resolve domain names to IPv6 addresses.
- MX records designate the mail servers responsible for the domain’s email.
- TXT records contain verification strings, SPF configurations, and domain policy data.
- CNAME records alias one domain name to another.
- SOA records specify the primary name server and zone administrative metadata.
An NS lookup identifies where this data is held. Querying any specific record type requires a separate DNS lookup targeted at that record.
Why should you perform an NS lookup?
NS lookups have practical applications across administrative tasks and diagnostic work.
Moving a domain to a new registrar or hosting provider requires verifying that the name server change has propagated to the relevant resolvers. DNS updates can take up to 48 hours to reflect globally, and checking specific servers during that window gives a reliable view of propagation progress.
When a site goes down or an email stops delivering, the authoritative name servers are usually the first things that are checked. Incorrect or absent NS records prevent all DNS queries for the domain from resolving, regardless of the state of the A or MX records.
NS lookups also support routine audits. Verifying that a domain delegates to the correct name servers helps identify unauthorized changes or configuration errors before they affect live traffic.
Why should you choose Zoho’s NS lookup tool?
Zoho’s NS record checker queries authoritative DNS directly, so results reflect the current published state of the domain rather than cached data held by intermediate resolvers. This distinction matters when confirming recent DNS changes, where cached results from other tools may still show outdated records.
The tool supports NS lookup from a specific DNS server, allowing resolution to be tested from different points on the network. No account is needed, and results are returned within seconds. Within Zoho Toolkit, the NS lookup tool is available alongside MX record lookups, SPF checkers, DKIM validators, WHOIS queries, and other DNS diagnostics, keeping related checks within a single platform.
How to use our NS lookup tool?
Retrieving your domain’s NS records is quick and straightforward. You can fetch this data through our online interface or by using standard command-line tools:
- Run the online query: Enter your domain name into the input field (omitting the protocol prefix) and click the blue Lookup button to retrieve the associated NS records instantly.
- Check via Windows CLI: To run the equivalent query from your command prompt, execute NS Lookup -type=ns yourdomain.com.
- Check via Linux/macOS: For macOS or Linux terminals, use the command dig ns yourdomain.com +short.
- Query a specific DNS server: To test propagation on a particular public resolver (such as Google’s 8.8.8.8) after recent name server changes, run dig @8.8.8.8 ns yourdomain.com +short.
What information appears in NS lookup results?
The NS lookup returns the hostnames of all authoritative name servers registered for the domain. Each entry includes the name server hostname and, where available, the associated TTL value.
If the domain has no NS records, this typically indicates a delegation problem at the registrar level, meaning the domain has not been correctly pointed to any name server. A misconfigured or missing NS record will prevent all DNS resolution for the domain.
Results also reflect the TTL, which indicates how long resolvers will cache the response before querying DNS again. After making name server changes, the previous TTL determines how long old records remain visible to cached resolvers before the update is reflected globally.
Practical applications of NS lookup
- Domain migration: After updating name servers at the registrar, run an NS lookup against multiple resolvers, including specific DNS servers such as Google (8.8.8.8) or Cloud flare (1.1.1.1), to confirm propagation status across different networks.
- Troubleshooting delegation errors: If a subdomain is hosted on a different provider, a targeted NS lookup verifies that the delegation is correctly pointing to the right authoritative servers.
- Security audits: Reviewing NS records periodically helps detect unauthorized name server changes, which can be an indicator of DNS hijacking.
- Load balancing verification: Some configurations distribute DNS queries across multiple name servers for load management. An NS lookup confirms that all designated servers are listed and responding.
- Reverse lookup diagnostics: A reverse NS Lookup resolves an IP address back to a hostname. This is used to verify PTR records, which some mail servers check during email authentication.
Frequently Asked Questions
What is an NS record?
NS stands for name server. An NS record is a DNS entry that identifies which servers are authoritative for a domain, meaning those servers hold the official DNS data and respond to all queries about that domain. Every domain that has an active DNS must have at least one NS record pointing to its authoritative name server.What is a name server, and how is it different from a DNS record?
A name server is a server that hosts and manages DNS records for a domain. A DNS record is an individual entry stored within that name server, such as an A record that maps a domain to an IP address, or an MX record that routes email. The name server is the system; DNS records are the data it holds.What is the difference between a DNS lookup and an NS lookup?
A DNS lookup retrieves a specific record type from DNS, such as an A record for an IP address or a TXT record for SPF configuration. An NS lookup retrieves the name server records for a domain specifically, identifying which servers are authoritative for it. All NS lookups are DNS lookups, but not all DNS lookups are NS lookups.What is the difference between primary and secondary name servers?
The primary name server holds the original, editable zone file for a domain. Secondary name servers hold read-only copies of that zone file, synchronized from the primary through a process called zone transfer. Both types respond to DNS queries with equal authority. The distinction is administrative: changes are made at the primary and replicated to secondary. Most registrars assign both automatically.What is the difference between recursive and authoritative DNS?
An authoritative DNS server holds the actual DNS records for a domain and gives definitive answers for queries about it. A recursive DNS resolver does not hold records directly. Instead, it queries other servers on behalf of the user, starting from the root servers, through TLD servers, and finally to the authoritative name server, before returning the result. Public resolvers like Google (8.8.8.8) and Cloud flare (1.1.1.1) are recursive resolvers.Can an NS lookup be used to find the IP address of a website directly?
No. NS records return name server hostnames, not the IP addresses of websites. To find the IP address a domain resolves to, you need to query the A record (for IPv4) or AAAA record (for IPv6). The NS lookup tells you which servers hold that data. To retrieve the IP, run dig a yourdomain.com or query the authoritative server directly using dig @ns1.yourdomain.com a yourdomain.com.How many name servers should a domain have?
At minimum, two. Redundancy is the primary reason. If one name server is unreachable due to a network issue or server failure, DNS queries continue resolving through the remaining servers. A domain with only one name server has a single point of failure. Most DNS providers assign two to four name servers by default, and some enterprise configurations distribute more across geographic regionsHow do I perform an NS lookup from the command line on Windows, macOS, and Linux?
- On Windows, use: NS Lookup -type=ns yourdomain.com
- On macOS and Linux, use: dig ns yourdomain.com +short
- To query from a specific DNS server, such as Google’s public resolver at 8.8.8.8: dig @8.8.8.8 ns yourdomain.com +short
This is useful for checking whether a name server update has propagated to a particular resolver. A blank result means the queried server has not yet received the updated NS record.
How long does it take for name server changes to propagate?
Propagation typically completes within 24 to 48 hours, though many resolvers reflect the change within a few hours. The TTL of the existing NS record determines how long intermediate resolvers cache the old value before requesting a fresh copy from DNS. Reducing the TTL to a lower value, such as 300 seconds, before making the change shortens the window during which outdated records remain visible across the network.What happens if name servers are wrong?
If name servers are missing or incorrectly configured at the registrar level, DNS resolution for the domain fails entirely. Browsers cannot load the website, email delivery fails, and all other DNS-dependent services stop working. The domain remains registered, but it is effectively unreachable until the correct name servers are set. Fixing the configuration at the registrar is the only resolution. Propagation of the corrected records then follows the standard 24- to 48-hour window.How do I troubleshoot DNS issues using NS Lookup?
Start by checking the NS records: dig ns yourdomain.com
- No NS records? The issue is likely at the registrar level.
- NS records are fine but the site is down? Check the A record: dig a yourdomain.com
To check propagation, compare your local resolver with a public one: dig @8.8.8.8 a yourdomain.com
- Different results = propagation delay
- Same but incorrect results = DNS records need correction at the authoritative name server
For email issues, check MX and SPF records using tools like Zoho Toolkit’s DNS lookup and SPF checker.