DNS

DNS 7 YXRRSET vs 22 BADTRUNC

Both DNS 7 (YXRRSET) and 22 (BADTRUNC) belong to the DNS Response Codes (RCODEs) category. 7 indicates that rR Set Exists when it should not. A resource record set exists that the update prerequisite says should not. Meanwhile, 22 means that bad truncation. The TSIG record was truncated in a way that makes it impossible to verify the message signature.

Description

RR Set Exists when it should not. A resource record set exists that the update prerequisite says should not.

Quand vous le voyez

A DNS UPDATE failed because a specific RRset (e.g., an A record) already exists when the prerequisite required it to be absent.

Comment résoudre

Delete the conflicting RRset before retrying the update, or adjust your prerequisite conditions to match the actual zone state.

Description

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

Quand vous le voyez

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

Comment résoudre

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.

Différences clés

1.

DNS 7: RR Set Exists when it should not. A resource record set exists that the update prerequisite says should not.

2.

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

3.

You encounter 7 when a DNS UPDATE failed because a specific RRset (e.g., an A record) already exists when the prerequisite required it to be absent.

4.

You encounter 22 when a large DNS response was truncated (TC bit set) but the TSIG MAC was computed over the full message, making the truncated version unverifiable.

Quand utiliser lequel

For 7 (YXRRSET): Delete the conflicting RRset before retrying the update, or adjust your prerequisite conditions to match the actual zone state. For 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.

En savoir plus