DNS zones not appearing in Edit DNS Zone list

jlopez

Member
Jan 11, 2013
5
0
51
cPanel Access Level
Root Administrator
I work at a hosting company and we're having a little issue.
When I click on "Edit DNS Zone" there are a lot of DNS zones that are missing from the listbox.
The websites (and all the stuff such as email, databases, etc.) for these domains work perfectly, though.
The DNS zone files for the missing domains are located at /var/named/dynamic, while newly added domains
go directly into /var/named.
The result is that only domains that are stored in /var/named appear in the zones listbox.

I'm somewhat confused, what can I do to make those missing domains appear in the listbox?

For more info the OS is CloudLinux 6.3 and cPanel version is WHM 11.34.1 (build 7).
 
Last edited:

JaredR.

Well-Known Member
Feb 25, 2010
1,834
27
143
Houston, TX
cPanel Access Level
Root Administrator
cPanel does not store zone files in /var/named/dynamic. That directory actually does not even exist on my test server.

Before you do anything, back up your /etc/named.conf file and entire /var/named directory. Then, copy the zone files from /var/named/dynamic to /var/named. Finally, rebuild the DNS configuration and restart named:

Code:
# /scripts/rebuilddnsconfig
# /scripts/restartsrv_named
The /etc/named.conf will be rebuilt by /scripts/rebuilddnsconfig with the zones present in /var/named.

All of the zones should now be listed in the WHM tools. Out of curiosity, were the zones in /var/named/dynamic somehow copied or migrated from another server?
 

linuxchef

Member
Jan 23, 2013
6
0
1
cPanel Access Level
Root Administrator
Hello,

Yes, "/var/named/dynamic" does not content any .db or zone files. If you have it must be either a custom setup or wrong directory you looking at. In both case you need to check your named.conf and make sure what zone file path you have on your old server.

Regards,
LinuxChef