<div dir="ltr">Hi:<div><br></div><div>Up until this point I have configured bind to serve a single domain (zone) and the bind server itself (the nameserver) lived on that domain. As an example the server was <a href="http://ns.domain1.com">ns.domain1.com</a> and was the authoritative server for <a href="http://domain1.com">domain1.com</a>.</div><div><br></div><div>I am in a situation where I need to configure bind to service multiple domains and have run into a problem.</div><div><br></div><div>My situation as such. The bind server itself sits on <a href="http://domain1.com">domain1.com</a> (which is actually the company primary domain) and as such the resolv.conf points to the company DNS servers.</div><div><br></div><div>I then configure a zone (ie: <a href="http://devdomain.com">devdomain.com</a>) with the following zone file:</div><div><div><br></div><div># <a href="http://devdomain.com">devdomain.com</a></div><div>zone "<a href="http://devdomain.com">devdomain.com</a>" {</div><div>    type master;</div><div>    file "/var/named/dynamic/<a href="http://db.devdomain.com">db.devdomain.com</a>";</div><div>    update-policy {</div><div>            grant rndc-key zonesub ANY;</div><div>    };</div><div>};</div></div><div><br></div><div><br></div><div><div>$TTL 10800      ; 3 hours</div><div>@               IN      SOA     <a href="http://usc1ks250.domain1.com">usc1ks250.domain1.com</a>. <a href="mailto:vccops@domain1.com">vccops@domain1.com</a>. (</div><div>                                42      ; serial</div><div>                                86400   ; refresh (1 day)</div><div>                                3600    ; retry (1 hour)</div><div>                                604800  ; expire (1 week)</div><div>                                3600    ; minimum (1 hour)</div><div>                                );</div><div>                IN      NS      <a href="http://usc1ks250.domain1.com">usc1ks250.domain1.com</a>.</div></div><div><br></div><div>The problem I am running into is if I query that domain (<a href="http://devdomain.com">devdomain.com</a>) for say <a href="http://test1.devdomain.com">test1.devdomain.com</a> (which isn't present in the zone file) it ends up query <a href="http://test1.devdomain.com.domain1.com">test1.devdomain.com.domain1.com</a>. And our company domain (domain1 in this example) returns a default IP for anything queried against it. Which I don't want. </div><div><br></div><div>The search path in the resolv.conf on the bind server has <a href="http://domain1.com">domain1.com</a> so it appears bind couldn't find the result (since it wasn't in the zone file) and then just followed the path the OS would do to lookup records (append the search path and try those).</div><div><br></div><div>Any assistance would be appreciated.</div><div><br></div><div>Thanks</div><div><br></div><div><br></div></div>