DNS Configuration : Configure DNS in Solaris 11
APPLIES TO : Solaris 11 DNS settings.
1. Set the DNS IP's or Name server address
svccfg -s network/dns/client setprop config/nameserver = net_address: "(192.168.10.10 192.168.10.11 192.168.10.12)"
2. Set the fully qualified domain name string
svccfg -s network/dns/client setprop config/domain = astring: in.mycompany.com
3. Set where to search for nslookups
svccfg -s network/dns/client setprop config/search = astring: '("in.mycompany.com" "in.myoldcompany.com" "in.previouscompany.com")'
4. Refresh the settings and enable it.
svcadm refresh dns/client
svcadm enable dns/client
5. Export the configuration.
nscfg export svc:/network/dns/client:default
6. Verify/List the configuration
svccfg -s network/dns/client listprop config
cat /etc/resolv.conf
7. Commands to change DNS resolver settings:
svccfg -s name-service/switch setprop config/ipnodes = astring: '("files dns")'
svccfg -s name-service/switch setprop config/host = astring: '("files dns")'
svccfg -s name-service/switch 'setprop config/host = "files dns [TRYAGAIN=0]"'
svccfg -s dns/client 'setprop config/options = "timeout:3 attempts:1"'
svcadm refresh name-service/switch
8. List nsswitch configuration
svccfg -s name-service/switch listprop config
egrep '^(hosts|ipnodes):' /etc/nsswitch.conf
~Judi~
No comments:
Post a Comment