Knowledgebase: VPS Hosting
Can I change my hostname on my VPS?
Posted by on 28 March 2011 07:37 PM

Yes, you may change hostname on your VPS.

To do it, follow those steps:

1. Login to your VPS via SSH client.

2. Open hosts file:

vi /etc/hosts

3. Find the line which contains your hostname:

<server shared ip> <hostname>.<domain>.<extension>

Replace this line with the following line:

<server shared ip> <new hostname>.<domain>.<extension>

4. Save this file and close it.

Notice: additional files must be updated with new hostname.

/etc/sysconfig/network

and

/proc/sys/kernel/hostname

Hostname on VPS should be changed.

The Best Web Hosting

(2 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako Fusion