Answer the question
In order to leave comments, you need to log in
BIND transfer all zones at once
There are NS on it about 200 domains, the second NS was configured as a slave. How to transfer all zones at once? I would be grateful for any information.
Answer the question
In order to leave comments, you need to log in
make a script that parses named.conf (if all domains are in this one file), and selects domains from there. Further leads to the form:
"zone \"$domain\" { type slave; masters {$hostip;}; file \"/var/named/slaves/$domain.hosts\"; };"
for each domain,
collect this into one file.
On the second NS, it's easy to do in namrd.conf:
include "file_of_zones.conf";
allow zone transfer for the IP of the second server on the first server.
And that's it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question