Best practice for DNS caching in RHEL

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux
  • bind
  • unbound
  • dnsmasq
  • NSCD (May be removed in later releases of RHEL)

Technology Preview

  • systemd-resolved (RHEL 8, 9)

Issue

  • How to configure DNS cache in RHEL ?
  • How to cache DNS query in RHEL ?

Resolution

Note: systemd-resolved is provided as Technology Preview in RHEL 8, 9

Root Cause

  • By default, RHEL does not cache DNS queries.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments