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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem with changing hostname

Discussion in 'General Discussion' started by Motamedi, Mar 4, 2018.

Tags:
  1. Motamedi

    Motamedi Well-Known Member

    Joined:
    Mar 14, 2015
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Iran , Tehran
    cPanel Access Level:
    Root Administrator
    hello

    my problem is after change hostname cpanel , when entered domain.com/cpanel to web browser , redirect to old hostname

    example : old hostname : server.domain1.com changed to server.domain2.com

    when entered " userdomain.com/cpanel " to web browser , redirect to old hostname " server.domain1.com "

    hostname changed to " change hostname cpanel " and /etc/hosts , but my problem not resolve

    please help me for solve this problem

    thanks ....
     
  2. thowden

    thowden Member

    Joined:
    May 17, 2013
    Messages:
    10
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Hi

    Did you update your DNS records ?

    You mention /etc/hosts which is a local Windows DNS record and not the public DNS record.

    Tony
     
  3. HostingH

    HostingH Well-Known Member

    Joined:
    Jan 13, 2008
    Messages:
    122
    Likes Received:
    15
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Hello,

    If you are using centos 7 then need to change/set new hostname in following files,
    /etc/sysconfig/network add HOSTNAME=server.domain.com then /etc/hosts >> IP server.domain.com server then after run command, hostname server.domain.com and restart network service.

    That's all
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,247
    Likes Received:
    1,759
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Additionally, try clearing your browser and DNS cache on your computer after making the change to rule out the possibility that you are viewing cached data.

    Thank you.
     
Loading...

Share This Page