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.

FBFenwei BianAuthorNov 24, 2026
  • 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.

ObserverWhat the example shows
Recursive resolver handling the client connectionThe connection can expose the client's address independently of ECS.
Authoritative server receiving the recursive queryThe resolver's connection address, and the client-derived prefix if the resolver sends ECS.
A network observer on the client-to-resolver pathThe 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.

Sources and further reading

About the author(s)

Software Developer & Writer • Namefi
FBAuthor

Fenwei Bian is a software developer in her thirties who spends her working hours in pull requests and her weekends with her hands in soil or sawdust. Years of open source on GitHub taught her that names are interfaces: a good one is clear, honest about what it does, and kind to whoever has to use it next.

She gardens because it rewards patience and punishes wishful thinking, and she does woodwork because a joint either fits or it doesn't. Both habits show up in how she writes about naming — measure twice, check the source, and don't sand over a rough spot and hope no one notices.

For Namefi she writes about how domain markets actually move, the practical trade-offs of tokenizing and flipping names, and picking a domain you'll still be glad you own in twenty years.

Related guides

Discuss this post

View the discussion on Namefi Discuss