<div dir="ltr">Oh yeah you are right...I missed that out :)<div><br></div><div>Thanks for pointing it out..</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jan 12, 2014 at 2:03 AM, 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.1996.1389470377.20661.bind-users@lists.isc.org">mailman.1996.1389470377.20661.bind-users@lists.isc.org</a>>,<br>
<div><div class="h5"> Blason R <<a href="mailto:blason16@gmail.com">blason16@gmail.com</a>> wrote:<br>
<br>
> Hey all,<br>
><br>
> Pertaining to the same discussion. Can someone validate below zone files<br>
> and named.conf files? What I wanted to achieve here is; I wanted to make<br>
> <a href="http://mail.example.com" target="_blank">mail.example.com</a> as my sub domain and give them A record so that I could<br>
> load balance the traffic on LBs since my LBs are offering inbuilt DNS server<br>
><br>
> <a href="http://example.com" target="_blank">example.com</a><br>
> NS = <a href="http://ns1.example.com" target="_blank">ns1.example.com</a> 1.1.1.1<br>
> <a href="http://ns2.example.com" target="_blank">ns2.example.com</a> 2.2.2.2<br>
><br>
> #############################################<br>
> #<br>
> # <a href="http://example.com" target="_blank">example.com</a> MAIN ZONE FILE<br>
> #<br>
> #############################################<br>
> zone "<a href="http://example.com" target="_blank">example.com</a>" in{<br>
> type master;<br>
> file "master/<a href="http://master.example.com" target="_blank">master.example.com</a>";<br>
> // explicitly allow slave zone transfer<br>
> allow-transfer {2.2.2.2;};<br>
> };<br>
><br>
><br>
> ##################################<br>
> #<br>
> # <a href="http://master.example.com" target="_blank">master.example.com</a><br>
> ##################################<br>
> $TTL 2d<br>
> $ORIGIN <a href="http://example.com" target="_blank">example.com</a>.<br>
> @ IN SOA <a href="http://ns1.example.com" target="_blank">ns1.example.com</a>. <a href="http://hostmaster.example.com" target="_blank">hostmaster.example.com</a>. (<br>
> 2003080800 ; serial number<br>
> 2h ; refresh = 2 hours<br>
> 15M ; update retry = 15 minutes<br>
> 3W12h ; expiry = 3 weeks + 12 hours<br>
> 2h20M ; minimum = 2 hours + 20 minutes<br>
> )<br>
><br>
> IN NS <a href="http://ns1.example.com" target="_blank">ns1.example.com</a>.<br>
> IN NS <a href="http://ns2.example.com" target="_blank">ns2.example.com</a>.<br>
><br>
> IN MX 10 <a href="http://mx01.example.com" target="_blank">mx01.example.com</a>.<br>
> IN MX 20 <a href="http://mx02.example.com" target="_blank">mx02.example.com</a>.<br>
><br>
> ns1 IN A 1.1.1.1<br>
> ns2 IN A 2.2.2.2<br>
> ; A record for mail server above<br>
> mx01 IN A 20.20.20.20<br>
> mx02 IN A 30.30.30.30<br>
><br>
> #######################################################<br>
><br>
> $ORIGIN <a href="http://mail.example.com" target="_blank">mail.example.com</a>.<br>
><br>
> @ IN NS <a href="http://ns3.mail.example.com" target="_blank">ns3.mail.example.com</a>.<br>
><br>
> ; the next name server points to ns1 in the <a href="http://example.com" target="_blank">example.com</a> zone above<br>
> IN NS <a href="http://ns1.example.com" target="_blank">ns1.example.com</a>.<br>
> ; sub-domain address records for name server only - glue record<br>
> ns3 IN A 20.20.20.21 ; 'glue' record<br>
><br>
> ******************************************************<br>
> ******************************************************<br>
> #############################################<br>
> #<br>
> # <a href="http://mail.example.com" target="_blank">mail.example.com</a> MAIN ZONE FILE<br>
> #<br>
> #############################################<br>
> zone "<a href="http://mail.example.com" target="_blank">mail.example.com</a>" in{<br>
> type master;<br>
> file "master/<a href="http://master.mail.example.com" target="_blank">master.mail.example.com</a>";<br>
><br>
> };<br>
><br>
> #############################################<br>
> # <a href="http://mail.example.com" target="_blank">mail.example.com</a> zone file<br>
> #############################################<br>
> #<br>
><br>
> $TTL 2d ; default TTL = 2 days<br>
> $ORIGIN <a href="http://mail.example.com" target="_blank">mail.example.com</a>.<br>
> @ IN SOA <a href="http://ns3.mail.example.com" target="_blank">ns3.mail.example.com</a>.<br>
> <a href="http://hostmaster.mail.example.com" target="_blank">hostmaster.mail.example.com</a>. (<br>
> 2003080800 ; serial number<br>
> 2h ; refresh = 2 hours<br>
> 15M ; update retry = 15 minutes<br>
> 3W12h ; expiry = 3 weeks + 12 hours<br>
> 2h20M ; minimum = 2 hours + 20 minutes<br>
> )<br>
> ; sub-domain name servers<br>
> IN NS <a href="http://ns3.mail.example.com" target="_blank">ns3.mail.example.com</a>.<br>
<br>
</div></div>You also need:<br>
<br>
IN NS <a href="http://ns1.example.com" target="_blank">ns1.example.com</a>.<br>
<div class="im"><br>
><br>
> ; A records for name servers above<br>
> ns3 IN A 20.20.20.21<br>
><br>
> ; A record for mail server above<br>
> mail IN A 20.20.20.20<br>
> mail IN A 30.30.30.30<br>
<br>
</div>These will create A records for <a href="http://mail.mail.example.com" target="_blank">mail.mail.example.com</a>. Is that what you<br>
wanted? If you just want <a href="http://mail.example.com" target="_blank">mail.example.com</a>, it should be:<br>
<br>
@ IN A 20.20.20.21<br>
IN A 30.30.30.30<br>
<div class="HOEnZb"><div class="h5"><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>
</div></div></blockquote></div><br></div>