Web Hosting Talk







View Full Version : Secondary DNS syncronization


Electrik
03-16-2002, 08:20 PM
I have 1 ded. server running as main DNS with Plesk.
Secondary DNS will be other dedicated running Cpanel/WHM.

Trust Relationship have been created correctly and server2 connect to server1 to get all zones from /etc/named.conf

the problem is:
Secondary DNS server don't download zone files (xxxxx.xxx) because it check in /var/named directory.

(Plesk control panel have default dir for zone files at /var/named/run-root/var)

Someone faced with same prob? or someone knows how secondary syncronization works to make syncronization manually without need using WHM control panel script?

jks
03-16-2002, 09:21 PM
Originally posted by Electrik
Trust Relationship have been created correctly and server2 connect to server1 to get all zones from /etc/named.conf


What do you mean exactly, when you say "trust relationship". Do you mean simply that the server2 has been allowed to zone transfer from server1?


the problem is:
Secondary DNS server don't download zone files (xxxxx.xxx) because it check in /var/named directory.

(Plesk control panel have default dir for zone files at /var/named/run-root/var)


Plesk is running on the primary right?

Either you're using some kind of ssh-filecopy-replication, or you have the problem wrong. Bind doesn't check the directory on the server1 when trying to replicate to server2.

Instead it asks server1 for the serial of the zone, and then checks that with the number stored on disk. If the serial is higher than what stored on disks, it retrieves a new updated copy.

Electrik
03-16-2002, 09:48 PM
Yes that trust relationship is based on ssh access (identity.pub, known hosts, authorized_keys...)

--

WHM Option: Synchronize DNS Records With Primary Nameserver

Using this option with WHM i only get all dns zones info on named.conf copied from primary to secondary server.

zone "domain.com" {
type slave;
masters {
xxx.xxx.xxx.xx;
};
file "domain.com";
};


but file: domain.com isn't replicated...

Clicking on - Edit a DNS Zone - on WHT (2nd server), i only can see content of /var/named from 1st server
(run-root directory)