1.185 ALMA-09-023560

Information

AlmaLinux OS 9 must configure a DNS processing mode set be Network Manager.

GROUP ID: V-269288
RULE ID: SV-269288r1050170

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

Solution

Configure NetworkManager in AlmaLinux OS 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.

$ systemctl reload NetworkManager

See Also

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