PDA

View Full Version : hostname location at startup?


fos
12-22-2006, 03:40 PM
Where is the hostname saved so it can be set at startup? Is it located in /etc/inittab or somewhere else?

re: at prompt : fos@macsshack I can set it after boot by issuing the command: hostname macsshack.localhost I would like it set automatically.

Thank you,
fos

patrick
12-22-2006, 05:33 PM
I don't have a machine handy but -- /etc/hostname?

fos
12-22-2006, 07:22 PM
Thanks for the tip, Patrick.

CentOS doesn't have /etc/hostname but it does have /etc/hosts

I tried changing /etc/hosts but it didn't do what I wanted. I kludged a solution by adding a line to rc.local

fos....