Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to change owner of DNS zone?

Discussion in 'Bind/DNS/Nameserver' started by CanSpace, Mar 16, 2017.

  1. CanSpace

    CanSpace Member

    Nov 25, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    DataCenter Provider
    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

    - 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?
    kawasakai likes this.
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    Yes. The entries may also exist in /var/cpanel/users/system if you do not see them in /var/cpanel/users/root.

    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.

    Those are domain names that were part of the account in the past, but have since been removed. You can ignore these entries.


    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    kawasakai likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice