host name?

Hello,
after I changed the hostname (solaris 8), reboot machine it still show old hostname. I try to ping to the new hostname and it alive. Please tell me what I missed.

Thanks guys,:frowning:

What steps did you take to change the hostname?

I use vi to edit the host file. any ideas will greatly appreciated?.

if you're talking about the /etc/hosts file, thats not enough to change the host name. I believe on Solaris there is a sysunconfig utility located probably in /usr/sbin that will reconfigure the hostname for you (I'm primarily HP). If that location isn't right, just do a find from the command line to locate where its at.

Running that should take you through about the same steps as when you first brought the OS up (asking IP address, etc.) Then it will reboot and the new name should take effect.

Hope this helps ...

sysunconfig is kind of extreme for just a hostname change. I usually just change the entry in /etc/hosts, and change /etc/hostname.hme0 (or whatever your net card is e.g., hostname.le0 for lance ethernet equipped Suns)

Doeboy,
that's what I did. but it doesn't work, I going to use the syssunconfig to see it works, will update tomorrow morning.
thanks for all the reponse, guys.

I forgot.... /etc/nodename on Suns probably should be changed as well. :o

doeboy,
that does it. /etc/nodename.
thanks again...