If your solaris machine is not configured for DHCP, you need to set up the files
/etc/resolv.conf and /etc/defaultrouter.
/etc/defaultrouter should contain the IP number of your gateway.
/etc/resolv.conf should contain up to 3 lines looking like
nameserver 212.100.224.80
nameserver 216.220.40.243
Once DNS is pointing to the right servers you can run nslookups running this command:
/usr/sbin/nslookup google.com