Permanently disable whatever keeps overwriting resolv.conf

After having disabled networkmanager and switched to network scripts, I still see that resolv.conf is getting overwritten with nameserver Thanks, but no thanks. How can I permanently disable whatever it is and switch to having this file static?

I can live with having DNS1/2 in ifcfg* but curious as to what keeps overwriting resolv.conf as I do not want that thing to be a thing.


No more DNS. Nice. Does DNS not work without it?

Restarted it, and again it set nameserver to What is this grand idea that I am failing to appreciate?

If you manually delete the link at /etc/resolv.conf then create your own file properly structured there it will stop the nm management of dns. The system uses systemd to manage dns by default and the file link at /etc/resolv.conf points to a dynamic system managed file at /run/systemd/resolve/resolv.conf. Systemd also gets data from /run/NetworkManager/resolv.conf.

The text in /run/systemd/resolve/resolv.conf should have been visible the first time you looked at /etc/resolv.conf and if it was it told you how to manually make changes by removing the link at /etc/resolv.conf and making your own file there.
To manage man:resolv.conf(5) in a different way, replace this symlink by a static file or a different symlink.