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 "188.8.131.52" > /etc/resolv.conf
echo "184.108.40.206" >> /etc/resolv.conf
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the
terms of service.
1 year ago