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!

Can't change primary domain

Discussion in 'General Discussion' started by switch998, Jul 17, 2016.

  1. switch998

    switch998 Registered

    Jul 17, 2016
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    I'm encountering an unusual error when attempting to update an account in WHM. For some reason, the account's current primary domain is set as an IP address and I'd like to update it to a valid domain. When I attempt to change it to '', WHM fails with an error:
    "Sorry, the given old domain is an invalid domain"

    So, I cannot correct my primary domain because the old one is invalid.

    I should also mention that I am still able to create new accounts with IP addresses for the domain, however I can not modify anything or delete them with the web GUI due to this bug.

    Is there a script that I can run over SSH to alter the primary domain on the account without encountering this error? I really need a workaround for this issue.
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

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

    Could you review Guide To Opening An Effective Forums Thread and let us know the version of cPanel installed on your system? I'm currently unable to reproduce the issue of creating a new account using the IP address as the domain name:

    (XID r8bmft) “” is not a valid domain name per <a href="">RFC 1035</a>.
    As for the removal, try to manually replace the entries for this account in the /var/cpanel/users/$username and /var/cpanel/userdata/$username/* files. Then, run the "/scripts/updateuserdomains" command and let us know if the issue persists when modifying the account.

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

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