<div dir="ltr"><div>Hi Neil.</div><div>Think about what a resolver is doing.</div><div><br></div><div>A client asks it a question, usually with the RD bit set, meaning essentially, do whatever you have to do to get me my answer. So the resolver attempts to find that answer, somehow.</div><div><br></div><div>If it already has it in cache, great. If it doesn't it may recurse, or (as in your case) forward. If the place it forwards to refuses its query and the resolver has nowhere else to try, it has failed in its job to obtain an answer on behalf of its client, so the only response it can give back to that client is SERVFAIL.</div><div><br></div><div>Why do you want the client to get REFUSED?</div><div><br></div><div>Cheers, Greg</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, 1 Jul 2025 at 09:06, Neil Nie (NSB) <<a href="mailto:neil.nie@nokia-sbell.com">neil.nie@nokia-sbell.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="ZH-CN" style="overflow-wrap: break-word;">
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:"Calibri",sans-serif">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:"Calibri",sans-serif">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.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:"Calibri",sans-serif">Thanks,</span><span lang="EN-US" style="font-size:11pt;font-family:"Calibri",sans-serif"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:"Calibri",sans-serif">Neil Nie<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
</div>

-- <br>
Visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list<br>
<br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
<br>
bind-users mailing list<br>
<a href="mailto:bind-users@lists.isc.org" target="_blank">bind-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a><br>
</blockquote></div>