NSID
acronymKept in this browser · My desk
Stands for: Name Server Identifier
NSID, the Name Server Identifier of RFC 5001, is EDNS option 3: a client sends it empty and the name server that answers puts an operator-chosen identifier in the same response, telling which instance of an anycast or load-balanced service replied.
When one address is served by many machines, as with anycast root servers and public resolvers, the address no longer says who answered. NSID puts the answer inside the Domain Name System (DNS) reply itself: an empty option code 3 in the query's OPT record asks, and the server returns opaque bytes its operator chose, which tools must print as hex. Older practice used a second query, a CHAOS-class TXT lookup of hostname.bind or id.server, which may reach a different instance.
What it is. RFC (Request for Comments) 5001, "DNS Name Server Identifier (NSID) Option", by Rob Austein of ISC (Internet Systems Consortium), August 2007, Standards Track, starts from a problem anycast created: "With the increased use of DNS anycast, load balancing, and other mechanisms allowing more than one DNS name server to share a single IP address, it is sometimes difficult to tell which of a pool of name servers has answered a particular query." Its answer is that "the only completely reliable way to obtain the identity of the name server that responded to a particular query is to have that name server include identifying information in the response itself".
Its standing. The RFC Editor's record lists RFC 5001 as a Proposed Standard, never updated or obsoleted, and IANA (the Internet Assigned Numbers Authority) still lists option code 3 as NSID, "Standard", beside later EDNS (Extension Mechanisms for DNS) options such as 8 (edns-client-subnet) and 12 (Padding).
On the wire. NSID is an option of EDNS (the Extension Mechanisms for DNS, RFC 6891), carried in the OPT pseudo-record of the additional section; "The OPTION-CODE for the NSID option is 3", still so in the IANA registry read on 2026-11-23. "A resolver signals its desire for information identifying a name server by sending an empty NSID option", and "MUST NOT include any NSID payload data in the query"; a server that honours it returns the option with its identifier, and "MUST NOT send an NSID option back to a resolver which did not request it". In bytes, the request option is 00 03 00 00; a response carrying the seven ASCII (American Standard Code for Information Interchange) characters node-17 would be 00 03 00 07 6e 6f 64 65 2d 31 37.
The whole OPT record. In a query the NSID request rides in the additional section as an OPT pseudo-record: 00 (the root name), 00 29 (type 41, OPT), 04 d0 (the requestor's UDP payload size, 1232, carried in the class field), 00 00 00 00 (the extended RCODE, or response code, the EDNS version 0 and the flags, carried in the TTL, time to live, field), 00 04 (the data length) and the option itself, 00 03 00 00. The response's OPT carries 00 0b, eleven octets of data, and the option 00 03 00 07 followed by the seven octets of node-17. Nothing else in the message changes, which is why NSID works through any client that can set an EDNS option.
The payload. "The OPTION-DATA for the NSID option is an opaque byte string", and "User interfaces MUST read and write the contents of the NSID option as a sequence of hexadecimal digits, two digits per payload octet": any resemblance to text "is purely a convenience". Operators choose what to reveal; RFC 5001 suggests that those unwilling to disclose a unicast address use "the raw binary representation of a probabilistically unique random number", and notes that operators of anycast servers hardened against attack "are likely to want an identifier other than the "real" name or "real" address".
Hop by hop. "The NSID option is not transitive": sent to a public resolver, it identifies the resolver instance, never the authoritative server the resolver asked. A transitive variant was "left for future work".
The older convention. RFC 4892 (June 2007) records BIND's practice of answering a TXT query in class 3, CHAOS, for HOSTNAME.BIND, and the refinement ID.SERVER, and its drawbacks: it "requires an additional query", which on anycast may land elsewhere, and "reserves an entire class in the DNS (CHAOS) for what amounts to one zone". Operators still document it: ISC for F-root with "dig +norec @f.root-servers.net hostname.bind chaos txt", whose answer contains an airport code, and Quad9 with "dig +short ch txt id.server. @9.9.9.9" and a Windows nslookup equivalent, an answer of the form resXXX.xxx.rrdns.pch.net meaning no transparent redirection.
Seen on 23 November 2026. Queried with dig +nsid from a network in Brazil, a.dns.br, one of the six .br servers, answered "a7.a.dns.br" (61 37 2e 61 2e 64 6e 73 2e 62 72). The root servers and the large public resolvers answer in their own naming schemes, and the answers read that day carried the three-letter airport code of the site that served the query: F-root answers in the form "XXX.cf.f.root-servers.org", where XXX is what ISC's F-root page calls an IATA (International Air Transport Association) three-letter airport code, and K-root, L-root, Cloudflare's 1.1.1.1, Quad9's 9.9.9.9 and Google's 8.8.8.8 each put a site code in the instance name, so the same query from another city names another site. Two follow-up CHAOS queries to the same a.dns.br address, for hostname.bind and id.server, were answered by "a3.a.dns.br" and "a6.a.dns.br": three queries, three machines behind one address, the very problem RFC 4892 noted and RFC 5001 solves by putting the identifier in the answer it labels.
Tools and use. dig and kdig request NSID with +nsid, drill lists +nsid among its EDNS options; PowerShell's Resolve-DnsName, as documented, has no parameter for EDNS options or for the class, so Windows users fall back to nslookup for the CHAOS form. RFC 4786 (BCP 126) calls in-band identification "strongly recommended for services to be distributed using anycast", and monitoring probes that record NSID turn an alert about an address into an alert about a site.
In the servers. Whether a server answers is a configuration choice. BIND says nothing until server-id is set ("The default server-id is none"; hostname uses the machine's name), and the same value answers ID.SERVER in class CHAOS; as a resolver, its request-nsid option (default no) sends an empty NSID to authoritative servers and logs what comes back. NSD and Unbound take an nsid string as hex digits or with an ascii_ prefix, Unbound's disabled by default. Knot DNS answers by default with its FQDN (fully qualified domain name) hostname at start-up, and PowerDNS returns its server-id, by default the hostname. Operators who would rather not publish host names choose an opaque value, as RFC 5001 suggests.
How it differs. NSID names the machine that answered; it says nothing about the data. The CHAOS-class hostname.bind and id.server queries ask a separate question that may reach a different machine; EDNS Client Subnet (option 8) carries information about the client, in the other direction; anycast is the routing that makes one address many machines, and NSID is the label that tells them apart.
Also known as: name server identifier, nsid option, edns option 3, id.server, hostname.bind
Sources
- IETF, RFC 5001, DNS Name Server Identifier (NSID) Option (R. Austein), August 2007 (read 2026-11-23): EDNS option 3, an empty request, an opaque payload shown as hex, hop-by-hop semantics, payload choices
- IETF, RFC 4892, Requirements for a Mechanism Identifying a Name Server Instance (S. Woolf, D. Conrad), June 2007, Informational (read 2026-11-23): HOSTNAME.BIND and ID.SERVER in class CHAOS, their advantages and drawbacks
- IETF, RFC 6891 (STD 75), Extension Mechanisms for DNS (EDNS(0)) (J. Damas, M. Graff, P. Vixie), April 2013 (read 2026-11-23): the OPT record and its option format
- IETF, RFC 4786 (BCP 126), Operation of Anycast Services (J. Abley, K. Lindqvist), December 2006 (read 2026-11-23): DoS sinks and division (6.1), service hijacking (6.3), node identification (4.9), coupling route and health (4.4.1), dampening (4.4.4), local-node scope (4.4.6), pessimistic withdrawal (4.8.2)
- IANA, Domain Name System (DNS) Parameters, last updated 2026-11-18 (read 2026-11-23): opcodes 4 Notify and 5 Update; RR types; EDNS option 3 NSID
- ISC, F-Root (read 2026-11-23): dig +norec @f.root-servers.net hostname.bind chaos txt returns a name with an IATA airport code
- Quad9, FAQs (read 2026-11-23): the id.server CHAOS test with dig and Windows nslookup, the expected resXXX.xxx.rrdns.pch.net answer, ECS on 9.9.9.11
- Microsoft, Resolve-DnsName, PowerShell DnsClient documentation (read 2026-11-23): parameters (no class, no port, no EDNS options), default type A_AAAA
- ISC, BIND 9 manual pages, 9.21.29-dev documentation (read 2026-11-23): dig AXFR and ixfr=N, +nsid, -k and -y; host -l; nslookup ls not implemented; nsupdate prereq and update commands
- CZ.NIC, kdig, Knot DNS 3.6.2 documentation (read 2026-11-23): +quic, +nsid, IXFR=serial
- RFC Editor, RFC 5001 record, JSON metadata (read 2026-11-23): Proposed Standard, August 2007; not updated or obsoleted
- IANA, Root Zone Database, .br (read 2026-11-23): manager Comite Gestor da Internet no Brasil; name servers a.dns.br to f.dns.br with IPv4 and IPv6 addresses; secure delegation, DS 38298 13 2 9f2d4993f47b0f2751de0007d70a2754ee532fe373761154d9ea7a8cb9d8ea18; last updated 2023-11-14
- ISC, BIND 9 Administrator Reference Manual, Configuration Reference, server-id and request-nsid, 9.21.29-dev (read 2026-11-23): server-id is reported for NSID queries and CH TXT ID.SERVER, to identify which of a group of anycast servers answers; none (the default) disables it, hostname uses gethostname(); request-nsid (default no) sends an empty NSID option to authoritative servers during iterative resolution and logs any NSID returned; copy taken at 18:01 by the DNS research
- NLnet Labs, nsd.conf(5), NSD documentation, latest (read 2026-11-23): provide-xfr, request-xfr (AXFR and UDP flags, tls-auth for XFR-over-TLS on port 853), allow-notify and notify with a key, NOKEY or BLOCKED; notify-retry; allow-axfr-fallback default yes; store-ixfr default no, ixfr-number 5, ixfr-size 1048576, create-ixfr; identity for CH TXT ID.SERVER; nsid as hex or with the ascii_ prefix
- NLnet Labs, unbound.conf(5), Unbound documentation, latest (read 2026-11-23): access-control, by default only 127.0.0.0/8 allowed and the rest refused; quic-port default 853 for DNS-over-QUIC; nsid disabled by default, hex or ascii_; qname-minimisation default yes; val-sig-skew-min 3600 and val-sig-skew-max 86400 seconds, 10% of the signature lifetime; use-caps-for-id default no; forward-zone and forward-first
- CZ.NIC, Knot DNS configuration reference, latest documentation (read 2026-11-23): nsid default the FQDN hostname at start; acl actions query, notify, transfer and update; notify-delay default 0; provide-ixfr default on; zonefile-load difference; quic default off and quic-port 853
- PowerDNS, Authoritative Server settings, documentation (read 2026-11-23): allow-axfr-ips default 127.0.0.0/8 and ::1 for AXFR without TSIG; disable-axfr; also-notify; only-notify default 0.0.0.0/0 and ::/0; allow-notify-from default 0.0.0.0/0 and ::/0; dnsupdate default no; allow-dnsupdate-from default 127.0.0.0/8 and ::1; dnsupdate-require-tsig (5.0.0) default no; server-id, default the hostname, returned for NSID; primary and secondary, called master and slave before 4.5.0