René wrote
>
> 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.
But, the slave (secondary), needs to have a named.conf (local)
Which will accept the domains' DNS.
So not sure your solution will work... I could be WRONG
-
Gerald Waugh
http://frontstreetnetworks.com
Front Street Networks
4604 Fern Ave
Shreveport, LA 71105-3118
V: 318-862-3575/3577
F: 318-862-3576
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.