Software >> OS >> Unix >> Solaris >> How to set or change the system hostname

 

# hostname NewHostName

edit /etc/nodename and type in the hostname in the file

edit /etc/hostname.interfacename and type in the hostname in the file