Home
Lookup Tools
Analysis
Bulk & Enterprise
Resources
Close

NS Record Core DNS

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.

Look Up NS Records

Check NS records for any domain using our free DNS lookup tool.

Look Up NS Records →

What Is an NS Record?

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.

NS Record Format

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 NS Records

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.

How NS Records Work

When a DNS resolver needs to find information about a domain, it follows the NS record chain:

  1. Root servers — The resolver asks root servers about .com
  2. TLD servers — Root servers return NS records for .com TLD servers
  3. Domain nameservers — TLD servers return NS records for example.com
  4. Final answer — The domain's nameservers return the requested record

This hierarchical delegation is what makes DNS scalable — no single server needs to know everything.

Types of NS Records

1. Domain NS Records (at TLD)

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.

2. Zone NS Records

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.

3. Subdomain Delegation

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.

Common DNS Providers

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

Glue Records

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.

Important Consideration

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.

NS Record Best Practices

Changing Nameservers

When migrating to a new DNS provider:

  1. Set up all DNS records at the new provider first
  2. Lower TTLs on existing records before migration
  3. Update NS records at your registrar
  4. Wait for propagation (can take 24-48 hours)
  5. Verify new nameservers are responding correctly
  6. Keep old DNS provider active until propagation completes

NS vs SOA Records

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

Troubleshooting NS Records

Common issues and solutions:

Check Your NS Records

Use our DNS Record Finder to look up NS records for any domain.

Look Up NS Records →