LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   setting hostname (https://www.linuxquestions.org/questions/solaris-opensolaris-20/setting-hostname-52190/)

skunk1 03-28-2003 11:13 AM

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,

skunk1

stickman 03-28-2003 11:43 AM

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.

jdc2048 03-30-2003 06:27 PM

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.

fishsponge 04-02-2003 01:00 AM

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. :D


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