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 22.214.171.124 zako.vladoiu.net zako 126.96.36.199 api.wordpress.org 188.8.131.52 jetpack.wordpress.com 184.108.40.206 downloads.wordpress.org 220.127.116.11 jetpack.wordpress.org 18.104.22.168 rest.akismet.com 22.214.171.124 rest.akismet.com 126.96.36.199 rest.akismet.com 188.8.131.52 rest.akismet.com 184.108.40.206 smtp.gmail.com 220.127.116.11 dashboard.wordpress.com 18.104.22.168 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.