Solaris 10 – Hostname

To Change the hostname temporary, type the command hostname:
# hostname NewHostname

To change the hostname permanently:
1. Edit /etc/nodename
Enter the new hostname in nodename.
2. Edit /etc/hostname.PrimaryNIC
Edit the primary network device.
example:
# vi /etc/hostname.nxge0
3. Edit /etc/hosts
Enter the IP address of the primary NIC and hostname.
4. Reboot