Setting the hostname

To set the hostname of the server:

# hostname "example.com"

Replace example.com with the actual name.

This changes the hostname immediately, but only until the next reboot. To make this change persist:

# echo "example.com" > /etc/myname

Again, replace example.com with the actual name.