The packet that carries a claim about you

Somewhere between your laptop and the authoritative nameserver that finally answers your query, a decision is made about how much of your network address travels with the question. You did not make it. Nobody asked you. Yet it shapes which answer comes back and how long that answer is allowed to sit in a cache, quietly serving strangers. The mechanism is EDNS Client Subnet, and it is one of the quietest delegations of authority in the whole DNS.

Before ECS, a topology-sensitive authoritative server saw only the source address of the recursive resolver. When resolver and user sat close together, that address was a decent proxy for the client network. When a centralized resolver served clients hundreds of miles from its own network position, it was a bad proxy — and the answer tailored to the resolver could be a poor answer for the person actually waiting behind it.

RFC 7871 fixed that by documenting an EDNS0 option that lets an intermediate nameserver forward information about the query's origin network. The resolver does not hand over a full account of the client. It sends an address family, a source prefix length, and only enough address bits to cover that prefix. In a query, the scope prefix length is zero. The resolver's intervention becomes explicit in the packet — even though it stays invisible to the stub resolver and the person at the keyboard.

That invisibility is the governance fact worth staring at. The upstream disclosure is made by an intermediary, under a policy about how many network bits are useful and acceptable — a policy the client never reads and rarely negotiates. The client benefits if the authoritative service uses the hint to pick a better response. The client is not the party doing the talking.

What EDNS Client Subnet actually sends upstream

Source prefix length: how much the resolver is willing to reveal

SOURCE PREFIX-LENGTH states how many leading bits of the address matter in the query. A recursive resolver carries a configured maximum cacheable length and should send less than the full address. If an incoming query already carries a shorter ECS prefix, an onward resolver must not disclose more client bits than that limit allows. The address field is truncated accordingly and padded only through its final necessary octet.

Scope prefix length: how far the answer may travel

SCOPE PREFIX-LENGTH does a different job in the response. It declares how many leading bits define the network the answer is meant for. A shorter scope says the answer covers a broader range. A longer scope can signal that the source prefix supplied to the authority was not specific enough to select the most appropriate tailored answer.

Neither number proves location. RFC 7871 draws a deliberate line between topological distance and geography: machines far apart on a map can be close in network terms, and neighbours can be distant through the network. Nor does the option dictate how an authority chooses a tailored response. Scope governs reuse of the answer; it does not certify that the selected server is nearest, fastest or best.

Why the cache becomes part of the protocol

An ECS-aware cache still starts from the ordinary DNS tuple of name, type and class. It then chooses among cached answer sets using prefix matching. Answer records are tied to the network described by the response, and the interplay between source length, scope length and the resolver's maximum cache length decides how an entry may be reused.

If a response carries no ECS option, a resolver normally treats it as scope /0 — good for every client address. If an authority returns REFUSED, an ECS-aware resolver retries without ECS, so it can tell refusal of the option apart from other uses of the same response code.

That extra dimension has a price. Different networks can demand different cached answers for the same name, type and class. RFC 7871 warns of larger caches, lower reuse and heavier server load, and recommends enabling ECS only where clients gain a clear benefit — off by default, with limits on how many networks and answers are retained.

The opt-out that depends on someone else's goodwill

A stub resolver can send ECS with SOURCE PREFIX-LENGTH zero. A recursive resolver receiving that instruction must not place the client's address information in its upstream query. It may omit ECS entirely or substitute its own address information. Forwarding resolvers must preserve an incoming limit rather than widen the disclosure.

The wire rule is crisp. RFC 7871's 2016 privacy note was less cheerful: practical support for expressing the preference was limited at the time. That is a historical observation, not a current adoption claim — the source set here contains no present census of applications, public resolvers or operator policies.

RFC 8932 reframed the problem for DNS privacy services in 2020. Encryption shields the client-to-resolver hop from certain observers, but the resolver still sees the queries and can still pass information onward. The BCP says a service should honour a zero source prefix and should either avoid ECS upstream or offer a service that does not send it. If an operator does use ECS, it should choose the shortest operationally feasible prefix, ideally restrict which upstream servers receive it, and disclose the prefix length and policy.

DNSSEC signs the data, not the disclosure

DNSSEC does not convert the prefix into authenticated client context. RFC 7871 recommends scoping most DNSSEC records at /0, while an RRSIG stays tied to the RRset it signs. Validation protects DNS data under DNSSEC's own rules; it does not sign the resolver's decision to disclose a prefix, prove geography, or certify the authority's locality policy.

Who speaks for the end user

This is where a routing optimisation turns into a governance question, and it is the same question that keeps surfacing across Internet infrastructure: who gets to speak for a party that never entered the room? Lu Heng makes the point bluntly in On Who Gets to Speak for a Continent, a Community, or "The End User" — speakers who carry no operational risk have no standing to speak for the users they claim to represent. ECS is the protocol-layer version of that argument. The resolver carries the risk of cache fragmentation; the authority carries the risk of a badly steered answer; the client carries the disclosure and gets no signature on it.

The historical lesson is not that ECS defeated DNS privacy or guaranteed better delivery. It is narrower and more durable: a locality optimisation made two intermediary policies permanent — what the resolver reveals on the user's behalf, and how the authority partitions later cache reuse. That is an editorial inference from the protocol mechanics, not a measurement of how networks deploy ECS today.

The prefix is short. The delegation is not.

Sources