See Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.
# hostname name
The hostname and domainname commands enable you to permanently set the host name and domain name. When you use these commands, the corresponding SMF properties and associated SMF service are also automatically updated.
For more information, see the hostname(1), domainname(8), and nodename(5) man pages.