Thursday, February 22, 2007

Change the Hostname of a Workstation

Last week, I was asked how to change the hostname of a workstation. There were a few modifications to some of the files in the /etc directory. In this example, I used the common vi editor or nedit to make the changes.

Here are the events that took place. I assumed the old workstation's hostname was esofthub

# vi /etc/nodename
# vi /etc/hostname.hme0
# vi /etc/inet/hosts
# vi /etc/inet/ipnodes
# mv /var/crash/esofthub /var/crash/newesofthub
# init 6

2 comments:

omphile said...

in solaris 9 or lower

/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts

esofthub said...

omphile -- Thanks for the comment.