Capture dns-local-001.pcapng 15.89 Kbytes · 2022-05-22 · 23 minutes, 49 seconds

Truncated message

warning

Possible Reasons

  • Large DNSSEC Responses Exceeding UDP Limits.
  • Multiple Resource Records in the Response.
  • EDNS Buffer Size Too Small.
  • UDP Packet Fragmentation or MTU Restrictions.

DNS response truncation occurs when a DNS server sends an incomplete response because the full response exceeds the allowed size for UDP packets. When this happens, the server sets the TC (Truncated) flag in the response, instructing the client to retry the query over TCP.

Comparison with other tests

Loading...

Loading...

Troubleshoot "Truncated message"

For a more customized troubleshooting experience, go pro.

Large DNSSEC Responses Exceeding UDP Limits.

DNSSEC-signed domains include additional cryptographic signatures (RRSIG, DNSKEY, NSEC, etc.), which significantly increase the response size. Responses often exceed the default 512-byte UDP limit, triggering truncation.
For example, a DNSSEC query for a signed domain (e.g., .gov, .bank) returns a large response requiring TCP fallback.

Increase the EDNS buffer size to allow larger UDP responses.
Ensure TCP fallback is enabled for DNSSEC queries.

Multiple Resource Records in the Response.

A response containing multiple A, AAAA, TXT, MX, or CNAME records may exceed the UDP size limit. The server truncates the response, forcing the client to retry over TCP.
For example, a query for google.com returns multiple IPv4 and IPv6 addresses, making the response too large for a single UDP packet.

Optimize DNS responses to reduce unnecessary records.
Use smaller TXT records where possible.

EDNS Buffer Size Too Small.

The Extended DNS (EDNS0) buffer size is set too low, forcing truncation even when a larger UDP response is possible. Queries return truncated responses even when the network could handle larger UDP packets.
For example, a resolver sets an EDNS buffer size of 512 bytes, causing unnecessary truncation.

Increase the EDNS buffer size to 4096 bytes to reduce truncation:

UDP Packet Fragmentation or MTU Restrictions.

Some networks block or drop fragmented UDP packets, preventing large DNS responses from being transmitted properly. The DNS server truncates responses to avoid fragmentation.
For example, a firewall drops UDP fragments, causing large DNS responses to be truncated instead of being received correctly.

Allow UDP fragments on firewalls.
Force TCP for large DNS queries to bypass UDP fragmentation issues.