Tuesday, March 27, 2007

Solaris 9 - Change your hostname

Are you a student of or new to Solaris and all you want to do is change your hostname but can't find any help on the internets because everyone is always so cryptic on posting help? Well look no further. Just take a look below. I cat'd all the files that I have that are required to change the hostname. If /etc/nodename is missing, just create it. My hostname is "neptune". You can choose anything you want.

Note:
- I am in a Windows 2003 Server Active Directory environment and reserved the x.x.x.13 address ahead of time.

[root@neptune]# cat /etc/nodename
neptune
[root@neptune]# cat /etc/hostname.hme0
neptune
[root@neptune]# cat /etc/inet/hosts
#
# Internet host table
#
127.0.0.1 localhost
192.168.1.13 neptune
[root@neptune]# cat /etc/net/ticlts/hosts
# RPC hosts
neptune neptune
[root@neptune]# cat /etc/net/ticots/hosts
# RPC hosts
neptune neptune
[root@neptune]# cat /etc/net/ticotsord/hosts
# RPC hosts
neptune neptune
[root@neptune]#

Reboot when you are done for changes to take effect.

1 comment:

Anonymous said...

Thank you, you made it very easy