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!

Change domain ownership

Discussion in 'General Discussion' started by kawasakai, Jun 26, 2018.

Tags:
  1. kawasakai

    kawasakai Active Member

    Joined:
    Sep 17, 2015
    Messages:
    31
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Germany
    cPanel Access Level:
    Root Administrator
    If I added a DNS Zone manually in WHM but forgot to set the user, can just change it in /etc/userdomains from
    Code:
    somedomain.com: nobody
    to
    Code:
    somedomain.com: somebody
    .
    So that the domain appears in somebody's cPanel account ? Only for managing the Zone, nothing else.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,231
    Likes Received:
    1,938
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @kawasakai,

    You should remove the "DNS=" entry for that domain name from the /var/cpanel/users/system file first, and then add a "DNS1=" entry to the /var/cpanel/users/$username file. The number "1" on the new DNS= line in the user file may need to be a higher number if that account already uses multiple domains. Once you make the change, run the following command:

    Code:
    /scripts/updateuserdomains
    Note that generally the better approach is to make note of any custom changes to the zone, delete it, and then add it back with ownership set to the cPanel account.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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