The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    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.
     
Loading...

Share This Page