Post-Quantum DNSSEC and the 2,420-Byte Problem
Post-Quantum DNSSEC and the 2,420-Byte Problem
Most people never think about DNS. They type a name, the browser finds the server, and the page loads. DNSSEC adds a signature to that answer so a resolver can prove the answer is real and not forged. The next version of those signatures is much larger, and that size is about to change how DNS traffic behaves.
The short version: a post-quantum DNSSEC signature can be 2,420 bytes before the DNS answer itself is counted. Many networks expect a DNS reply to fit in about 1,232 bytes over UDP. When it does not fit, the server tells the client to retry over TCP. That fallback is normal, but it turns a one-packet lookup into a stateful connection, and that has practical consequences when DNS starts misbehaving.
What DNSSEC does, in plain terms
DNS is the internet’s address book. A resolver asks an authoritative server, “What is the IP address for example.com?” and gets an answer. Without DNSSEC, a network in the middle can forge that answer and send the user somewhere else.
DNSSEC attaches a digital signature to the answer. The resolver checks the signature against the domain’s public key. If the signature is valid, the answer is authentic. If it is missing or wrong, the resolver can refuse the answer instead of passing a forged one to the user.
Today’s DNSSEC signatures are small. ECDSA P-256, one common choice, produces a 64-byte signature. A post-quantum algorithm called ML-DSA-44 produces a 2,420-byte signature and a 1,312-byte public key. The signature alone is almost 38 times larger than ECDSA P-256.
Why the packet size matters
DNS usually travels over UDP. UDP is connectionless: the resolver sends a question, the server sends an answer, and neither side keeps a session open. That is cheap and fast.
UDP has a practical size limit. DNS itself started with a 512-byte limit. EDNS(0) later let resolvers advertise a larger UDP response size, but many operators still use a conservative 1,232-byte ceiling because it avoids IP fragmentation on typical networks. A post-quantum DNSSEC response can exceed that ceiling with the signature alone.
The fix is built into DNS. When a UDP answer is too large, the server sets the TC, or truncated, bit. The resolver sees that flag and retries the query over TCP. The user still gets the answer. The difference is that the lookup now uses a TCP connection instead of a single UDP datagram.
Cloudflare’s 1.1.1.1 resolver already does this for ML-DSA-44 DNSSEC. Cloudflare’s own write-up shows a query that produces a truncated UDP reply and then succeeds over TCP. This is working as designed, not an outage.
Where it shows up in practice
A TCP fallback is usually invisible when everything is healthy. It becomes visible when one of the assumptions around it is wrong.
- Firewall rules. A network that allows UDP port 53 but blocks TCP port 53 will fail on large DNSSEC answers. The symptom looks like slow or broken name resolution, not a firewall message.
- Latency. A TCP connection needs a handshake and state on both ends. One slow lookup can become several slower lookups when a page loads many names.
- Load. Authoritative DNS servers and resolvers see more concurrent connections. Connection tables, CPU, memory and DDoS controls all matter more when every large answer needs state.
- Middleboxes. Older firewalls, NAT devices and load balancers may handle UDP DNS well but have smaller TCP connection limits or shorter idle timeouts.
- Diagnostic commands. A simple
digover UDP may show a truncated reply. The same query over TCP may succeed. That difference is the clue, not a random outage.
What this does not mean
It does not mean a quantum computer is breaking DNSSEC today. DNSSEC provides authenticity, not secrecy, so it is not exposed to “harvest now, decrypt later” in the same way as encrypted traffic. The reason to migrate now is coordination: authoritative servers, registries, registrars and resolvers all have to support the new algorithm before it can protect the whole chain.
It also does not mean UDP DNS is going away. Most queries still fit. The large responses are concentrated in DNSSEC key and signature records, especially DNSKEY responses that carry both old and new keys during the transition.
How to troubleshoot it
If a site is slow, intermittent or unreachable and the usual checks look normal, check whether the resolver uses DNSSEC and whether TCP port 53 is allowed. Do not disable DNSSEC as a first step. That removes the protection instead of fixing the path.
Useful checks:
- Query the name with
dig +dnssec. If the reply is truncated, repeat withdig +tcp. - Confirm the network allows TCP port 53 to the resolver and from the resolver to authoritative servers.
- Check whether the resolver supports ML-DSA-44. Cloudflare’s 1.1.1.1 does; older or internal resolvers may not.
- Look for connection-limit or timeout errors on firewalls and load balancers, not just packet loss.
- Compare a UDP query and a TCP query from the same host. If TCP succeeds and UDP truncates, the path is working as designed but something downstream is not handling the fallback.
The bigger picture
Post-quantum DNSSEC is not just a cryptography upgrade. It changes packet sizes, transport behavior and the load profile of DNS infrastructure. DNS over QUIC is one possible alternative, but it is stateful too, so it does not make the connection-management problem disappear.
The practical takeaway is simple: large DNSSEC answers are normal now, and TCP fallback is part of the design. When DNS behaves oddly, check the transport path before assuming the domain or the application is broken.
