NSCD is not caching the negative result of DNS query in Red Hat Enterprise Linux 6.6

Solution Unverified - Updated -

Issue

  • We have several machines where httpd is running.
  • And, nscd is used to cache the DNS query.
  • One machine only has a low cache hit rate (1%) for hosts.
  • In a not-working machine:
# nscd -g
... snip ...
hosts cache:
... snip ...
          72296  cache hits on positive entries
              6  cache hits on negative entries
          89820  cache misses on positive entries
        5828692  cache misses on negative entries
              1% cache hit rate
  • What is the root cause of this?

Environment

Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content