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