N
N
netherneon2011-05-20 10:42:49
Domain Name System
netherneon, 2011-05-20 10:42:49

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

2 answer(s)
S
shadowalone, 2011-05-20
@shadowalone

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.

V
vgrayster, 2011-05-20
@vgrayster

The main question is, why do you need it? 200 zones is such a trifle.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question