This question already has an answer here:
I'm running Solaris 10, I've changed DHCP to static IP configuration,
Now I can't use wget anymore, it does not honor
Take a look at the screenshot below, wget failed to resolve the DNS address, but host command succeeds.
root@sol10 / # ping bing.com ping: unknown host bing.com
root@sol10 / # cat /etc/resolv.conf domain localdomain nameserver 192.168.154.2
root@sol10 / # cat /etc/hosts # # Internet host table # ::1 localhost 127.0.0.1 localhost 127.0.0.1 sol10 220.127.116.11 mirror.opencsw.org