How to change owner of DNS zone?
I have several domains that were manually added by clicking "Add DNS Zone" in WHM. These zones/domains are now all owned by root.
How do I manually change the owner to another cPanel user, so that when I migrate that user (ie make a full cpanel backup and restore it elsewhere) it also migrates these DNS zones along with it.
I saw this thread which asks the same question:
Change DNS zone ownership
But I have a few questions:
a) The reply says to add the zone to /var/cpanel/users/CPUSER and then run
/usr/local/cpanel/scripts/updateuserdomains
- Do I also need to remove the line for the corresponding domain from /var/cpanel/users/root?
- The CPUSER in question already has a few hundred addon domains ie DNS1-DNS100. Do I just manually add DNS101? Does it matter if I skip a number by accident?
- What are the XDNS lines I see in the /var/cpanel/users/CPUSER file? Are these relevant?
- When I run /usr/local/cpanel/scripts/updateuserdomains, will that update /etc/userdomains?
-
Hello, - Do I also need to remove the line for the corresponding domain from /var/cpanel/users/root?
Yes. The entries may also exist in /var/cpanel/users/system if you do not see them in /var/cpanel/users/root.- The CPUSER in question already has a few hundred addon domains ie DNS1-DNS100. Do I just manually add DNS101? Does it matter if I skip a number by accident?
Yes, you just add in the entry with the next number. It's okay if you skip ahead a number, but you should avoid duplicating a number.- What are the XDNS lines I see in the /var/cpanel/users/CPUSER file? Are these relevant?
Those are domain names that were part of the account in the past, but have since been removed. You can ignore these entries.- When I run /usr/local/cpanel/scripts/updateuserdomains, will that update /etc/userdomains?
Yes. Thank you.0
Please sign in to leave a comment.
Comments
1 comment