Parked domains stop resolving after transfer

mfragoso

Active Member
Oct 17, 2003
42
0
156
Mexico City
cPanel Access Level
Root Administrator
Hi,

Recenly I moved domains from one server to another and the transfer went smooth, however I have noticed that parked domains are not resolving, only those created with the main account..
I tested with nslookup and querying the parked domains and sends the domain could not be found error.
I have verified that /var/cpanel/user/* have the correct IP= line
Under List parked domains they show correctly
Another test that I made is to add one domain to an account just to test and it adds it but it does not resolve. Obviously the account allows enought parking of domains.

Those parked domains exist in named.conf as well as in /var/named/

Any ideas?

Thanks
 
Last edited:

mfragoso

Active Member
Oct 17, 2003
42
0
156
Mexico City
cPanel Access Level
Root Administrator
Found the problem, bugs that need to be fixed

Somehow the newest version of whm have a variable in their zones template called %nsttl%
This variable is initialized as root, in a brand new installation.
I got a chance to see the errors while restarting bind from whm, saying something like: invalid RR root
Basically you have to do the following
replace root 86400 -- /var/named/*.db
replace root 86400 -- /var/named/chroot/var/named/*.db
service named restart

Other bug is that when you transfer a user, somehow his account file on /var/cpanel/users/ keeps the old IP, and dns won't resolve. Again a replace fix this , but you have to consider that if you have transfered from server to server there will be other ips are well , so using a replace like the above change all the old ips to the new ones.
 
Last edited:

MDurai

Member
May 15, 2005
9
0
151
I've experiencing this issue also.

But for the fix:

When I tried replace root 86400 -- /var/named/chroot/var/named/*.db it did work for me as that location didnt exist and I got error code 2.

Any other help?
 

mfragoso

Active Member
Oct 17, 2003
42
0
156
Mexico City
cPanel Access Level
Root Administrator
Chroot dir

This was new for me, usually /var/named is the default directory but in this brand new installation, I noticed that changing that directory didnt reflect any changes and running a locate domain.db found that chroot directory over the default

Maybe just running replace in the default directory and service named restart and service cpanel restart is enough for you