Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I keep getting this kind of error in my WP dashboard:

WP HTTP Error: Couldn't resolve host

I tend to believe it's a DNS issue although all was working OK before. What I have done is altering the /etc/hosts file and adding stuff like:               localhost.localdomain localhost          zako.vladoiu.net zako api.wordpress.org jetpack.wordpress.com downloads.wordpress.org jetpack.wordpress.org rest.akismet.com rest.akismet.com rest.akismet.com rest.akismet.com smtp.gmail.com dashboard.wordpress.com blogsearch.google.com
173.194.*.* google.com

While this fixes the error say :

WP HTTP Error: Couldn't resolve host 'rest.akismet.com'
share|improve this question

1 Answer 1

Put valid DNS server entries into /etc/resolv.conf.

It should look something like this:

nameserver 2001:db8:24fe:381::37

The actual values will be supplied by your ISP, hosting provider or datacenter. Or you can use public DNS providers such as Google Public DNS.

share|improve this answer
Ha,thanks a bunch! I am using a freeDns service: fns2.42.pl & fns1.42.pl - i'll just take the IP's and put there. Thank you! –  Alex Nov 13 '12 at 23:10
Those don't look like normal recursive DNS servers. They probably aren't. –  Michael Hampton Nov 13 '12 at 23:12

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.