wget is not working properly on my debian server.
if I wget http://www.google.com, it says it cannot resolve the host, when I ping google.com, I receive a successful pong and when I wget http://www.debian.org it works.
I cannot wget anything else than debian.org ... pretty weird.
wget -O /dev/null -d http://www.google.com
Check your DNS cat /etc/resolv.conf, and the table lookup for host names cat /etc/hosts. Try changing to Google's DNS:
echo "184.108.40.206" > /etc/resolv.conf
echo "220.127.116.11" >> /etc/resolv.conf
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
3 years ago