What EDNS Client Subnet Shares With DNS Servers
Trace which network prefix a recursive resolver may send upstream with EDNS Client Subnet and how that choice affects privacy and caching.
- dns
- privacy
- resolver
- explainer
EDNS Client Subnet, or ECS, gives a DNS resolver a way to attach a network prefix to a query. A recursive resolver can pass that prefix to an authoritative server so the server can give an answer appropriate to the user's network. The authoritative server then receives more location-related information than the resolver's own connection would provide.
Trace a fictional request
Suppose the client connects to a resolver from 192.0.2.140, a documentation address. If the resolver sends an ECS option with a source length of 24, it can send the prefix 192.0.2.0/24. That omits the final part of the address. The authoritative server can still distinguish that network from another network.
| Observer | What the example shows |
|---|---|
| Recursive resolver handling the client connection | The connection can expose the client's address independently of ECS. |
| Authoritative server receiving the recursive query | The resolver's connection address, and the client-derived prefix if the resolver sends ECS. |
| A network observer on the client-to-resolver path | The transport choice affects whether that observer can read the DNS message. |
DNS over HTTPS or TLS addresses the transport row. Encrypting the connection to the resolver does not decide whether the resolver sends ECS to another server.
Source and scope answer different questions
The query's source prefix length says how many address bits the sender provided. The reply's scope prefix length says how broadly the answer applies for caching. For example, an authoritative server may tailor an answer to a specific network, or return an answer that applies more broadly. A resolver cannot assume a tailored answer is suitable for every user. RFC 7871 describes how that scope affects cache reuse.
A common use is to direct users to infrastructure near their network rather than near a shared resolver. The tradeoff is that sharing even a truncated prefix exposes network information, and narrower cache reuse can increase the work required to resolve the same name for different groups.
Check the resolver and profile you actually use
Providers may offer profiles with different ECS policies. Quad9's service table distinguishes configurations with ECS from configurations without it. If minimizing prefix sharing matters to you, confirm the profile for the exact resolver endpoint and transport you selected. A resolver's policy about sending ECS and its policy about handling or retaining client connections are separate questions. Check both before drawing a privacy conclusion.
