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:
127.0.0.1 localhost.localdomain localhost 188.8.131.52 zako.vladoiu.net zako 184.108.40.206 api.wordpress.org 220.127.116.11 jetpack.wordpress.com 18.104.22.168 downloads.wordpress.org 22.214.171.124 jetpack.wordpress.org 126.96.36.199 rest.akismet.com 188.8.131.52 rest.akismet.com 184.108.40.206 rest.akismet.com 220.127.116.11 rest.akismet.com 18.104.22.168 smtp.gmail.com 22.214.171.124 dashboard.wordpress.com 126.96.36.199 blogsearch.google.com 173.194.*.* google.com
While this fixes the error say :
WP HTTP Error: Couldn't resolve host 'rest.akismet.com'
Put valid DNS server entries into
It should look something like this:
nameserver 203.0.113.187 nameserver 198.51.100.32 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.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.