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.

Beschreibung

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

Wann Sie es sehen

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

Wie man es behebt

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

Beschreibung

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

Wann Sie es sehen

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

Wie man es behebt

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.

Wesentliche Unterschiede

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.

Wann welchen verwenden

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.

Mehr erfahren