electrik

Member
Dec 16, 2001
6
0
301
I spent a few time setting secondary DNS on my CPanel server,
the way to make it work is here: http://support.cpanel.net/obb/read.php?TID=1753


But i have problem with syncronization,
my main dns server have zone files located at:

/var/named/run-root/var/
(is a PSA server)

After syncronization, Cpanel only update named.conf with all zones from 1st server, but it - don't download zone files -

And clicking on Edit a DNS Zone, shows &zones& that is really content located on main server at dir:

/var/named/

It show directory: run-root as &zone&

The problem is directory where secondary server looks for zone files. Where this dir is set?
 

electrik

Member
Dec 16, 2001
6
0
301
done

I have found a temp solution,

1.- have copied manually named.root copy on /var/named dir (at secondary server)

2.- transfered named.conf with &Synchronize DNS Records With Primary Nameserver& option

3.- then had to edit /etc/named.conf on secondary and put correct directory in options to make named able to find named.root

options {
directory &/var&;

changed to cpanel/whm correct dir:

options {
directory &/var/named&;


4.- then manually restart named
/etc/init.d/named restart

and it get all zone files from primary server and named finally starts correctly.

--

for next syncronizations points 2 / 3 / 4 are needed. &- If there is new zones added on primary

Only a /etc/init.d/named restart from shell if there aren't new zones, only if some zone file have been modified.