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
Add the following lines to it:
Step 3: Enable the name resolving using DNS
#cp /etc/nsswitch.dns /etc/nsswitch.conf
Step 4: Test new name server