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.

rename a host via command line

Discussion in 'General Discussion' started by mahdionline, Aug 8, 2009.

  1. mahdionline

    mahdionline Well-Known Member

    Joined:
    Oct 18, 2003
    Messages:
    127
    Likes Received:
    0
    Trophy Points:
    16
    How can I rename a host via command line instead of "modify account" function ?
     
  2. mahdionline

    mahdionline Well-Known Member

    Joined:
    Oct 18, 2003
    Messages:
    127
    Likes Received:
    0
    Trophy Points:
    16
    No answer !!! :confused:
     
  3. InstaCarma_Tech

    InstaCarma_Tech Well-Known Member

    Joined:
    Apr 22, 2009
    Messages:
    228
    Likes Received:
    1
    Trophy Points:
    18
    To change the hostname of your server via command line , use the following as 'root':
    Code:
    # hostname putnewnamehere
    Make sure that you make the change in the following files as well :

    /etc/hosts
    /etc/sysconfig/network
     
Loading...

Share This Page