Cybersecurity glossary
What is EDNS?
Learn what EDNS is, why Extension Mechanisms for DNS added larger UDP payloads and option handling, and how EDNS Client Subnet affects privacy and resolver behavior.
Definition
EDNS is a set of DNS extension mechanisms that lets clients and servers advertise larger UDP message sizes, signal extra capabilities, and carry DNS options without replacing the core DNS protocol.
Why DNS needed extension space
The original DNS design is compact and durable, but modern deployments ask much more from it than simple hostname lookups. Signed answers are larger, operators want better feature signaling, and recursive platforms may need to carry extra metadata. EDNS exists so DNS can evolve without breaking the installed base.
The key idea is compatibility. A resolver can still ask an ordinary DNS question, yet include an OPT pseudo-record that says, in effect, "I understand EDNS and here is what I can handle." Servers that understand it can respond accordingly.
What EDNS adds to a query
EDNS is not a new record type stored in the zone file. It is transport and capability metadata attached to a message.
Larger UDP payloads
The sender advertises how large a UDP DNS response it can receive, reducing unnecessary truncation for bigger answers.
Option container
EDNS carries optional data fields such as Client Subnet or DNS cookies without redefining the whole DNS packet structure.
Version signaling
Endpoints can indicate EDNS version support, which helps implementations evolve while detecting incompatibilities.
Extended flags
Important protocol signals such as DNSSEC-related behavior can be expressed alongside the query.
How EDNS negotiation usually plays out
The resolver sends a normal question plus OPT
A recursive resolver asks for a record such as A, AAAA, or DNSKEY and includes EDNS parameters in an OPT pseudo-record.
Payload size is advertised
The query states the maximum UDP response size the sender is prepared to accept.
Optional features are requested
The resolver may set flags or include EDNS options such as ECS depending on local policy and the use case.
The server evaluates support
An authoritative server that understands EDNS processes the request and decides which options or behaviors it will honor.
A response is returned or truncated
If the answer fits and the path supports it, the response is sent over UDP; otherwise truncation may trigger a TCP retry or a smaller fallback.
Fallback protects compatibility
Resolvers remember broken paths and may retry with more conservative settings when middleboxes mishandle EDNS.
Common EDNS features and their trade-offs
| Feature | Purpose | Operational or privacy note |
|---|---|---|
| Advertised UDP size | Allows larger answers, especially helpful for DNSSEC and some verbose responses. | Oversized UDP can still fragment or fail across broken network paths. |
| DO bit | Signals that the requester can receive DNSSEC-related records and validation material. | Signed responses are larger, so path reliability matters more. |
| EDNS Client Subnet | Lets authoritative services tailor responses closer to the requester's location. | ECS may leak part of the client network prefix and complicate cache behavior. |
| Other option codes | Provides extensibility for future DNS behaviors without inventing a separate transport for each one. | Unsupported or filtered options can expose interoperability problems. |
Operational guidance for resolvers and DNS teams
EDNS support is now routine, but it still deserves deliberate policy. The question is not only whether you support EDNS, but which options you allow and under what privacy expectations.
- Validate EDNS behavior from multiple networks because middleboxes and firewalls may treat large DNS packets inconsistently.
- Size UDP responses conservatively enough to reduce fragmentation risk while still supporting your real workloads.
- Document whether your recursive platform sends ECS and under which domains, customers, or geographic policies.
- Assume ECS can alter cache efficiency because answers may vary by subnet scope rather than by query name alone.
- Monitor fallback rates from EDNS-enabled UDP to TCP; unusual spikes can signal path breakage.
- Test signed zones specifically, because DNSSEC often exposes EDNS handling problems sooner than ordinary A or MX lookups.
- Treat unknown EDNS options carefully in network devices so security controls do not silently corrupt otherwise valid DNS traffic.
- Review privacy notices and resolver policy if client network information is exposed beyond the recursive tier.
Why ECS deserves separate attention
EDNS Client Subnet is useful when content or DNS infrastructure wants to answer based on requester location, but it changes the privacy model of recursive resolution. Instead of the authoritative server seeing only the recursive resolver, it may receive a portion of the client's network prefix.
That is why some operators restrict ECS, truncate it aggressively, or avoid it entirely. The performance gain of a more localized answer has to be weighed against reduced privacy and more complicated cache partitioning.
The practical takeaway
EDNS is the extension layer that lets DNS carry bigger responses and richer capability signals without abandoning the protocol that the Internet already uses everywhere.
For security and operations teams, the important questions are practical: whether EDNS paths work reliably, which options your infrastructure enables, and whether privacy-sensitive features such as ECS are worth their trade-offs in your environment.
Related security terms
Domain Name System (DNS)
The base protocol that EDNS extends while preserving normal query and response behavior.
DNS Resolver
Recursive resolvers negotiate EDNS support and often decide whether to send privacy-sensitive options.
Authoritative DNS Server
Authoritative servers receive EDNS-enabled queries and decide which options and sizes they support.
DNSSEC (Domain Name System Security Extensions)
DNSSEC validation commonly depends on EDNS because signed responses are larger than classic DNS messages.
NXDOMAIN
Even negative responses may carry EDNS-related metadata and sizing behavior.
Frequently asked questions
What is EDNS in simple terms?
EDNS gives DNS extra room and feature signaling so the protocol can support modern needs without redesigning every message format.
Is EDNS the same as a new version of DNS?
No. It extends standard DNS by using an OPT pseudo-record and additional signaling fields rather than replacing the protocol.
Why was EDNS needed?
Classic DNS message assumptions were too small for modern use cases such as DNSSEC, richer signaling, and certain operational metadata.
What does EDNS change most visibly?
It lets endpoints advertise how large a UDP response they can handle and enables DNS options such as EDNS Client Subnet.
What is EDNS Client Subnet?
EDNS Client Subnet, or ECS, is an option that can send part of the client network prefix to authoritative servers so responses can be tailored geographically or topologically.
Why does ECS raise privacy questions?
Because it shares more information about the requester than a plain recursive lookup would, potentially exposing client location or network details to additional parties.
Does EDNS always work perfectly?
No. Some networks and middleboxes still mishandle large DNS packets or unknown options, so implementations often fall back carefully when problems appear.
References
Explore authoritative guidance and frameworks related to edns.
Explore every security definition
Return to the glossary to search by term, alias, starting letter, or security category.