1.175 RHEL-09-252040

Information

RHEL 9 must configure a DNS processing mode in Network Manager.

GROUP ID: V-257949
RULE ID: SV-257949r1014841

In order to ensure that DNS resolver settings are respected, a DNS mode in Network Manager must be configured.

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 = none

NetworkManager must be reloaded for the change to take effect.

$ sudo systemctl reload NetworkManager

See Also

https://workbench.cisecurity.org/benchmarks/22008