How to prevent NetworkManager from updating /etc/resolv.conf for Rocky Linux 8


If you are using NetworkManager, it can override your /etc/resolv.conf customised settings. To prevent Network Manager from doing that, you can do the following

# vim /etc/NetworkManager/NetworkManager.conf

At the [main] section, add the following line

dns=none
rc-manager=unmanaged

That is all.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.