News for hackers. Stuff that matters.
Re:A Word about Systemd by the_real_cher on Tuesday September 17, 2024 @09:15PM (#41574692)
resolvd was running by default on Ubuntu 24.

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

Re:A Word about Systemd by tuna74 on Wednesday September 18, 2024 @05:14AM (#41577555)
"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...
Re:A Word about Systemd by vetinari on Wednesday September 18, 2024 @08:39AM (#41578979)
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.

https://github.com/systemd/systemd/tree/main/src%2Fresolve

Re:A Word about Systemd by vetinari on Wednesday September 18, 2024 @10:20AM (#41580063)
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

Re:A Word about Systemd by vetinari on Wednesday September 18, 2024 @02:57PM (#41584015)
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
Re:A Word about Systemd by egorfine on Wednesday September 18, 2024 @06:43AM (#41578055)
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.
Re:A Word about Systemd by vetinari on Wednesday September 18, 2024 @08:43AM (#41579024)
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.