DNS (Domain Name System) configuration in Solaris

| Jul 17, 2014

Step 1: Check /etc/resolv.conf file

/etc/resolv.conf file includes the primary and secondary DNS server IP address for Solaris system.

Step 2: Open & Edit /etc/resolv.conf

#vi /etc/resolv.conf

Add the following lines to it:

nameserver      10.xx.xx.223
nameserver      10.xx.xx.224
search domain	dns.oracle.com

Step 3: Enable the name resolving using DNS

#cp /etc/nsswitch.dns /etc/nsswitch.conf

Step 4: Test new name server

#/usr/sfw/sbin/nslookup dns.oracle.com


Server: xx.oracle.com
Address:  10.xx.xx.223
Non-authoritative answer:
Name:    dns.oracle.com
Address:  10.xx.xx.224