What would be the simplest and cutting edge network configuration?

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.?

Also man resolvconftells that for now it's actually symlinked to resolvectl, but 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.

No. resolvconf and such (openresolv) is a more tradition config.
systemd-resolvd + systemd-resolvconf is the more modern way
(.. but it seems to have quirks last time I checked)
This means making use of those 2 packacges and services

All in all its roughly this:

systemctl enable systemd-resolved.service --now
sudo mv /etc/resolv.conf /etc/resolv.conf.bak
sudo ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
sudo pacman -Syyu systemd-resolvconf


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by