How to take back control of /etc/resolv.conf on Linux (2018)
After running into this a while ago when I was rebuilding my system and getting annoyed by all the different things that try to modify it, I ended up giving up and just setting the file to immutable. It has been working fine for the past couple of months as nothing seems to autodetect the flag and try to remove it.<p><pre><code>  chattr +i /etc/resolv.conf</code></pre>