Showing posts with label resolv. Show all posts
Showing posts with label resolv. Show all posts

Wednesday, November 5, 2014

How to modify /etc/resolv.conf on Solaris 11

Instead using nano/vi, you'll need to use configuration tool to modify /etc/resolv.conf -file on Solaris 11

Fireup the configuration tool
root@yourserver:/svccfg -s dns/client

listprop config -- lists current configuration
delprop xxxx -- deletes current configuration
setprop xxxx -- sets current configuration

exit -- when done

After this restart the network/dns services

svcadm refresh dns/client
svcadm restart dns/client
svcadm refresh name-service/switch