<div dir="ltr">Hey all,<div><br></div><div>Pertaining to the same discussion. Can someone validate below zone files and named.conf files? What I wanted to achieve here is; I wanted to make <a href="http://mail.example.com">mail.example.com</a> as my sub domain and give them A record so that I could load balance the traffic on LBs since my LBs are offering inbuilt DNS server</div>
<div><br></div><div><div><a href="http://example.com">example.com</a><span class="" style="white-space:pre">      </span></div><div>NS = <span class="" style="white-space:pre">      </span><a href="http://ns1.example.com">ns1.example.com</a><span class="" style="white-space:pre">                </span>1.1.1.1</div>
<div><span class="" style="white-space:pre">    </span><a href="http://ns2.example.com">ns2.example.com</a><span class="" style="white-space:pre">                </span>2.2.2.2</div><div><br></div><div>#############################################</div>
<div>#</div><div>#<span class="" style="white-space:pre">   </span><a href="http://example.com">example.com</a> MAIN ZONE FILE</div><div>#</div><div>#############################################</div><div>zone "<a href="http://example.com">example.com</a>" in{</div>
<div>  type master;</div><div>  file "master/<a href="http://master.example.com">master.example.com</a>";</div><div>  // explicitly allow slave zone transfer</div><div>  allow-transfer {2.2.2.2;};</div><div>};</div>
<div><br></div><div><br></div><div>##################################</div><div>#</div><div>#<span class="" style="white-space:pre">        </span><a href="http://master.example.com">master.example.com</a></div><div>##################################</div>
<div>$TTL 2d </div><div>$ORIGIN <a href="http://example.com">example.com</a>.</div><div>@              IN      SOA   <a href="http://ns1.example.com">ns1.example.com</a>. <a href="http://hostmaster.example.com">hostmaster.example.com</a>. (</div>
<div>               2003080800 ; serial number</div><div>               2h         ; refresh =  2 hours </div><div>               15M        ; update retry = 15 minutes</div><div>               3W12h      ; expiry = 3 weeks + 12 hours</div>
<div>               2h20M      ; minimum = 2 hours + 20 minutes</div><div>               )</div><div><br></div><div>              IN      NS     <a href="http://ns1.example.com">ns1.example.com</a>.</div><div>              IN      NS     <a href="http://ns2.example.com">ns2.example.com</a>.</div>
<div><br></div><div>              <span class="" style="white-space:pre">     </span>IN      MX     <span class="" style="white-space:pre">   </span>10 <a href="http://mx01.example.com">mx01.example.com</a>.</div><div><span class="" style="white-space:pre">           </span>IN<span class="" style="white-space:pre">        </span>MX<span class="" style="white-space:pre">        </span>20 <a href="http://mx02.example.com">mx02.example.com</a>.<span class="" style="white-space:pre">  </span></div>
<div><br></div><div>ns1           IN      A      1.1.1.1</div><div>ns2           IN      A      2.2.2.2</div><div>; A record for mail server above </div><div>mx01          <span class="" style="white-space:pre">       </span>IN      A      20.20.20.20</div>
<div>mx02<span class="" style="white-space:pre">                </span>IN<span class="" style="white-space:pre">        </span>A<span class="" style="white-space:pre"> </span>30.30.30.30</div><div><br></div><div>#######################################################</div>
<div><br></div><div>$ORIGIN <a href="http://mail.example.com">mail.example.com</a>.</div><div><br></div><div>@             IN      NS     <a href="http://ns3.mail.example.com">ns3.mail.example.com</a>.</div><div><br></div>
<div>; the next name server points to ns1 in the <a href="http://example.com">example.com</a> zone above</div><div>              IN      NS     <a href="http://ns1.example.com">ns1.example.com</a>.</div><div>; sub-domain address records for name server only - glue record</div>
<div>ns3           IN      A      20.20.20.21 ; 'glue' record</div><div><br></div><div>******************************************************</div><div>******************************************************</div><div>
#############################################</div><div>#</div><div>#<span class="" style="white-space:pre">  </span><a href="http://mail.example.com">mail.example.com</a> MAIN ZONE FILE</div><div>#</div><div>#############################################</div>
<div>zone "<a href="http://mail.example.com">mail.example.com</a>" in{</div><div><span class="" style="white-space:pre">    </span>type master;</div><div><span class="" style="white-space:pre">       </span>file "master/<a href="http://master.mail.example.com">master.mail.example.com</a>";</div>
<div> </div><div>};</div><div><br></div><div>#############################################</div><div>#<span class="" style="white-space:pre">     </span><a href="http://mail.example.com">mail.example.com</a> zone file</div><div>
#############################################</div><div>#</div><div><br></div><div>$TTL 2d ; default TTL = 2 days</div><div>$ORIGIN <a href="http://mail.example.com">mail.example.com</a>.</div><div>@              IN     SOA   <a href="http://ns3.mail.example.com">ns3.mail.example.com</a>. <a href="http://hostmaster.mail.example.com">hostmaster.mail.example.com</a>. (</div>
<div>               2003080800 ; serial number</div><div>               2h         ; refresh =  2 hours</div><div>               15M        ; update retry = 15 minutes</div><div>               3W12h      ; expiry = 3 weeks + 12 hours</div>
<div>               2h20M      ; minimum = 2 hours + 20 minutes</div><div>               )</div><div>; sub-domain name servers</div><div>                  IN      NS     <a href="http://ns3.mail.example.com">ns3.mail.example.com</a>.</div>
<div><br></div><div>; A records for name servers above </div><div>ns3               IN      A      20.20.20.21</div><div><br></div><div>; A record for mail server above </div><div>mail              <span class="" style="white-space:pre">   </span>IN      A      20.20.20.20</div>
<div>mail<span class="" style="white-space:pre">                        </span>IN<span class="" style="white-space:pre">        </span>A<span class="" style="white-space:pre"> </span>30.30.30.30</div><div><br></div></div><div><br></div><div><br></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 9, 2014 at 9:56 PM, Barry Margolin <span dir="ltr"><<a href="mailto:barmar@alum.mit.edu" target="_blank">barmar@alum.mit.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In article <<a href="mailto:mailman.1978.1389240374.20661.bind-users@lists.isc.org">mailman.1978.1389240374.20661.bind-users@lists.isc.org</a>>,<br>

 Blason R <<a href="mailto:blason16@gmail.com">blason16@gmail.com</a>> wrote:<br>
