The Domain Name System (DNS) relies on different types of records to direct internet traffic efficiently. Among the most foundational of these is the NS (Name Server) record. NS records determine which DNS servers are authoritative for a domain, making them essential for ensuring your domain name resolves correctly across the internet. This article explains what NS records are, their structure, common use cases, best practices, how to troubleshoot them, and answers to frequently asked questions.
An NS (Name Server) record is a type of DNS record that specifies which name servers are authoritative for a particular domain. These servers are responsible for responding to DNS queries about that domain and providing the correct records (A, AAAA, MX, etc.).
For example, if you register example.com, the NS records tell the internet which DNS servers to ask for information
about example.com.
Without properly configured NS records, your domain may become unreachable.
An NS record includes the following components:
example.com)NS| Name | Type | Value | TTL |
|---|---|---|---|
| example.com. | NS | ns1.exampledns.com. | 86400 |
| example.com. | NS | ns2.exampledns.com. | 86400 |
Note: Each domain should have at least two NS records for redundancy.
sub.example.com) to a different DNS
service.8.8.8.8) as NS records.If your domain isn’t resolving properly, consider these troubleshooting steps:
dig NS example.com or nslookup -type=NS example.com
to check what NS records are publicly available.NS records are fundamental to the DNS system, acting as the gatekeepers that direct queries to the correct name servers for a domain. Whether you’re setting up a new website, switching DNS providers, or delegating a subdomain, NS records must be correctly configured to ensure seamless domain resolution. Following best practices and staying vigilant with monitoring will help maintain DNS reliability and uptime.
At a minimum, two NS records are recommended for redundancy. Most providers require two or more.
When you update NS records at your registrar, the domain begins resolving through the new name servers after DNS propagation completes.
No. NS records must point to fully qualified domain names (FQDNs), which in turn should resolve to IP addresses via A or AAAA records.
Depending on the TTL and DNS caching, changes may take anywhere from a few minutes to 48 hours to propagate globally.
Yes. You can create NS records for a subdomain (e.g., dev.example.com) that delegate DNS control to another set of
name servers.