How to set hostname?

Christian Convey christian.convey at gmail.com
Thu Dec 20 14:37:00 UTC 2007


When I installed FC7, I let it use the installer's default hostname.

I need to change it from a command line, but I can't find any file
under "/etc" that contains the string "new-host-2".

In /etc/sysconfig/network, I have this:
   HOSTNAME=localhost.localdomain

So does anyone know where that string "new-host-2" is coming from?  Is
it just a default that the system will use until I alter
/etc/sysconfig/network to have a hostname other than
"localhost.localdomain"?

Thanks,
Christian




More information about the users mailing list