change hostname

Hello,

How can I change the hostname of my Solaris?
Thanks!

fancyqin
fancyqinAsked:
Who is Participating?
 
OtetelisanuConnect With a Mentor Commented:
Change in /etc/host
Example
#
# Internet host table
#
127.0.0.1       localhost
10.5.7.212      newname loghost

and in the hostname.hme0 write the
newname

andhostname newname

and you can reboot.

0
 
fancyqinAuthor Commented:
I did it!
Thanks.
0
 
fancyqinAuthor Commented:
I did it!
Thanks.
0
 
haggarCommented:
The information is not quite completely accurate. You also should change the hostname in the following files:

/etc/net/ticlts/hosts    
/etc/net/ticots/hosts    
/etc/net/ticotsord/hosts
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.