[quote=dellroxy;302295699]
OpenSolaris depend on NIS service when need to determine to resolve the domain name
Sorry but DNS lookups does not depend on NIS, you can use NIS for name resolution within your own network but that won't help resolve names on the Net.
If you can ping something using its IP address the then the network is okay as you showed:
ping 4.2.2.2
4.2.2.2 is alive
The problem is due to failed DNS lookups as was shown:
# ping
www.yahoo.com
Ping: unknown host
Yahoo!
As has already been stated you need to mention dns in the hosts line in
/etc/nsswitch.conf and you need to populate the
/etc/resolv.conf with at the very least a line specifying a DNS server's IP address, e.g.:
nameserver 4.2.2.1
If you do not know what DNS server you should be using, then use the ones provided by
OpenDNS | Providing A Safer And Faster Internet so the lines in /etc/resolv.conf would be:
nameserver 208.67.222.222
nameserver 208.67.220.220
Confirm you can ping them and you should be up and running if not confirm that no firewall is blocking things by running:
$ telnet 208.67.222.222 53
If you see the response as below:
Trying 208.67.222.222...
Connected to 208.67.222.222.
Escape character is '^]'.
Then you have connected to the DNS server at 208.67.222.222 on port 53, if it just hangs and you do not see the "Escape caharacter is '^'" then you have not managed to connect to the DNS server and a firewall may be blocking port 53.
Tony Fuller