LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Losing Hostname (https://www.linuxquestions.org/questions/solaris-opensolaris-20/losing-hostname-355355/)

gnu noob 08-20-2005 09:49 PM

Losing Hostname
 
Frequently when I reboot, I get a hostname of unknown. It really messes with all my configs and doesn't allow anyone to login except root. How can I keep the hostname from changing. The uname -S hostname gets annoying after awhile.


btw, I'm running Solaris 10 for x86.

jlliagre 08-21-2005 12:49 AM

It looks like your machine is requesting a hostname to a dhcp server which doesn't returns any.
You can either fix the dhcp server configuration, or make sure /etc/nodename contains the hostname you want, which should be sufficient with Solaris 10.

gnu noob 08-21-2005 09:51 AM

ok, I don't see /etc/nodename. Do I need to create it? What should it contain?

Thanks for the help

jlliagre 08-21-2005 11:09 AM

man nodename

gnu noob 08-21-2005 11:54 PM

worked like a charm, thanks jlliagre!!


All times are GMT -5. The time now is 07:35 PM.