Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Copying large Zone Files

Discussion in 'General Discussion' started by shrews, Dec 21, 2010.

  1. shrews

    shrews Registered

    Joined:
    Oct 2, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    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
     
  2. cPanelJared

    cPanelJared Technical Analyst

    Joined:
    Feb 25, 2010
    Messages:
    1,835
    Likes Received:
    21
    Trophy Points:
    143
    Location:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice