The name service switch has default search criteria, as explained in Default Search Criteria for the Name Service Switch.
In this procedure, you want the redefine the search mechanism for the host database when the information is not found at the first source. The search mechanism should stop instead of proceeding to search the next source.
For more information about obtaining the appropriate rights to perform specific tasks, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .
# svccfg -s name-service/switch listprop config/host config application config/network astring "files dns nis"
# svccfg -s system/name-service/switch svc:/system/name-service/switch> setprop config/host = \ astring: "files [NOTFOUND=return] dns nis" svc:/system/name-service/switch> quit
With this configuration, the search mechanism for the network database uses the default search criteria for the SUCCESS status and UNAVAILABLE status. However, if the information is not found, the search stops immediately.
# svcadm refresh name-service/switch