Using su, sudo or pfexec to acquire the required privileges:
Warning! This commands will first disable your network interface , if you are doing this,
you better be on the console and not on remote (ssh) connection or you will be locked out of machine.
Use scripted commands in line,that bring interface Up right after bringing it down
or stay with NWAM untill you get local console access.
# svcadm disable svc:/network/physical:nwam
# svcadm enable svc:/network/physical:default
# cp /etc/nsswitch.dns /etc/nsswitch.conf