DNS 6 YXDOMAIN vs 7 YXRRSET
Both DNS 6 (YXDOMAIN) and 7 (YXRRSET) belong to the DNS Response Codes (RCODEs) category. 6 indicates that name Exists when it should not. Used in dynamic updates to indicate a name that should not exist already has records. Meanwhile, 7 means that rR Set Exists when it should not. A resource record set exists that the update prerequisite says should not.
Description
Name Exists when it should not. Used in dynamic updates to indicate a name that should not exist already has records.
When You See It
A DNS UPDATE prerequisite check failed because the domain name already exists when the update expected it to be absent.
How to Fix
Review your dynamic update prerequisites. If you expect to create a new name, remove the existing records first or change the prerequisite to allow existing names.
Description
RR Set Exists when it should not. A resource record set exists that the update prerequisite says should not.
When You See It
A DNS UPDATE failed because a specific RRset (e.g., an A record) already exists when the prerequisite required it to be absent.
How to Fix
Delete the conflicting RRset before retrying the update, or adjust your prerequisite conditions to match the actual zone state.
Key Differences
DNS 6: Name Exists when it should not. Used in dynamic updates to indicate a name that should not exist already has records.
DNS 7: RR Set Exists when it should not. A resource record set exists that the update prerequisite says should not.
You encounter 6 when a DNS UPDATE prerequisite check failed because the domain name already exists when the update expected it to be absent.
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.
When to Use Which
For 6 (YXDOMAIN): Review your dynamic update prerequisites. If you expect to create a new name, remove the existing records first or change the prerequisite to allow existing names. For 7 (YXRRSET): Delete the conflicting RRset before retrying the update, or adjust your prerequisite conditions to match the actual zone state.