Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Jun 2005
    Posts
    86

    Unhappy Server's hostname won't change!

    This is a weird one. I go into WHM, networking setup, and change the hostname to what I want it to be. I go into SSH and type 'hostname' - it's the new hostname. So far so good.

    But whenever the machine reboots, it changes the hostname back to the old one!!!

    I tried searching for similar problems and went through all the steps listed in this thread:
    http://forums.cpanel.net/showthread....light=hostname
    ... but still the same problem happens, upon reboot, the hostname is reset to what it was before. Something seems to be hardcoded into a cPanel setting somewhere. This seems like a bug in cPanel, and if we can work out what it is, it should be submitted to bugzilla.

    Any ideas??

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Are you using a VPS? If so, then that's controlled by the VPS software and you need to change it in whatever control panel you have for that or get your provider to fix it.

    It's unlikely to have anything to do with cPanel and everything to do with the OS configuration.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Jun 2005
    Posts
    86

    Default

    Well I am using a VPS, and the relevant control panel is VZPP. However I'd had a thorough look through it and although it displays the hostname, it seems to have no option to set the hostname; I'm presuming it's just somehow reading it from the OS by interfacing with the OS, just as it checks the root password.

    If you think of Virtuozzo as the equivalent of a phyiscal machine (an analogy which I'm not sure is completely correct), what you're sort of saying is that to change the hostname on a normal server, you'd log in to the BIOS and change it there. But you wouldn't you'd change it in the OS. So surely you'd change a VPS's hostname in the OS, no?

    The OS, BTW, is CentOS with WHM/cPanel running on it.

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    So surely you'd change a VPS's hostname in the OS, no?
    No. As I said, you have to speak to your hosting provider regarding hostname changes.

    VPS's are far from the equivalent of a real server, they just attempt to emulate one and under certain circumstances, not too well.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    1,931

    Default

    a hostname needs to be changed at the hardware node only your VPS provider can do this
    Lowest Host/Empire Technology LLC
    Affordable hosting solutions http://empire-hosting.net
    List Your hosting site FREE in http://hostgeneration.com

  6. #6
    Member
    Join Date
    Jun 2005
    Posts
    86

    Default

    But surely what determines the hostname of a machine is what the OS outputs when queried for the hostname. Could you explain to me how it is NOT the OS's decision what the machine's hostname is?

  7. #7
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    You need to ask such questions of Virtuozzo and your hosting provider (have you asked them yet?), as it is they who have developed their software to work that way.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  8. #8
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    1,931

    Default

    But surely what determines the hostname of a machine is what the OS outputs
    becuse it is set at the node the OS has nothing to do with it
    Lowest Host/Empire Technology LLC
    Affordable hosting solutions http://empire-hosting.net
    List Your hosting site FREE in http://hostgeneration.com

Similar Threads & Tags
Similar threads

  1. Hostname change?
    By JesseLabrocca in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-09-2011, 11:22 AM
  2. change hostname
    By forquato in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-29-2009, 08:05 PM
  3. Nameserver ip won't change
    By breko in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-30-2009, 01:04 PM
  4. hostname change
    By jandafields in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-14-2008, 05:30 PM
  5. Hostname Change
    By manokiss in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 03-06-2003, 10:40 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube