Ping returns unknown host

If your server returns unknow host errors when you try to ping some website, or wget returns unable to resolve host address, it’s most probably that you don’t have a valid DNS settings in /etc/resolv.conf

wget: unable to resolve host address
ping: unknown host

If you’r host didn’t provided their nameservers that you can use – you can use one provided by
All you need to do is edit file /etc/resolv.comf and add their nemeservers into the file:


Save the changes and you’re ready to go!
(No need to restart anything)

How do you remove Picasa albums/pictures from Gallery on Samsung Galaxy S4
How to install IonCubeLoader without recompiling apache

Leave a Reply

Your email address will not be published / Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.