Hostname in Solaris 10
Changing the hostname in Solaris 10
To change the hostname permanenly:
1. Edit /etc/nodename
enter the new hostname in nodename.
2. Edit /etc/hostname.PrimaryNIC.
edit the primany network device.
example:
# vi /etc/hostname.nxge0
3. Edit /etc/hosts
enter the IP address of the primary NIC and hostname.
Note: this file is read only, force save it – wq!
4. Reboot
To Change the hostname temporary, type the command hostname:
# hostname NewHostname