I need to do this every day because the changes are not permanent.
The only article I have found so far about making permanent changes to this file requires me to install some programs, see https://kifarunix.com/make-permanent-dns-changes-on-resolv-conf-in-linux/?expand_article=1 It only talks about changing the nameserver DNS. I am however not sure if that applies to the option section as well.
I am wondering if it is possible to make the change to the file permanent without installing anything, and then how to do it. If not possible, which method is recommended?
Make changes in /etc/systemd/resolved.conf or drop-in .conf files in /etc/systemd/resolved.conf.d/.
With systed-resolved, the resolver can be configured by editing /etc/systemd/resolved.conf and/or drop-in .conf files in /etc/systemd/resolved.conf.d/.
Thank you for this step… how ever this does not seem to show me how to add these lines to my resolve.conf.
If I change anything in /etc/systemd/resolved.conf, it doesn’t seem to have the effect I am looking for.
I am currently trying to figure what are the differences between EOS and Fedora, besde FallbackDNS and LLMNR I have not been able to see any difference.
Right now I am afraid I have tinkered a bit too much, even if I log down my changes. System is really behaving weirdly now.
I found out that my Ubuntu knowledge can be also misleading, I spent 15 years with it and maybe 2 with EndeavourOS. What I said isn’t wrong. But: Per default, systemd-resolved isn’t enabled.
But generally speaking, the best way to make changes is either in the NetworkManager or systemd-resolved, in this case NetworkManager in the conf.d directory. resolv.conf is autogenerated and any attempt to lock it is throwing a wrench into the system.
Did you have a look at man 5 NetworkManager.conf? This is how the file should be set up to work. Maybe this information helps.
Actually I think this might not be needed at all if you don’t use systemd-resolved.service.
Mine is disabled and masked. So it seems to be superfluous. It doesn’t do any harm though