IainWallace
asked on
Changing hostname of Sun E250
I'm trying to change the hostname of an E250, but everytime I reboot it shows the old name. The things I'm doing are
vi /etc/hosts and change name in there
vi /etc/hostname.hme0 and change name in there
hostname newname
What am I missing?
I would be greatful for a very quick response.
Thanks
vi /etc/hosts and change name in there
vi /etc/hostname.hme0 and change name in there
hostname newname
What am I missing?
I would be greatful for a very quick response.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
hostname Command
Purpose
Sets or displays the name of the current host system.
Syntax
/usr/bin/hostname [ HostName ] [ -s ]
Description
The /usr/bin/hostname command displays the name of the current host
system. Only users with root user authority can set the host name.
The mkdev command and the chdev commands also set the host name permanently.
Use the mkdev command when you are defining the TCP/IP instance for
the first time.
Purpose
Sets or displays the name of the current host system.
Syntax
/usr/bin/hostname [ HostName ] [ -s ]
Description
The /usr/bin/hostname command displays the name of the current host
system. Only users with root user authority can set the host name.
The mkdev command and the chdev commands also set the host name permanently.
Use the mkdev command when you are defining the TCP/IP instance for
the first time.
hi IainWallace,
Could you please tell me, why give me a Grade B, thanks!
==========
yuzh
Could you please tell me, why give me a Grade B, thanks!
==========
yuzh
ASKER
You have to change /etc/nodename too.