LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 08-20-2005, 09:49 PM   #1
gnu noob
Member
 
Registered: Mar 2003
Location: CO
Distribution: Slackware 14
Posts: 138

Rep: Reputation: 15
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.

Last edited by gnu noob; 08-20-2005 at 10:29 PM.
 
Old 08-21-2005, 12:49 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,498

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
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.
 
Old 08-21-2005, 09:51 AM   #3
gnu noob
Member
 
Registered: Mar 2003
Location: CO
Distribution: Slackware 14
Posts: 138

Original Poster
Rep: Reputation: 15
ok, I don't see /etc/nodename. Do I need to create it? What should it contain?

Thanks for the help
 
Old 08-21-2005, 11:09 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,498

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
man nodename
 
Old 08-21-2005, 11:54 PM   #5
gnu noob
Member
 
Registered: Mar 2003
Location: CO
Distribution: Slackware 14
Posts: 138

Original Poster
Rep: Reputation: 15
worked like a charm, thanks jlliagre!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
losing audio PennyroyalFrog Linux - Newbie 5 05-23-2004 05:52 PM
Losing Preferences LinuxBlackBox LQ Suggestions & Feedback 1 05-03-2004 07:51 AM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 05:01 PM
losing the display c0c0deuz Linux - General 0 02-26-2002 07:02 PM
Losing IP methodz Linux - General 10 05-18-2001 06:17 AM


All times are GMT -5. The time now is 09:01 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration