first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

Ubuntu/Debian Linux: How To Change the Hostname

Edit this file:

/etc/hostname

Then run this command:

/etc/init.d/hostname.sh start

Verify that the name is changed with some of these commands:

uname -n
hostname -a
hostname -s
hostname -d
hostname -f
hostname

For more infomation, see:

“How to change the hostname of a Linux system”
http://www.ducea.com/2006/08/07/
    how-to-change-the-hostname-of-a-linux-system/

“Change hostname or Server name of a Linux Machine”
http://www.debianadmin.com/
    change-hostname-or-server-name-of-a-linux-machine.html
mod date: 2007-10-08T23:35:47.000Z