Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

wget is not working properly on my debian server.

if I wget, it says it cannot resolve the host, when I ping, I receive a successful pong and when I wget it works.

I cannot wget anything else than ... pretty weird.

share|improve this question
How are you using wget ? – petrus Sep 27 '11 at 9:59
Can you add in the output of wget -O /dev/null -d – SmallClanger Sep 27 '11 at 10:05
root@dragon:/etc# wget -O /dev/null -d #RETURN# DEBUG output created by Wget 1.12 on linux-gnu. #RETURN# --2011-09-27 13:18:55-- #RETURN# Resolving failed: Name or service not known. #return# wget: unable to resolve host address `' #return# root@dragon:/etc# – Jack Lomberg Sep 27 '11 at 18:19
how does it help ? (added #RETURN# because serverfault doesn't allow lines return) – Jack Lomberg Sep 27 '11 at 18:20
wget IP_OF_GOOGLE works tho... so I really don't know what's the problem – Jack Lomberg Sep 27 '11 at 18:44

1 Answer 1

Check your DNS cat /etc/resolv.conf, and the table lookup for host names cat /etc/hosts. Try changing to Google's DNS:

echo "" > /etc/resolv.conf
echo "" >> /etc/resolv.conf
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.