Two days ago I've noticed that our servers (nginx + php-fpm) stopped working because curl function start return CURLE_COULDNT_RESOLVE_HOST. After reboot everyting become working again. But now, after about a day of work, I've noticed the same error.
When I ssh to a server $ wget http://example.com
is working. I can also request http://example.com from php running as cli. But when I try to curl http://example.com from php in web server I get CURLE_COULDNT_RESOLVE_HOST.
I made reboot again and it is working now... But I think that tomorrow I will have to made another reboot.
Any ideas about root cause?