creating a cPanel account that already has DNS zone
Hi,
I host a DNS zone on my cPanel server that is not associated with a cPanel account.
I now have the need to have an account (it would be a subdomain.mydomain.com).
I do not want to inadvertently cause problems with the existing zone records.
What is the best way to accomplish this without risking unintended changes to the existing zone?
Thanks in Advance!
Diane
-
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 reload0 -
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 -
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 -
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 -
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 -
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 -
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 -
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.
Comments
8 comments