Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
When the time is 0 msec, do you get an answer ? –  Sandman4 Feb 21 '12 at 17:51
No, what do you mean? –  Roman Newaza Feb 22 '12 at 0:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.