A Second Slave

AsadMoeen

Verified User
Joined
Oct 20, 2010
Messages
68
Hi.

I have setup my Primary DirectAdmin machine to allow transfers of DNS records to a Slave Non-Directadmin machine and it works like this :

notify explicit;
also-notify { 192.168.0.2; };
allow-notify { 192.168.0.2; };
allow-transfer { 192.168.0.2; };
allow-recursion { localnets; };
listen-on-v6 { any; };

where 192.169.0.2 is the slave's IP.
i.e. placing this in /etc/named.conf between the options.

It works all great and transfers the records automatically to the secondary after the zones are created in the slave's config but for the 3rd DNS, I can't use these commands 2 times in a config so I followed this guide here by you, now I'm not sure if it actually is for what I mean but it doesn't work :

http://help.directadmin.com/item.php?id=196

The commands entered work but I don't see any 3rd DNS created in the domain zone files as in the file /etc/named.conf which means the records are not being transferred and the 3rd DNS IP is not being allowed as the 2nd one.

Currently, I've got it working by manually copying DNS records from Master to slave. But I don't want to keep up copy pasting for all new domains. Any help ?
 
Your master server is the only one that should be sending zone files. You should be transfering to both the slaves from the master.
 
You didn't understand what I mean.

I want it to automatically transfer the records like it does for the first secondary slave.
 
@AsadMoeen,

Try this:

Code:
notify explicit;
also-notify { 192.168.0.2; 192.168.0.3;};
allow-notify { 192.168.0.2; 192.168.0.3; };
allow-transfer { 192.168.0.2; 192.168.0.3; };
allow-recursion { localnets; };
listen-on-v6 { any; };
 
Back
Top