Bug 2217013

Summary: Add support for DNS caching management
Product: Red Hat Enterprise Linux 9 Reporter: Rich Megginson <rmeggins>
Component: rhel-system-rolesAssignee: NetworkManager Development Team <nm-team>
Status: NEW --- QA Contact: CS System Management SST QE <rhel-cs-system-management-subsystem-qe>
Severity: unspecified Docs Contact: Mayur Patil <maypatil>
Priority: unspecified    
Version: 9.3CC: maypatil, myllynen, pkettman, spetrosi
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: role:network
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rich Megginson 2023-06-23 14:19:02 UTC
NetworkManager can be configured to setup dnsmasq or systemd-resolved for DNS caching, this could be a beneficial features in many environments. It both reduces the load on the DNS servers but also speeds up operations on systems as replies to DNS queries are often instant.

Here in upstream we probably should make both of the above alternative supported since Fedora seems to prefer systemd-resolved but on RHEL only dnsmasq is supported.

There's an existing role implementing this which could be used as a reference or starting point:

https://github.com/myllynen/rhel-ansible-roles/tree/master/roles/dns_cache