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!

Mass DNS Zone Import

Discussion in 'Bind/DNS/Nameserver' started by Aaron Hatton, Mar 31, 2015.

  1. Aaron Hatton

    Aaron Hatton Active Member

    Jun 19, 2012
    Likes Received:
    Trophy Points:
    London, United Kingdom
    cPanel Access Level:
    Root Administrator

    I currently have around 2,000 DNS zones which I am using on an account and am looking to move these to a cPanel cluster of 5 servers.

    When looking on the current server the domains show as .txt files and when exporting they export as .txt zone files, is there a way to upload these to my cPanel server and assign them to cPanel users as well so they can amend records themselves.

    I know if I am to rename the file to add a .db at the end and a few tweaks to the TTL format, I can add it manually to the /var/named/ folder however I am unable to assign this to a user for them to manage, some users have close to 300 domains to manage.

    Is there a way to automate this to save me manually creating around 2,000 DNS Zones manually one by one for each user.

    With Thanks

    #1 Aaron Hatton, Mar 31, 2015
    Last edited by a moderator: Mar 31, 2015
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    There are no options in Web Host Manager that will automate the ownership assignment of the zones. You can copy over the zones with the correct file name to the /var/named directory and then rebuild the DNS configuration via:

    Also, the following thread explains how to increment the serials in the zone:

    Note that accounts do not manage domain names unless they are added to the account as parked or addon domain names.

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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