Recently I moved from Ubuntu to Manjaro. There
systemd-resolved is used for DNS resolution managment. In Manjaro 20 it's disabled by default.
I found this topic /etc/resolv.conf doesn't update dns after openvpn where suggested to disable NetworkManager at all. Is it good idea?
If I stop NetworkManager gui stops showing networks, but network actually available and works fine. In Ubuntu e.g. stopping NM leads to connection drop.
I read manuals couple of days e.g. these among others and still have no clear understanding how things are done.
There systemd-resolved, systemd-networkd, dnsmasq, NetworkManager, resolvconf, netplan (new for Ubuntu, it looks simple to use). I would like to know how these are interconnected? Could anyone help me with this, links or whatever you find applicable?
One of the reason this question appeared because I setup VPN and encountered DNS leaks due to NetworkManager overwrites
/etc/resolv.conf pushed from VPN server options and setup via
/etc/openvpn/update-resolv-conf. I added
/etc/NetworkManager/conf.d/my.conf containing following.
After that everything looks find. So as I understand from
man resolv.conf is that this is the DNS server list and the services (like NM) I mentioned above just manage it defining different rules, e.g. replacing with symlinks to own files and etc.?
man resolvconftells that for now it's actually symlinked to
file /usr/bin/resolvconf gives this.
/usr/bin/resolvconf: POSIX shell script, ASCII text executable
So what would be the "right" most simple and modern configuration? Explanation on these are also wanted.
Thanx in advance.