The NS record (Name Server record) specifies which DNS servers are authoritative for a domain. NS records are fundamental to how DNS works — they delegate control of a domain (or subdomain) to specific nameservers that hold the actual DNS records.
Check NS records for any domain using our free DNS lookup tool.
Look Up NS Records →An NS record tells the DNS system which servers to query for information about a domain. When you register a domain and set nameservers, you're essentially creating NS records that say "for questions about example.com, ask these servers."
Every domain must have at least two NS records pointing to different nameservers for redundancy. If one nameserver is unavailable, the others can still respond to queries.
An NS record consists of these components:
| Component | Description | Example |
|---|---|---|
| Name | The domain being delegated | example.com |
| Type | Record type identifier | NS |
| TTL | Time to live (cache duration in seconds) | 86400 |
| Value | Nameserver hostname | ns1.example.com |
example.com. 86400 IN NS ns1.example.com.
example.com. 86400 IN NS ns2.example.com.
These records delegate DNS authority for example.com to two nameservers.
When a DNS resolver needs to find information about a domain, it follows the NS record chain:
This hierarchical delegation is what makes DNS scalable — no single server needs to know everything.
These records are stored at your domain registrar and point to your DNS provider:
example.com. 86400 IN NS ns1.cloudflare.com.
example.com. 86400 IN NS ns2.cloudflare.com.
These records exist within your DNS zone and should match the registrar NS records:
@ 86400 IN NS ns1.cloudflare.com.
@ 86400 IN NS ns2.cloudflare.com.
NS records can delegate a subdomain to different nameservers:
sub.example.com. 86400 IN NS ns1.subdomainhost.com.
sub.example.com. 86400 IN NS ns2.subdomainhost.com.
Popular DNS providers and their typical nameserver patterns:
| Provider | Nameserver Pattern |
|---|---|
| Cloudflare | *.ns.cloudflare.com |
| AWS Route 53 | ns-*.awsdns-*.com/net/org/co.uk |
| Google Cloud DNS | ns-cloud-*.googledomains.com |
| GoDaddy | ns*.domaincontrol.com |
| Namecheap | dns*.registrar-servers.com |
When your nameservers are within your own domain, you need "glue records" — A records stored at the parent zone to avoid a chicken-and-egg problem:
; NS records at .com TLD
example.com. 86400 IN NS ns1.example.com.
example.com. 86400 IN NS ns2.example.com.
; Glue records (A records stored at .com)
ns1.example.com. 86400 IN A 192.0.2.1
ns2.example.com. 86400 IN A 192.0.2.2
Without glue records, resolvers couldn't find the IP of ns1.example.com because they'd need to ask ns1.example.com first — a circular dependency.
Glue records are only needed when nameservers are subdomains of the domain they serve. If your nameservers are on a different domain (like ns1.cloudflare.com), no glue records are needed.
When migrating to a new DNS provider:
| Aspect | NS Record | SOA Record |
|---|---|---|
| Purpose | Lists authoritative nameservers | Zone metadata and primary server |
| Multiple records | Yes (2+ required) | No (exactly one per zone) |
| Contains | Nameserver hostname | Primary NS, admin email, serial, timers |
| Used for | Delegation | Zone synchronization |
Common issues and solutions:
DNS Explorer — Track NS records and nameserver health across your domain portfolio. Get alerts when delegation changes or nameservers become unreachable.
Start free DNS Explorer trial14-day full-feature trial
Use our DNS Record Finder to look up NS records for any domain.
Look Up NS Records →