DNS

DNS 0 NOERROR vs 5 REFUSED

Both DNS 0 (NOERROR) and 5 (REFUSED) belong to the DNS Response Codes (RCODEs) category. 0 indicates that no error condition. The query completed successfully and the response contains the requested data. Meanwhile, 5 means that query refused. The name server refuses to perform the requested operation for policy reasons.

Mô tả

No error condition. The query completed successfully and the response contains the requested data.

Khi bạn thấy mã này

This is the normal, successful response to any DNS query — the name was resolved and the answer section contains the requested records.

Cách khắc phục

No fix needed. RCODE 0 means the DNS lookup succeeded as expected.

Mô tả

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

Khi bạn thấy mã này

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.

Cách khắc phục

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.

Sự khác biệt chính

1.

DNS 0: No error condition. The query completed successfully and the response contains the requested data.

2.

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

3.

You encounter 0 when this is the normal, successful response to any DNS query — the name was resolved and the answer section contains the requested records.

4.

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.

Khi nào dùng cái nào

For 0 (NOERROR): No fix needed. RCODE 0 means the DNS lookup succeeded as expected. 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.

Tìm hiểu thêm