Software >> OS >> Unix >> Solaris >> 11 >> How to change machine hostname

 

check currenet hostname

# svccfg -s system/identity:node listprop config
config                       application
config/enable_mapping        boolean     true
config/ignore_dhcp_hostname  boolean     false
config/loopback              astring
config/nodename              astring     CurrentHostName

change the hostname

# svccfg -s system/identity:node setprop config/nodename="NewHostName"

refresh and restart the system identity service# svcadm refresh system/identity:node

# svcadm restart system/identity:node