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 downloads.sourceforge.net
ping: unknown host downloads.sourceforge.net

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

nameserver 208.67.220.220
nameserver 208.67.222.222

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.