Go Back   HostV Community - VPS Hosting Forums > HostV Support > HOW-TOs

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-31-2007, 02:16 PM
KuJoe's Avatar
Member
 
Join Date: Dec 2007
Location: Tampa, FL.
Posts: 94
Send a message via AIM to KuJoe
Default How To: Prevent hostname from changing after VPS restart.

For those who are tired of changing their hostname on thier VPS after a restart or when it goes down and comes back up. This isn't a big deal for most, but I use the hostname for Virtuozzo access instead of the IP so it's more a convenience thing for me. This also stops some of those e-mail errors about root@vps###.hostv.com and cpanel@vps###.hostv.com does not exist.

After editing the hostname (WHM is the easiest way IMO, but there are plenty of other options).

Login to SSH as root and navigate to etc/sysconfig and type: chattr +i network.

Code:
cd ..
cd etc/sysconfig
chattr +i network
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-31-2007, 02:40 PM
Moderator
 
Join Date: Dec 2007
Posts: 55
Default

Please submit a ticket with the hostname you wish to use. We can change this from our end and it should keep that hostname.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-31-2007, 08:52 PM
KuJoe's Avatar
Member
 
Join Date: Dec 2007
Location: Tampa, FL.
Posts: 94
Send a message via AIM to KuJoe
Default

I tried that and when I was told it was set it changed after the server was restarted, I've tested the method above and it worked.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-23-2008, 07:31 PM
Member
 
Join Date: Apr 2008
Posts: 55
Default

Is there really any reason to change your hostname from the default? vpsXXX (XXX are numbers).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-23-2008, 09:24 PM
Moderator
 
Join Date: Dec 2007
Posts: 55
Default

This is not required however some users like to have their hostname setup using a domain name that is pointing to the server.

ex: myvps.mydomain.com

WHM will allow you to change the hostname to something different but when the VPS is restarted it will be reset. This is not a limitation of our service but instead how the Virtuozzo works.

Let us know if you need any further assistance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 08-01-2008, 01:31 AM
Moderator
 
Join Date: Feb 2008
Posts: 61
Default

Hi,

The reason why the hostname changes after vps restart is just due to the fact that a hostname is set in virtuozzo config files when the vps is setup initially. So unless we change that setting and update it to the new hostname, virtuozzo will set the hostname of the vps to the old hostname.

The chattr +i command works as it sets the file unchangeable. Thus virtuozzo is unable to update the hostname. But the best way to approach this would be to just let us know via the helpdesk that you want to change the hostname and we can change it in the virtuozzo settings right away.

Cheers !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 11:13 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15