Changes to DNS zone files under /var/named do not show up under whm zone editor

shazde

Active Member
May 19, 2014
31
0
56
cPanel Access Level
Root Administrator
Hi,

This is extremely strange and I hope some one can direct us to the right answer:

Here is a little bit of history.
While transferring domains from 1 server to another (we have around 20 whm servers) the DNS zone data for the domains change (I understand this is a part of 11.50 change)/

The problem here is most our clients have their own customization when it comes to their DNS settings (including using ns1.yourdomain.com and so far)

To solve this problem we take a backup of the dns zone file before transfer and after transfer we copy the old dns zone file over the newly generated file on the new server and restart named.

So far everything good as named read from the zone file which has the old value but when we go to the "Edit DNS Zone" under whm what we see is not the content of the file but the content of the auto-generated value! Which is simply wrong.

I have done a whole system grep to see where these data is coming from but no luck!

This is extremely devastating! We can't move accounts between servers anymore as the content of DNS zone changes and when we revert it back to the old data it still shows the wrong data to end user.

What we need to know is where whm gets its zone data info to show under "Edit DNS Zone" as its obviously no more from the files under /var/named directory
 

24x7serversecurity

Active Member
Aug 31, 2015
39
6
8
India
cPanel Access Level
Root Administrator
Hi :),

First of all, if you are migrating accounts from one cPanel server to another cPanel server, then simply take full backup which will get the DNS file/configuration of that domain. So that when you restore it to the new server, the DNS zone will get restored as well. No need to do it manually.

As you are facing problems while manually updating the zone file, try reloading the named service. Also get the cPanel updated using /scripts/upcp --force, and see if that can help.
 

twhiting9275

Well-Known Member
Sep 26, 2002
560
28
178
cPanel Access Level
Root Administrator
Twitter
If you have 20 WHM servers, It's pretty much a necessity to setup DNS clustering.
What I would do in this case is to setup 4 VPS'. They can be small, DNSonly doesn't need much, probably 2 gig ram tops
When you get all of these setup (with DNSonly), then tie your servers into them, then set everything to ns1-4.mydomain.com

Once you get all that done, you can move accounts from server to server to server without customers even noticing, or having to change a thing, as long as you handle their DNS

As far as the current issue, what DNS server are you running? In some cases, you actually cannot edit those files like that.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
To solve this problem we take a backup of the dns zone file before transfer and after transfer we copy the old dns zone file over the newly generated file on the new server and restart named.
Hello,

Could you let us know the specific steps you took to manually copy over the zone files? Include the full path to the directories you copied over.

Thank you.