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!

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:
    73
    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:
    12
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. HostingH

    HostingH Well-Known Member

    Joined:
    Jan 13, 2008
    Messages:
    125
    Likes Received:
    17
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    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