I am trying to configure the DNS settings while I am following an online course about the subject. In particular, I am trying to use the Cloudflare's resolver.
I am a bit confused about the best way to change the settings:
Personally if it were me I would just default to using the Network Manager screen by default, and only go through the other options if for some reason that application isn't working.
Also unless you're explicitly using ipv6, there's no reason to really make the change to DNS within ipv6. It's much more likely that you're using ipv4. Not that it doesn't exist, but it's very limited in usage to this day (even though it was supposed to kill ipv4, what, decades ago? can't wait to see the next article to say it'll do the same again).
Why not doing it the way that the course is trying to teach this? I would also prefer to do it manually through the Network Manager, unless you have a reason to do it otherwise.
You're right, by default the easiest way of managing network settings is through the Network Manager. I've been experimenting with making changes to various configuration files, which led me to a question: which files overwrite which?
To my understanding:
Settings > Network (NetworkManager GUI) overwrites other settings unless a change is made that conflicts with its configuration.
/run/systemd/resolve/stub-resolv.conf should not be edited as it's dynamically generated by systemd-resolved.
/etc/systemd/resolved.conf can be edited, but it's better practice to create configuration files in - /etc/systemd/resolved.conf.d/ instead.
/etc/resolv.conf is typically a symlink to /run/systemd/resolve/stub-resolv.conf in systems using systemd-resolved.
I am trying to revert to initial changed made, but I am unsuccessful in reverting my internet connection through the NetworkManager GUI only.
I am quite sure resolv.conf should have the following content:
The course is explaining the general concept of DNS. To gain a better understanding of what's happening behind the scenes, I'm trying to explore how these configuration files are structured and how they relate to each other in a parent/child hierarchy.
In a standard installation, I would normally change the settings through the Network Manager.