Review your favorite Linux distribution.
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.


  Search this Thread
Old 03-28-2003, 11:13 AM   #1
LQ Newbie
Registered: Mar 2003
Posts: 6

Rep: Reputation: 0
setting hostname

I'm using admintool to set the hostname.

I choose the "browse" tab, and select "hosts".
then "modify" the hostname.
when I logout and log back in the host has not been
permanently changed.

it says x1-6-00-03-ba-04-b4-ec for my host (annoying).
when I use admintool as described above, it is not changing
the host name.

any ideas ???

thanks in advance,

Old 03-28-2003, 11:43 AM   #2
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
You should be able to modify /etc/nodename, /etc/hosts, and the necessary /etc/hostname.XXX files. Or you could take the long route and do the sys-unconfig. If you go the sys-unconfig route, I suggest that you read the man page first. It sometimes surprises people.
Old 03-30-2003, 06:27 PM   #3
Registered: Jul 2002
Location: Ohio, USA
Distribution: Redhat, Gentoo, Solaris, HP-UX, etc...
Posts: 391

Rep: Reputation: 30
What you are getting is most likely your MAC address, assigned to you as your hostname due to using DHCP. This can be remedied by modifiying the contents of one of the /etc/default files. I am currently away from my sun box, so I can not get the exact steps. But I believe there should be a file in that directory (/etc/default) that begins with "dhcp". On the last line *I think* there is some options that determine which network settings are configured by dhcp. The comments above it *again I think* describe what the options are and what they do. One of these is set by default to get the hostname from the dhcp server. The dhcp server is most likely configured to use the MAC address as the host name.

Sorry I can't be more specific, I haven't messed with this in about a year.
Old 04-02-2003, 01:00 AM   #4
Registered: Apr 2003
Location: Cambridge, UK
Distribution: Debian/Solaris
Posts: 147

Rep: Reputation: 15
also try setting your hostname using the hostname command... i believe this hostname change only lasts until you reboot once again, but it might be worth seeing if this is possible, nevertheless.


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
Setting Hostname abhijeetudas Linux - Networking 1 06-04-2005 07:10 AM
setting up my hostname lawkh Linux - Newbie 3 01-23-2004 04:22 PM
setting up hostname in RH9 wiredX Linux - General 9 07-15-2003 10:46 AM
setting hostname akamol Linux - General 2 07-03-2003 03:48 AM
setting up a hostname sakeeb Linux - Networking 3 04-28-2002 04:37 AM > Forums > Other *NIX Forums > Solaris / OpenSolaris

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

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