22
DNS

22 BADTRUNC

Bad truncation. The TSIG record was truncated in a way that makes it impossible to verify the message signature.

On this page

When You See This Code

A large DNS response was truncated (TC bit set) but the TSIG MAC was computed over the full message, making the truncated version unverifiable.

How to Fix

Retry the query over TCP to avoid truncation. If using UDP, ensure your EDNS buffer size is large enough to receive the full signed response.

Compare With

Guides

Glossary

Frequently Asked Questions

What is DNS 22 BADTRUNC?

Bad truncation. The TSIG record was truncated in a way that makes it impossible to verify the message signature.

When do you see DNS 22 BADTRUNC?

A large DNS response was truncated (TC bit set) but the TSIG MAC was computed over the full message, making the truncated version unverifiable.

How to fix DNS 22 BADTRUNC?

Retry the query over TCP to avoid truncation. If using UDP, ensure your EDNS buffer size is large enough to receive the full signed response.