Summary

  • A follow-up query to the same DNS address can land on a different machine. NSID lets the server stamp a diagnostic identifier into the very response you are examining.
  • Its scope is a single DNS exchange. A recursive resolver names itself to its client—not every authoritative server that helped resolve the name.
  • The protocol carries opaque bytes; operators decide what they mean and whether to reveal them. An identifier is neither a globally certified identity nor automatic proof of authenticity.

The trouble with asking afterwards

Picture the moment after the strange answer. An operator has a DNS response worth investigating and fires a second query at the same address: which server are you? Back comes a perfectly healthy name. Its logs contain no trace of the original problem.

No log is missing. No server is lying. The second query simply reached a different instance. This is an illustrative diagnostic sequence, not a measured outage—but the trap is real: the method can return a convincing answer to the wrong question. The operator wanted the author of the earlier reply and got the participant in a later exchange.

That gap is what drove RFC 4892, the June 2007 requirements document by S. Woolf and D. Conrad. Anycast or load balancing can route successive queries to different servers, and probing with another protocol gives even less assurance that the responding system handled the original query. An address stayed useful for reaching a service; it no longer uniquely named the instance doing the work.

A stable address, a variable participant

The operational backdrop was already explicit in RFC 4786, published in December 2006 as BCP 126. An anycast service announces stable addresses from multiple independent nodes, and routing decides which node receives traffic. That does not mean the geographically closest machine always wins, or that every successive packet takes a new path. It means an unchanged destination address no longer guarantees an unchanged responder.

That separation was genuinely useful. Clients could use one service address without tracking every maintenance address behind it; operators could spread load without handing each client a changing inventory. But diagnostics picked up a new variable: which node actually answered?

RFC 4786 recommended identifying the node inside the service protocol and recording its identity alongside performance and availability from distributed monitoring points. A traceroute might help—except the network could change before it ran. The document pointed to NSID work then in progress; the final RFC did not yet exist. The need arrived before the tool.

The old question was useful, but separate

DNS operators already had conventions for asking a server to name itself. A TXT query in the CHAOS class for HOSTNAME.BIND. could return an administrator-chosen identifier. ID.SERVER. stripped out the implementation-specific name. VERSION.BIND. answered a different question, reporting version rather than identity.

These mechanisms had real virtues: they used DNS, configured easily, and left disclosure to the administrator. The new standard did not make them worthless or ban them. The defect was narrower—a separate query could not reliably attach its result to an earlier response from an address shared by several instances.

So RFC 4892 sought identification inside an ordinary operational query, with no separate class or diagnostic namespace, plus implementation neutrality and administrative controls. An operator should be able to offer a useful reference without exposing a private maintenance hostname or unicast address. Better correlation did not require a public directory of the whole installation.

A request with nothing inside it

R. Austein's August 2007 RFC 5001 defined the DNS Name Server Identifier option. A requester adds an empty NSID option to the EDNS OPT pseudo-resource record of its query. The request must carry no NSID payload; a server ignores any such data that shows up anyway.

The emptiness is the point. It is not a challenge value to echo, not an instruction to pick a named machine, not a proposed identity for the other side. It asks the actual recipient to append its own identifier to this response—if it supports the option and chooses to honor the request.

The choice stays real. A server may decline, and it must not send NSID without a request. An ordinary response without NSID is not proof of failure, absence of anycast, or absence of distinct instances. Supported, configured, requested and returned are four separate states.

The IANA DNS parameters registry assigns NSID EDNS option code 3. It allocates the shared slot, not the values placed inside it. There is no global registry of individual server identities. The common agreement covers how to request and transport an answer; the operator decides what the answer means.

Which server is allowed to say “me”?

NSID is explicitly non-transitive. A client asking a recursive resolver receives, if anything, that resolver's identifier. The resolver can independently request NSID when it queries authoritative servers. Different exchanges, different responders.

An authoritative identifier is not passed back as though it were the resolver's answer to the client's identity request, and NSID does not assemble a chain of every server consulted. “Hop-by-hop” here means DNS transaction endpoints, not a parade of IP routers sticking labels on a packet.

The later EDNS specification, RFC 6891 of April 2013, reinforces the boundary. OPT carries control information for one question-and-answer transaction, not zone data; it is not to be cached, forwarded or stored in master files as an ordinary record.

The consequence is useful: a recursive resolver can return cached records while its NSID describes the instance responding now. That identifier is not evidence of which authoritative instance supplied the cached data earlier. A present diagnostic observation stops masquerading as a historical certificate.

An unreadable value that must survive copying

The payload is an opaque byte string. It may look like a hostname, but clients cannot assume it is one. It may be random, encoded, or meaningful only against an operator's private records. Nothing requires a city code, a hardware serial, or a common naming grammar.

RFC 5001 is instead unusually careful about presentation: read and write the value as hexadecimal, two digits per octet; compare the underlying binary; do not assume a zero byte ends the string. Leading and embedded zeroes are part of the evidence, not clutter to discard.

An interface may offer a readable preview, but that cannot replace an exact representation. Changing the case of hexadecimal letters preserves the same bytes; changing case or Unicode normalization inside a decoded payload may not. Treating an arbitrary identifier as a DNS name would silently impose rules the protocol deliberately withheld.

This is a modest but important division of labor. A user need not understand the identifier to paste it into a support ticket; the operator who receives the ticket can interpret it. Exact transfer buys local naming freedom without forcing every observer to learn every local convention.

Opaque does not mean secret or true

Local choice has costs. A maintenance address can reveal a node the anycast service otherwise hides. Hashing an IPv4 address creates no large secret—its input space is still only 32 bits. Predictable hostnames can be guessed. Persistent random values need a mapping and a continuity policy; a fleet configured with one identical value loses the ability to tell its members apart.

Changing identifiers need not prove a route change or a new machine; equal identifiers need not establish one enduring physical device. Such conclusions depend on the operator's assignment rules, which live outside the wire format. The protocol carries a diagnostic reference, not a guarantee that its author assigned it sensibly.

RFC 5001 discusses signed or encrypted values without supplying a complete security design. A static blob can still be replayed. It also places NSID outside DNSSEC protection as such: authenticating a resource-record set does not automatically authenticate adjacent channel information. The document mentions channel protection such as TSIG when integrity is required. That historical boundary is not a claim that ordinary NSID exchanges are authenticated.

Two switches, not one chain-wide setting

The captured BIND configuration reference, identifying itself as version 9.20.27, separates server-id from request-nsid. The former controls the local identifier returned through NSID or ID.SERVER and defaults to none; using the hostname is an option. The latter asks for upstream identifiers during iterative queries and defaults to no. Returned upstream values can be logged in the nsid category.

That distinction is the protocol's scope expressed as configuration. Disclosing yourself downstream and asking another server upstream are independent decisions. The BIND manual pages document dig +nsid as a way to include the request. The command neither compels a reply nor makes returned bytes trustworthy. Documentation establishes an implementation path, not a census of enabled production systems.

There is also a physical cost to extra diagnostic bytes. NSID can push a response up against truncation limits, but it does not change DNS truncation rules or require truncation merely to fit the optional identifier. A diagnostic aid should not be confused with a delivery guarantee or allowed to obscure the ordinary answer's purpose.

NSID's achievement was to make the right evidence travel with the right exchange. It did not unify all server names or certify the network behind them. A smaller promise was enough to remove a consequential ambiguity.