DNS

DNS 5 REFUSED vs 6 YXDOMAIN

Both DNS 5 (REFUSED) and 6 (YXDOMAIN) belong to the DNS Response Codes (RCODEs) category. 5 indicates that query refused. The name server refuses to perform the requested operation for policy reasons. Meanwhile, 6 means that name Exists when it should not. Used in dynamic updates to indicate a name that should not exist already has records.

คำอธิบาย

Query refused. The name server refuses to perform the requested operation for policy reasons.

เมื่อคุณพบเห็น

The server rejected your query due to access control — for example, a recursive resolver that only serves its own network, or a zone transfer blocked by ACL.

วิธีแก้ไข

Check the server's allow-query, allow-recursion, or allow-transfer ACLs. If you are not authorized to use this resolver, switch to a public DNS service.

คำอธิบาย

Name Exists when it should not. Used in dynamic updates to indicate a name that should not exist already has records.

เมื่อคุณพบเห็น

A DNS UPDATE prerequisite check failed because the domain name already exists when the update expected it to be absent.

วิธีแก้ไข

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.

ความแตกต่างหลัก

1.

DNS 5: Query refused. The name server refuses to perform the requested operation for policy reasons.

2.

DNS 6: Name Exists when it should not. Used in dynamic updates to indicate a name that should not exist already has records.

3.

You encounter 5 when the server rejected your query due to access control — for example, a recursive resolver that only serves its own network, or a zone transfer blocked by ACL.

4.

You encounter 6 when a DNS UPDATE prerequisite check failed because the domain name already exists when the update expected it to be absent.

ควรใช้อันไหนเมื่อไร

For 5 (REFUSED): Check the server's allow-query, allow-recursion, or allow-transfer ACLs. If you are not authorized to use this resolver, switch to a public DNS service. 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.

เรียนรู้เพิ่มเติม