<div dir="ltr">I'm having a really simple recursive DNS for a small office, that has a forwarded zone (being resolved by another local server).<div><br></div><div>The config looks like</div><div><br></div><div><pre style="margin-top:0px;margin-bottom:1em;padding:5px;border:0px;font-variant-numeric:inherit;font-stretch:inherit;font-size:13px;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;vertical-align:baseline;width:auto;max-height:600px;overflow:auto;background-color:rgb(239,240,241);word-wrap:normal;color:rgb(36,39,41)"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;vertical-align:baseline;white-space:inherit">options {
    directory "/var/cache/bind";

    dnssec-validation auto;

    auth-nxdomain no;
    listen-on-v6 { none; };

    recursion yes;
    allow-query { any; };

    allow-transfer { none; };
};


zone "<a href="http://internal.companyname.co.nz">internal.companyname.co.nz</a>" {
    type forward;
    forward only;
    forwarders {
        192.168.1.x;
        192.168.1.y;
    };
};</code></pre><div><br></div><div>The problem I am observing is that even if I resolve a name within `<a href="http://internal.companyname.co.nz">internal.companyname.co.nz</a>` the bind still tries to contact the root servers, .nz. and .<a href="http://co.nz">co.nz</a>. servers as well.</div><div><br></div><div>And if at that point the internet is not available for the machine - the response fails, even though it's the forwarded to another local server zone.</div><div><br></div><div>On this screenshot there are the packets I captured that are being sent to the internet </div><div><br></div><div><a href="https://i.stack.imgur.com/TphcP.png">https://i.stack.imgur.com/TphcP.png</a><br></div><div><br></div><div>I also asked this question at <a href="https://serverfault.com/q/884196/45086">https://serverfault.com/q/884196/45086</a></div><div><br></div><div>So the question is: what do I else need to do to make this server not recurse for the forwarded-only zone?</div><div><br></div>-- <br><div class="gmail_signature">With best regards, Ivan Kurnosov</div>
</div></div>