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 domaindns.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
Output:
Server: xx.oracle.com Address: 10.xx.xx.223 Non-authoritative answer: Name: dns.oracle.com Address: 10.xx.xx.224
Comments
Tags: Configuration For Solaris 10, Configuration For Solaris 10 And Older Versions, DNS, DNS (Domain Name System) Configuration For Solaris 10 And Older Versions, DNS Solaris 10, Domain Name System, Solairs, Solairs 10