SoftDux Hosting
Please Login or Register

Knowledgebase

How do I change my VPS's hostname

If you want to change your Virtual Private Server's hostname, you first need to login to your VPS via SSH.

  1. Then, edit /etc/sysconfig/network and change the current hostname to the new hostname. You can either use pico, or nano, or vi, or any other editor that you're familiar with
  2. Once done, edit /etc/hosts and update the hostname there as well.
  3. Finally, run hostname {new.hostname} to change it globally.
  4. You may need to reboot for the kernel to see the new hostname as well.


Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
What is Brust RAM (Views: 309)

Quick Navigation

Client Login

Email

Password

Remember Me

Search



Follow Us on Twitter