Wednesday, January 9, 2013

Changing DNS client property in Solaris 11

1. Backup /etc/resolv.conf
2. Backup the DNS client info using the below command:
 
    svccfg -s network/dns/client listprop config >> /var/tmp/dns.client.info.01072013
3. Run the below command to change the DNS servers:
svccfg -s network/dns/client setprop config/nameserver = net_address: "(PrimaryDNS-IP SecondaryDNS IP)"
4. Refresh the DNS client service:

nscfg export svc:/network/dns/client:default
svcadm refresh name-service/switch
5. Verify by listing the DNS client properties
    svccfg -s network/dns/client listprop config
6. Verify by looking at /etc/resolv.conf
    cat /etc/resolv.conf
7. Verify by lookup for a server
   Eg:
     nslookup HOST

No comments:

Post a Comment