SecDNS

NS record (Nameserver record)

NS records list the authoritative nameservers for a DNS zone and are the delegation mechanism by which a parent zone hands control of a child zone to another operator.

NS record (Nameserver record)

An NS (Nameserver) record specifies an authoritative DNS server for a zone, and a set of NS records is how a parent zone delegates a subdomain to another nameserver operator.

In plain English

When example.com is registered at a registrar, the registrar publishes NS records in the .com zone pointing to whichever nameservers run example.com. Your recursive resolver follows those NS records to reach the authoritative servers and find the actual A, AAAA, MX, and other data.

How it works

NS records are defined in RFC 1035 §3.3.11. Each NS record names a server that is authoritative for the zone; the set of NS records at the zone apex defines the zone's nameserver pool. When a resolver queries the parent zone for example.com, the parent answers with a referral — the NS records (in the authority section) and any glue records (in the additional section) needed to reach them. The child zone also publishes its own NS RRset at the apex, which should match the parent's set; mismatches cause "lame delegation" warnings. NS records may be signed with DNSSEC at both parent and child, with the DS record at the parent linking the trust chain. Best practice is to spread NS records across at least two providers, at least two geographic regions, and ideally two top-level domains for diversity.

  • DNS — base protocol
  • Authoritative DNS — what NS points to
  • SOA — the other apex record
  • Glue record — needed when NS is in-zone
  • TLD — where the parent NS records live
  • DNSSEC — secures delegation via DS
  • Anycast — typical deployment under each NS

SecDNS perspective

SecDNS provides a set of anycast NS hostnames you publish at your registrar — your domain is then served from every SecDNS PoP without you doing anything else.

Frequently asked questions

Where do I set NS records?

In two places. The child zone's NS at the apex (informational), and the parent zone's delegation NS records (the ones recursive resolvers actually follow). The parent's copy is authoritative for delegation.

How many NS records should I publish?

At least two, on different networks. Best practice is 3-4 spread across providers and continents to survive any single outage.