shrews

Registered
Oct 2, 2008
4
0
51
Is there anyway to import zone files in WHM? I'm moving a domain to Cpanel system but it has hundreds of zone files and I would rather not have to enter them by hand. Is there any way to batch upload zone files?
Jeff
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
27
143
Houston, TX
cPanel Access Level
Root Administrator
You can copy all of the *.db files (using FTP or SCP) from /var/named on the source server to /var/named on the destination server, then run the following command on the destination server:

Code:
# /scripts/rebuilddnsconfig
This command checks all zone files with the .db extension in /var/named and adds entries for them to /etc/named.conf, if entries are not already present in the file. You will then be able to edit or remove the DNS zones from the WebHost Manager. This procedure should do what you want.