Re: Is there any method/config to pass through rcode refused

Anand Buddhdev <[email protected]>
Newsgroups gmane.network.dns.bind9.user
Message-ID <3dca1fc7-67a6-4fac-9ac3-ed89c7b77931__21288.1021712505$1751358682$gmane$org@ripe.net>
On 01/07/2025 10:05, Neil Nie (NSB) wrote:

Hi Neil,

> I found that bind9 (as forwarder) always overwrite rcode refused to
> rcode servfail. For one use-case, the dns client wants to get original
> rcode (like refused). Please advise if there is any config or method to
> achieve that.

A resolver tries to resolve a query on behalf of its client. The 
resolver may face any number of problems in trying to get the answer. An 
upstream authoritative server could return REFUSED (meaning, it doesn't 
have the zone configured). The upstream authoritative server could just 
fail to respond, resulting in a timeout. Or there could be DNSSEC 
validation failures. After the resolver has tried everything it can to 
resolve a query, the only sane thing it can return to the client is 
SERVFAIL, meaning "I tried everything to resolve your query, but was 
unable to". It cannot return REFUSED, because REFUSED from a resolver to 
a client means something else, ie "I refuse to resolve this query for you".

Regards,
Anand
-- 
Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/bind-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.