Information
To ensure that DNS resolver settings are respected, a DNS mode in Network Manager must be configured. The following are common DNS values in NetworkManager.conf [main]:
- default: NetworkManager will update /etc/resolv.conf to reflect the nameservers provided by currently active connections.
- none: NetworkManager will not modify /etc/resolv.conf. Used when DNS is managed manually or by another service.
- systemd-resolved: Uses systemd-resolved to manage DNS.
- dnsmasq: Enables the internal dnsmasq plugin.
Solution
Configure NetworkManager in RHEL 9 to use a DNS mode.
In "/etc/NetworkManager/NetworkManager.conf", add the following line in the "[main]" section:
dns = <dns processing mode>
Where <dns processing mode> is default, none, or systemd-resolved.
NetworkManager must be reloaded for the change to take effect.
$ sudo systemctl reload NetworkManager