Simply typing "hostname" will give you your hostname.
Typing "hostname mercury.planet.net" (for example) will assign your hostname to 'mercury.planet.net'.
Placing all this in /etc/sysconfig/network makes it permanent. Here is mine:
Note that this is my local network and it is not available on the Internet. However, you need to do this for your local network to make Apache and ftp work.
Don't forget your hosts file, /etc/hosts:
#127.0.0.1 localhost.localdomain localhost #sshd fails here.
127.0.0.1 proton.kc5yfl.net localhost
192.168.0.1 proton.kc5yfl.net proton
192.168.0.253 graviton.kc5yfl.net graviton
192.168.0.252 neutron.kc5yfl.net neutron
192.168.0.251 quark.kc5yfl.net quark
192.168.0.250 photon.kc5yfl.net photon
192.168.0.249 meson.kc5yfl.net meson
192.168.0.248 lepton.kc5yfl.net lepton
My other machines are named for atomic particles, but you can use the Table of Elements (common) or the Moons of the Solar System (I think there are 160 odd).
Try not to assign user names for machine names, or your users/passwords will start getting confused with your machine/domain names.
Each machine has to have a name, and then you must also name your network. And since you are a network, then .net is obvious.
Last edited by mhearne; 06-13-2005 at 12:10 AM.