Skip to main content

creating a cPanel account that already has DNS zone

Comments

8 comments

  • Jcats
    You can just make a backup of the DNS zone and then overwrite the newly created one after you add the subdomain.
    # cp /var/named/domain.com.db /var/named/domain.com.db.bk
    go into WHM and delete the zone, then go into cPanel and add the subdomain.
    # cp -rf /var/named/domain.com.db.bk /var/named/domain.com.db # service named reload
    0
  • cPanelMichael
    Hello :) Yes, as mentioned in the previous post, you can only do this by first backing up and removing the existing zone, followed by creating the account and copying over the saved zone. Thank you.
    0
  • ladydi711
    Thanks, All! I have noticed that the creation of a cPanel account creates some additional records that the current zone file will not have. Is there anything cPanel specific that I need to worry about/retain? Thanks, Diane
    0
  • cPanelMichael
    You can backup the zone that cPanel created before deleting it and then manually add those entries to the existing zone after copying it over. Thank you.
    0
  • ladydi711
    I've followed these steps, but when I Edit the zone in WHM, it is displaying the entries from the version of the zone after the new account was created. What step am I missing?
    0
  • cPanelMichael
    You have to follow the steps from the earlier post to ensure your old zone is moved back into place: creating a cPanel account that already has DNS zone Then, simply add in any new records that you want added. Thank you.
    0
  • ladydi711
    Yes, unfortunately, that did not work. I opened a cPanel support ticket and they instructed me that because the serial number of the old zone was less than the serial of the new zone, it was only using the new zone. I manually had to add all the records needed from the old zone.
    0
  • cPanelMichael
    I am happy to see the issue is now resolved. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.