changing domain name in /etc

Hi, Im trying to change my domain name in my solaris as below:

but it keeps coming back to be "unknown"

Im changing /etc/inet/hosts.e1000g0\and also
i added one line to /etc/nodename

my vm (i have my solaris on VM)ip address is 192.168.1.103 and Im putting solar as a name for it

192.168.1.103 solar

in both files in above. but after reboot it goes back to unknown :frowning:

any idea ?

* echo "mysolaris" > /etc/nodename 
* sed '/^PARAM_REQUEST/s/12,//' /etc/default/dhcpagent>dhcpagent.tmp&& mv -f dhcpagent.tmp /etc/default/dhcpagent
* reboot

regards
ygemici

Thanks, i will give a try!