为 Solaris 11 添加 DNS 解析服务器

本来直接修改 /etc/resolv.conf 在 Solaris 11里要修改 dns/client 服务了。

# svccfg -s network/dns/client listprop config

# svccfg -s network/dns/client setprop config/domain = astring: in.oracle.com

# svccfg -s network/dns/client setprop config/nameserver = net_address: “(10.1.1.2 10.1.1.3)”

# svccfg -s network/dns/client setprop config/search = astring: ‘(“test.a” “test.b”)’

# svccfg -s name-service/switch setprop config/host = astring: '("files dns")'

然后重新刷新服务 
svcadm refresh dns/client
svcadm refresh name-service/switch