Setup DNS Client Solaris 11
Check service DNS Client
# svcs -a | grep dns
disabled May_07 svc:/network/dns/client:default
disabled May_07 svc:/network/dns/multicast:default
disabled May_07 svc:/network/dns/server:default
Setup DNS Client
# svccfg -s network/dns/client
svc:/network/dns/client> setprop config/domain = astring: (“cimbniaga.co.id”)
svc:/network/dns/client> setprop config/search = astring: (“cimbniaga.co.id”)
svc:/network/dns/client> setprop config/nameserver = net_address: (172.17.250.29 172.27.250.29)
svc:/network/dns/client> select network/dns/client:default
svc:/network/dns/client:default> refresh
svc:/network/dns/client:default> quit
# svccfg -s system/name-service/switch
svc:/system/name-service/switch> setprop config/host = astring: “files dns”
svc:/system/name-service/switch> select system/name-service/switch:default
svc:/system/name-service/switch:default> refresh
svc:/system/name-service/switch:default> quit
# svcadm enable network/dns/client
# svcadm enable system/name-service/switch
Testing Domain
# dig cimbniaga.co.id
# nslookup cimbniaga.co.id
DNS DEV CIMB NIAGA
==================
DNS1 = 10.25.131.11
DNS2 = 10.25.131.12
DNS PROD CIMB NIAGA
==================
DNS1 = 172.17.250.29
DNS2 = 172.27.250.29