Index: [Article Count Order] [Thread]

Date:  Tue, 23 Oct 2007 17:26:30 -0400
From:  Richard Siddall <cobalt (at mark) elirion.net>
Subject:  [coba-e:10939] Re: DNS Question
To:  coba-e (at mark) bluequartz.org
Message-Id:  <471E6706.4030105 (at mark) elirion.net>
In-Reply-To:  <8B5E9DC9-1A63-4746-B115-017F5000626D (at mark) iweb.dk>
References:  <002201c81537$ed309db0$7001a8c0 (at mark) cyberec> <e74001c8156a$834d7f70$0601a8c0 (at mark) systemax> <58330498.20071023095129 (at mark) eggington.net> <005101c81592$5f6fa560$010510ac (at mark) gregg> <8B5E9DC9-1A63-4746-B115-017F5000626D (at mark) iweb.dk>
X-Mail-Count: 10939

René MÍsted wrote:
>> Is there a way to pull all zones form a primary dns server to a 
>> secondary dns server?
>> I have a few BQs running, and one of them I'm using as primary, and 
>> another as secondary, but I'm having to manually add the domain names 
>> to the secondary each time I add a new domain to the primary, so my 
>> question is, can the secondary just pull all the domain information 
>> from the primary? If BQ can't do that, will a windows server be able 
>> to pull all the information from a primary?
>> Thanks.
> 
> I wouldn't say that I have the solution but merely a hint.
> This line whould generate a named.conf
> for domain in $(egrep ^zone /etc/named.conf | cut -d"\"" -f2 | sort); do 
> echo "zone \"$domain\" { type slave; file \"sec.$domain\"; masters { 
> IP_OF_MASTER; }; };"; done

We do something like that.  The implementation is something like that 
described in http://blog.eukhost.com/webhosting/simple-dns-cluster/

We use rsync to pull named.conf from the primary to the secondary, run a 
script to pull out the domain names and create a file that is then 
included into the secondary's named.conf.  We then do an "rndc reload" 
to get bind to use the updated file.

Regards,

	Richard Siddall