Tuesday, July 17, 2007

Changing the hostname to a Unix box

The following simple instructions can help you change your linux box / server hostname with ease , the first option is permanent , option number two will change the host name but changes wont be reflected after a reboot. Check it out
As described above, there are 2 ways to change the hostname of a linux box manually or by terminal ( real man do it by terminal )

This first option will save the changes even after a reboot:

Edit:

vi /etc/sysconfig/network

HOSTNAME=.

Second option:

vi /proc/sys/kernel/hostname

but that won't be saved when you reboot.

No comments: