Skip to main content

Create account using existing DNS and email addresses

Comments

4 comments

  • cPanelMichael
    Hello :) I suggest backing up the DNS zone, removing it, creating the account, and then restoring the zone or modifying it to add the custom entries. You should backup the email data, re-create the email accounts, and then move any stored email to the appropriate directories (e.g. /home/$user/$mail/$domain) after account creation. Thank you.
    0
  • Lyttek
    [quote="cPanelMichael, post: 1709532">Hello :) ... backing up the DNS zone, removing it, creating the account, and then restoring the zone or modifying it to add the custom entries.
    I manually copied the /var/named/domain.com.db file to a backup location, removed the zone, created the account, renamed the newly created domain.com.db to domain.com.db.bak and then copied the original zone file back. Permissions and ownership were adjusted as neccessary. named was restarted with no failures. If I do an nslookup on the domain using the local server, information is returned correctly. If I go to edit the DNS zone, however, all of the information is blank as when new... A records, CNAMES, TTL... it's all as if the account was brand new. Did I miss something?
    0
  • Lyttek
    Update: I have a small cluster with one additional DNSonly cpanel server. After making the original changes, I also sync'd the DNS cluster, but the changes didn't make it to the DNSonly box. So, I manually removed the zone from the DNSonly box, then forced a sync. NOW all the zone info is appearing correctly. Bug? Or ???
    0
  • cPanelMichael
    It's not a bug, but rather the other zone likely had a newer serial. It's important to update the serial when restoring a zone file: Update Serial DNS Zone Thank you.
    0

Please sign in to leave a comment.