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.

Mass DNS Zone Import

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

  1. Aaron Hatton

    Aaron Hatton Active Member

    Joined:
    Jun 19, 2012
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    London, United Kingdom
    cPanel Access Level:
    Root Administrator
    Hello,

    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

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

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    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:

    Code:
    /scripts/rebuilddnsconfig
    Also, the following thread explains how to increment the serials in the zone:

    https://forums.cpanel.net/threads/how-to-incremental-serial-number-in-dns-zone.211732/#post-873142

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

    Thank you.
     
Loading...

Share This Page