Put this in /etc/host.conf
Code:
order hosts, bind
multi on
That 'order' line tells it to check /etc/hosts first, then use dns. You'd better give it some dns servers. Add these lines to /etc/resolv.conf
Code:
nameserver 208.67.222.222
nameserver 208.67.220.220
You should be getting dns details from your isp, but that's opendns.org. See if anything works then. Try something in a terminal also, like ping, traceroute, whois, nslookup, etc. They all have man pages. Pick some random ip, not 192.168.<anything>, 10.0<anything>, or 172.16.<anything>, which are internal networks Here's a few examples
Code:
nslookup cr.yp.to
...
Non-authoritative answer:
Name: cr.yp.to
Address: 131.193.32.108
Name: cr.yp.to
Address: 131.193.32.109
bash-4.4$ nslookup chopped.ie
...
Non-authoritative answer:
Name: chopped.ie
Address: 174.129.25.170