Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Last night we were having some serious server events. At first it appeared that our issue was with google ( We would run ping and at some point we would have some packet loss. At about the same time our systems would pop a DNS getaddr() exception.

Separately; this is strange to me because I have had to flush my local DNS cache from time to time when my DNS records change at my provider...

Shouldn't my applications and servers, which hit the same 5 remote service providers, have cached the DNS? Why would I get DNS errors instead of network errors?

share|improve this question

If you are losing packets when you ping the DNS server, it seems perfectly normal to also have periodic failures when asking the DNS server to resolve names for you.

It's hard to diagnose the apparent lack of caching without knowing what the TTL is on the records in question - it could be that the remote host(s) have their TTL set to very short lifetimes because they anticipate swapping machines or they're trying to do DNS-based failover.

I would not expect your local application to cache DNS information, at least not for any serious length of time. IMHO, that would be a bug, not a feature.

If your local caching DNS server doesn't seem to be caching, I would investigate the TTL on the records you want cached, and make sure that the machines reporting errors are set up to use only your caching server for name resolution.

share|improve this answer

Your servers will only cache dns records if you are running nscd.

share|improve this answer
...or another local nameserver, such as Bind. But you're right. Linux servers only cache DNS queries when you install a DNS cache. – Martijn Heemels Sep 27 '10 at 21:07

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.