Why do I see DNS network traffic while NSCD is configured to cache host lookups?

Solution Verified - Updated -

Issue

  • On a few busy web servers (RHEL 6.5) we see a lot of DNS PTR lookups for a few hostnames
  • If possible, we would like to limit the number of DNS lookups, but it doesn’t look like nscd is caching reverse lookups like it does forward lookups
  • Is it possible to configure nscd to also cache PTR lookups, or are you aware of another solution for this (adding the hosts to /etc/hosts is not a solution)?

Environment

  • Red Hat Enterprise Linux (RHEL) all supported versions
  • Name Service Caching Daemon (NSCD)

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