NetworkManager DNS Mode Must Be Must Configured
An XCCDF Rule
Description
The DNS processing mode in NetworkManager describes how DNS is processed on the system. Depending the mode some changes the system's DNS may not be respected.
Rationale
To ensure that DNS resolver settings are respected, a DNS mode in NetworkManager must be configured.
- ID
- xccdf_org.ssgproject.content_rule_networkmanager_dns_mode
- Severity
- Medium
- Updated
Remediation - Ansible
- name: Gather the package facts
package_facts:
manager: auto
tags:
- DISA-STIG-RHEL-09-252040
- NIST-800-53-CM-6(b)
Remediation - Shell Script
# Remediation is applicable only in certain platforms
if rpm --quiet -q NetworkManager; then
var_networkmanager_dns_mode='<xccdf-1.2:sub xmlns:xccdf-1.2="http://checklists.nist.gov/xccdf/1.2" idref="xccdf_org.ssgproject.content_value_var_networkmanager_dns_mode" use="legacy"/>'