BIND up and working. 3 zones in sync. Summary inside
Ryan McCain
Ryan.McCain at dss.state.la.us
Mon Oct 1 16:00:30 UTC 2007
Ahh.. Good point. I will test that out.
>>> On Fri, Sep 28, 2007 at 9:05 PM, in message
<barmar-02FF6C.22052228092007 at comcast.dca.giganews.com>, Barry Margolin
<barmar at alum.mit.edu> wrote:
> In article <fdjg5m$2aq5$1 at sf1.isc.org>,
> "Ryan McCain" <Ryan.McCain at dss.state.la.us> wrote:
>
>> Hopefully this will help others out in the future.
>>
>> Summary: We have been using dss.state.la.us for ages and have now been told
>> to also start using dss.la.gov and dss.louisiana.gov. Since any new DNS
>> record would go in all 3 zones I wanted to create a way where I didn't have
>> to manually update the 3 zone files. With the help of many people on this
>> list, this is how I was able to accomplish that goal.
>>
>> dss.state.la.us zone file:
>> $TTL 3600 ; 1 hour
>> @ IN SOA dss-cs99la14.dss.state.la.us.
>> webmaster.dss.state.la.us. (
>> 2007092802 ; serial
>> 1200 ; refresh (20 minutes)
>> 600 ; retry (10 minutes)
>> 1209600 ; expire (2 weeks)
>> 3600 ; minimum (1 hour)
>> )
>> NS dss-cs99la14.dss.state.la.us.
>> NS dss-dr93la05.dss.state.la.us.
>> MX 10 smtp1
>> $INCLUDE /var/lib/named/shared.zone
>>
>> ...Notice the $INCLUDE statement. The shared.zone file contains the all of
>> our DNS records:
>>
>> -SNIP-
>> drac CNAME dss-cs99ma22
>> dss-ad-idm-test A 10.120.160.188
>> dss-adobe-suse A 10.120.160.250
>> dss-adobe-w2k3 A 10.120.160.249
>> dss-as5300 CNAME dss-sdis1722388
>> dss-asfr1719680 A 172.21.6.154
>> dss-br03nf03 A 10.122.32.239
>> dss-br17nf01 A 10.122.11.239
>> dss-br17nf02 A 10.122.13.239
>> dss-br17nf05 A 10.120.100.216
>> -SNIP-
>>
>> I then linked the dss.la gov and dss.louisiana.gov zone files to to the
>> dss.state.la.us zone file:
>> # ln -s /var/lib/named/master/dss.state.la.us
>> /var/lib/named/master/dss.la.gov
>> # ln -s /var/lib/named/master/dss.state.la.us
>> /var/lib/named/master/dss.louisiana.gov
>>
>> ..This way, when I add a DNS record to the shared.zone file I only need to
>> update the serial number in one file since all 3 zones are linked to each
>> other.
>
> If all the files are linked together, why do you need the $INCLUDE file?
> Just put everything in the dss.state.la.us file.
>
> And why do you even need the links? Just specify the same filename for
> all three zones in named.conf?
More information about the bind-users
mailing list