Re: [CentOS] Unexpected /etc/resolv.conf updates on CentOS 7

2021-10-13 Thread Kenneth Porter
On 10/13/2021 10:24 AM, Toralf Lund wrote: Does here anyone know exactly when NetworkManager creates or is supposed to create /etc/resolv.conf for a network connection? Is there a way I can control it, or alternatively, is there a good way to debug the functionality? Take a look at change_re

Re: [CentOS] Unexpected /etc/resolv.conf updates on CentOS 7

2021-10-13 Thread J Martin Rushton via CentOS
If you just want to tell NM to clear off and leave your resolv.conf alone do the following: If you don't want it to touch the contents of the file then remove all DNSx= parameters from all ifcfg files and add PEERDNS=“no” instead. Now you are solely responsible for setting the content of /etc/