Solaris 11.2 Setup DNS client


# svccfg -s dns/client setprop config/nameserver = net_address: 192.168.1.1
# svccfg -s dns/client setprop config/domain = astring: “myhost.org”
# svccfg -s name-service/switch setprop config/host = astring: \“files dns\”
# svcadm refresh name-service/switch
# svcadm refresh dns/client

Alternatively, you can just edit the /etc/resolv.conf and /etc/nsswitch.conf manually, and import them back to SMF.

# nscfg import -f svc:/system/name-service/switch:default
# nscfg import -f svc:/network/dns/client:default
# svcadm refresh dns/client

No comments: