networking

Kept 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

← Back to N Back to the glossary