I've got 2 machines on the same sub-net running Debian 5.0. They use the same DNS (/etc/resolv.conf), they route to the same gateway (#route) and they have the same iptables settings (#iptables -L). I can ping from both of them, both to IP addresses and to host names. I can run #host www.google.com and get the same results on both of them. But the problem is that on one of them, I can't wget or curl.
So on machine 1 everything is OK, but on machine 2 (with the same settings as machine 1) I can't wget or curl.
The error I get is:
# wget google.com --2009-10-20 16:38:36-- http://google.com/ Resolving google.com... failed: Name or service not known. wget: unable to resolve host address `google.com'
But on machine 1 it has no problem to wget or curl and returns:
# wget google.com --2009-10-20 16:43:55-- http://google.com/ Resolving google.com... 220.127.116.11, 18.104.22.168, 22.214.171.124 Connecting to google.com|126.96.36.199|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently ... Saving to: `index.html.3'
I'm hoping someone here can point me in the right direction here so that I can possibly fix this issue :)