"Why is systemd even touching DNS?"
resolvd != systemd. It seems like you are mad that Ubuntu changed DNS resolver, but isn't that the actual job of a Linux distro?
Re:A Word about Systemd
by the_real_cher on Wednesday September 18, 2024 @06:42AM
(#41578051)
the full name of the service is systemd-resolvd...
yes, and full name of coreutils is GNU coreutils.
Re:A Word about Systemd
by the_real_cher on Wednesday September 18, 2024 @10:13AM
(#41579976)
systemd-resolvd is in the literal systemd code base.
So are udev and nss modules. It's monorepo.
Re:A Word about Systemd
by the_real_cher on Wednesday September 18, 2024 @01:11PM
(#41582606)
so if it's
1> in the systemd repo
2> if it's written and maintained by the same people who write systemd
3> if systemd is in the NAME
I don't really know what more is needed to say it a is part of systemd
After a quick check, in 100% of distributions checked, it is a separate package. In many of them, not even installed by default (which is too bad).
Re:A Word about Systemd
by the_real_cher on Wednesday September 18, 2024 @09:24PM
(#41587525)
okayyy
I believe systemd-resolved is easily the absolute worst piece of systemd infrastructure. And especially so in Ubuntu! In 24.04 you can get away by uninstalling it then creating a sane /etc/resolv.conf; previous Ubuntu distros required a bit more than that.
Ideally, with systemd-resolved, you would have only 127.0.0.53 in your resolv.conf. (Anything that reads it directly is broken anyway).
Then you configure your DNS using NetworkManager, on respective connections. I.e. on your VPN, you configure the DNS on the other side of the connection, and (optionally) which zones it is supposed to resolve. (NetworkManager then configures systemd-resolved accordingly). The usage of this DNS then goes up and down together with your VPN connection. That's it.
I was struggling with it while trying to troubleshoot a VPN connection because resolvd automates resolve.conf into a generated file from several other files and will overwrite any other functionality trying to add resolvers to resolve.conf, like an internal VPN company resolver for example.
Why is systemd even touching DNS?
Seems a little outside of it's scope.
This is kinda crazy to me personally when I found out resolvd was doing this.
https://www.man7.org/linux/man-pages/man8/systemd-resolved.s...