NS record
Learn what a DNS NS record is, how it delegates authority to name servers, why multiple are essential for redundancy, lookup methods, common setups (Cloudflare, Route 53, custom), and troubleshooting.
TL;DR
An NS record (Name Server) specifies the authoritative name servers for a domain.
These servers hold the official DNS records (A, MX, TXT, etc.) and answer queries for that domain.
NS records are set at your domain registrar and define who controls your DNS.
Always use at least two for redundancy.
www.example.com..com TLD servers.example.com.NS records create DNS delegation: handing off responsibility from parent zone to child zone. The target name servers must have their own A/AAAA records (often called glue records if they're in the same zone).
sub.example.com to a different set of NSdig example.com NSnslookup -type=NS example.comNAME TTL CLASS TYPE VALUE
example.com. 3600 IN NS ns1.example.com.Basic custom
example.com. NS ns1.example.com.
example.com. NS ns2.example.com.
ns1.example.com. A 192.0.2.1
ns2.example.com. A 198.51.100.1Cloudflare
example.com. NS lara.ns.cloudflare.com.
example.com. NS pat.ns.cloudflare.com.AWS Route 53
example.com. NS ns-1234.awsdns-12.com.
example.com. NS ns-5678.awsdns-56.net.
example.com. NS ns-9012.awsdns-90.org.
example.com. NS ns-3456.awsdns-34.co.uk.| Feature | NS | A / AAAA | CNAME |
|---|---|---|---|
| Purpose | Defines authoritative servers | IP address mapping | Domain alias |
| Controls DNS zone | Yes | No | No |
| Multiple allowed | Yes (recommended) | Yes | No |
| Points to | Domain name | IP address | Domain name |
| Required at registrar | Yes | No | No |
→ See also: A Record, SOA Record
Related: A Record · SOA Record · DNS Basics