I have interesting issue today:
PHP Warning: Memcache::connect(): Can't connect to ip-X.X.X.X.X.compute.internal:XXX, php_network_getaddresses: getaddrinfo failed: `Temporary failure in name resolution (0) in Memcached.class.php`on line 107
It happens from time to time and even after DNS cache (bind9) was installed and configured:
$ dig ip-X.X.X.X.X.compute.internal | grep 'Query time:' > ;; Query time: 0 msec
I can telnet, ping and dig the host without any problems. Finally, I've changed hostname to IP and the errors are not appearing anymore.
Can some one explain what could be the the reason of this issue?