On 23/10/2007, at 18.32, Gregg 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.
Hi,
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
Don't forget to put this at the very top of named.conf
options { directory "/etc/named"; };
zone "." { type hint; file "db.cache"; };
As far as I understand the sec.-files are generated automatically -
correct me if I'm wrong - once bind is restarted.
--
Rene