<div dir="ltr">First of all, unless you need separate views for each office, don't go down that path.  Why are you attempting this as opposed to standard master-slave replication?<br><div><br>There's something else I'm not understanding here: why would recursive queries from one office go to the other office's nameservers?  What's preventing you from setting up a second recursive nameserver in each office?<br>
</div><div><br>John<br><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 30, 2014 at 4:32 PM, Jeronimo L. Cabral <span dir="ltr"><<a href="mailto:jelocabral@gmail.com" target="_blank">jelocabral@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear John, this is my scenario:<div><br></div><div>1) Office 1: people work with some machines and fill up a local master zone "<a href="http://company.com" target="_blank">company.com</a>" with records in DNS1</div>

<div>2) Office 2: people works with some others machines and fill up a local master zone "<a href="http://company.com" target="_blank">company.com</a>" with another records in DNS2</div><div><br></div><div>So both office have a different master zone.</div>

<div><br></div><div>Both offices belong to the same company, so I need that any client PC can resolve a hostname from "<a href="http://company.com" target="_blank">company.com</a>" domain, independently if this record is in DNS1 or DNS2. </div>

<div><br></div><div>Thanks again, regards.</div><div><br></div><div>JeLo</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 30, 2014 at 5:21 PM, John Miller <span dir="ltr"><<a href="mailto:johnmill@brandeis.edu" target="_blank">johnmill@brandeis.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Jeronimo,<br><br></div><div>First of all, please just tell us the real domain.  Yes, we could try and talk about a fictitious "<a href="http://example.com" target="_blank">example.com</a>" or "<a href="http://company.com" target="_blank">company.com</a>," but having the real domain name lets us actually query your nameservers.<br>


</div><div><br></div><div>Let me be sure I understand: you have two DNS servers.  Each of them is authoritative for the same domain.  Are both set as master?<br><br></div><div>The two servers have different copies of the zone--what's your reason for that?<br>


<br></div><div>If both servers think they are authoritative for a zone, then they will answer recursive queries for those zones themselves.  From the manual: <br><br>"Forwarding occurs only on those queries for which the server is not authoritative and does not have the answer in its cache."<br>


<br></div><div>What exactly are you trying to achieve?<br><br></div><div>John<br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Wed, Apr 30, 2014 at 3:55 PM, Jeronimo L. Cabral <span dir="ltr"><<a href="mailto:jelocabral@gmail.com" target="_blank">jelocabral@gmail.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><span style="color:rgb(51,51,51);font-family:Helvetica,FreeSans,'Liberation Sans',Helmet,Arial,sans-serif;font-size:13px;line-height:17px">Dear, I would like to ask for solution related with DNS (bind) configuration to allow </span><span style="color:rgb(51,51,51);font-family:Helvetica,FreeSans,'Liberation Sans',Helmet,Arial,sans-serif;font-size:13px;line-height:17px">forward requests to another DNS but related with the same domain.</span><br style="color:rgb(51,51,51);font-family:Helvetica,FreeSans,'Liberation Sans',Helmet,Arial,sans-serif;font-size:13px;line-height:17px">



<br style="color:rgb(51,51,51);font-family:Helvetica,FreeSans,'Liberation Sans',Helmet,Arial,sans-serif;font-size:13px;line-height:17px"><div><span style="color:rgb(51,51,51);font-family:Helvetica,FreeSans,'Liberation Sans',Helmet,Arial,sans-serif;font-size:13px;line-height:17px">I'm asking about two authoritative name servers serving the same domain but with different zone file info on each and have one of them forward recursive queries to another one if first one cannot find some particular subdomain record that is missing in his version of zone file.</span><br>



</div><div><span style="color:rgb(51,51,51);font-family:Helvetica,FreeSans,'Liberation Sans',Helmet,Arial,sans-serif;font-size:13px;line-height:17px"><br></span></div><div><span style="color:rgb(51,51,51);font-family:Helvetica,FreeSans,'Liberation Sans',Helmet,Arial,sans-serif;font-size:13px;line-height:17px">My named.conf.local is as follow, but it doesn't work:</span></div>



<div><span style="color:rgb(51,51,51);font-family:Helvetica,FreeSans,'Liberation Sans',Helmet,Arial,sans-serif;font-size:13px;line-height:17px"><br></span></div><div><div><font color="#333333" face="Helvetica, FreeSans, Liberation Sans, Helmet, Arial, sans-serif"><span style="line-height:17px">zone "<a href="http://company.com" target="_blank">company.com</a>" {</span></font></div>



<div><font color="#333333" face="Helvetica, FreeSans, Liberation Sans, Helmet, Arial, sans-serif"><span style="line-height:17px">    type master;</span></font></div><div><font color="#333333" face="Helvetica, FreeSans, Liberation Sans, Helmet, Arial, sans-serif"><span style="line-height:17px">    file "/etc/bind/zones/company.com.db";</span></font></div>



<div><font color="#333333" face="Helvetica, FreeSans, Liberation Sans, Helmet, Arial, sans-serif"><span style="line-height:17px">    allow-transfer { key "company"; };</span></font></div><div><font color="#333333" face="Helvetica, FreeSans, Liberation Sans, Helmet, Arial, sans-serif"><span style="line-height:17px">    check-names ignore;</span></font></div>



<div><font color="#333333" face="Helvetica, FreeSans, Liberation Sans, Helmet, Arial, sans-serif"><span style="line-height:17px">    forward first;</span></font></div><div><font color="#333333" face="Helvetica, FreeSans, Liberation Sans, Helmet, Arial, sans-serif"><span style="line-height:17px">    forwarders { 172.16.1.1; };</span></font></div>



<div><font color="#333333" face="Helvetica, FreeSans, Liberation Sans, Helmet, Arial, sans-serif"><span style="line-height:17px">};</span></font></div><div><font color="#333333" face="Helvetica, FreeSans, Liberation Sans, Helmet, Arial, sans-serif"><span style="line-height:17px"><br>



</span></font></div><div><font color="#333333" face="Helvetica, FreeSans, Liberation Sans, Helmet, Arial, sans-serif"><span style="line-height:17px">Thanks a lot, </span></font></div><div><font color="#333333" face="Helvetica, FreeSans, Liberation Sans, Helmet, Arial, sans-serif"><span style="line-height:17px"><br>



</span></font></div><div><font color="#333333" face="Helvetica, FreeSans, Liberation Sans, Helmet, Arial, sans-serif"><span style="line-height:17px">JeLo</span></font></div><div style="color:rgb(51,51,51);font-family:Helvetica,FreeSans,'Liberation Sans',Helmet,Arial,sans-serif;font-size:13px;line-height:17px">



<br></div></div></div>
<br></div></div><div>_______________________________________________<br>
Please visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list<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" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a><br></div></blockquote></div><span><font color="#888888"><br><br clear="all">
<br>-- <br>John Miller<br>Systems Engineer<br>Brandeis University<br>
<a href="mailto:johnmill@brandeis.edu" target="_blank">johnmill@brandeis.edu</a><br><a href="tel:%28781%29%20736-4619" value="+17817364619" target="_blank">(781) 736-4619</a>
</font></span></div>
<br>_______________________________________________<br>
Please visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list<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" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a><br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><br>-- <br>John Miller<br>Systems Engineer<br>Brandeis University<br><a href="mailto:johnmill@brandeis.edu">johnmill@brandeis.edu</a><br>(781) 736-4619
</div>