I have Bind9 on Debian for NS1 and NS2 They are two virtual machines.
I create a file /etc/bind/zones/db.domain.com Then I have to add this to the /etc/bind/named.conf.local
zone "domain.com" { type master; file "/etc/bind/zones/db.domain.com"; allow-transfer { THE.IP.OF.NS2; }; allow-update { none; }; };
Then when I do a reload I it works on NS1, but Have to go into NS2 and also change the /etc/bind/named.conf.local
zone "domain.com" { type slave; file "/etc/bind/zones/db.domain.com"; masters { THE.IP.OF.NS1; }; allow-transfer { none; }; };
From now on when I do a reload/restart on NS1 it replicates the /etc/bind/zones/db.domain.com to NS2.
Is there a way to repilcate the content of /etc/bind/named.conf.local to the Slave, so I dont have to add every time the new domains on ns2 by hand?
Thanks!