Chapter 24. Manually configuring the /etc/resolv.conf file
By default, NetworkManager on Red Hat Enterprise Linux (RHEL) 8 dynamically updates the
/etc/resolv.conf file with the DNS settings from active NetworkManager connection profiles. This section describes different options on how to disable this feature to manually configure DNS settings in
24.1. Disabling DNS processing in the NetworkManager configuration
This section describes how to disable DNS processing in the NetworkManager configuration to manually configure the
/etc/NetworkManager/conf.d/90-dns-none.conffile with the following content:
# systemctl reload NetworkManagerNote
After you reload the service, NetworkManager no longer updates the
/etc/resolv.conffile. However, the last contents of the file are preserved.
Optionally, remove the
Generated by NetworkManagercomment from
/etc/resolv.confto avoid confusion.
/etc/resolv.conffile and manually update the configuration.
# systemctl reload NetworkManager
# cat /etc/resolv.conf
If you successfully disabled DNS processing, NetworkManager did not override the manually configured settings.
For further details, see the description of the
dnsparameter in the