<br>
> Hey Guys,<br>
><br>
> lets say I have a domain <a href="http://exmaple.com" target="_blank">exmaple.com</a> which is hosted out and are having MX<br>
> records as <a href="http://mail01.exmaple.com" target="_blank">mail01.exmaple.com</a> and <a href="http://mail02.example.com" target="_blank">mail02.example.com</a> and<br>
> mail.example.comas a "A" Record for accessing mails<br>
><br>
> <a href="http://example.com" target="_blank">example.com</a>   NA   <a href="http://ns1.example.com" target="_blank">ns1.example.com</a><br>
>                                <a href="http://ns2.example.com" target="_blank">ns2.example.com</a><br>
><br>
>                  IN  MX  <a href="http://mail01.example.com" target="_blank">mail01.example.com</a> 10<br>
>                              <a href="http://mail02.example.com" target="_blank">mail02.example.com</a>  20<br>
> <a href="http://mail.example.com" target="_blank">mail.example.com</a>   IN  A   1.1.1.1<br>
><br>
><br>
> Now I would like to create sub-domain as <a href="http://mail.exmaple.com" target="_blank">mail.exmaple.com</a> and would like to<br>
> move that inside in my network on Bind while original NS are still with<br>
> <a href="http://exmaple.com" target="_blank">exmaple.com</a>.<br>
><br>
> So for zone <a href="http://mail.example.com" target="_blank">mail.example.com</a> MX would be <a href="http://mail01.example.com" target="_blank">mail01.example.com</a> &<br>
> <a href="http://mail02.example.com" target="_blank">mail02.example.com</a> and A record again same as @<br>
><br>
> What glitches do you see here by creating sub-domain <a href="http://mail.example.com" target="_blank">mail.example.com</a><br>
<br>
As long as you move the above A record into the subdomain, I don't see<br>
any problem with this.<br>
<br>
You should also make sure you're more careful when editing your real<br>
zone files than you have been when writing your post, there were LOTS of<br>
typoes (NA instead of NS, exmaple for example). :)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Barry Margolin<br>
Arlington, MA<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">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>
</font></span></blockquote></div><br></div>