Awhile back, I posted a support thread in regards to ReCaptcha and Gravatar failing to connect to their respective services. As it turns out, it was just a hosting issue. Now, I have another error, but this one only pertains to ReCaptcha.
Unable to Connect to tcp://api-verify.recaptcha.net:80. Error #0: php_network_getaddresses: getaddrinfo failed: Name or service not known
Today at 2:25 AM - library/Zend/Http/Client/Adapter/Socket.php:235
My host reported that the server my site is hosted on can connect to api-verify.recaptcha.net using port 80 without a problem, showing me some trace routes through the server. He also provided me with a few php tests:
Are you running on a VPS/dedi server? If so, check your resolv.conf and see what DNS servers are listed. I ALWAYS use 126.96.36.199 and 188.8.131.52 in addition to what it configures by default (and place them at the top of the list).
I had a similar issue not to long ago on one of my VPS's and it was driving me nuts till I compared the resolv.conf of it to one of my VPS's that worked) and realized that was one thing I had forgotten to do (and looking over my checklist noticed I had skipped it).