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

Severity
Group ID
Group Title
Version
Rule ID
Date
STIG Version
mediumV-257949SRG-OS-000480-GPOS-00227RHEL-09-252040SV-257949r1014841_rule2025-02-272
Description
In order to ensure that DNS resolver settings are respected, a DNS mode in Network Manager must be configured.
ℹ️ Check
Verify that RHEL 9 has a DNS mode configured in Network Manager. $ NetworkManager --print-config [main] dns=none If the dns key under main does not exist or is not set to "none" or "default", this is a finding. Note: If RHEL 9 is configured to use a DNS resolver other than Network Manager, the configuration must be documented and approved by the information system security officer (ISSO).
✔️ Fix
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