News for hackers. Stuff that matters.
Re:Migrate Everything from Linux to BSD by Spivak on Sunday February 07, 2021 @11:24PM (#26060767)
I swear at this point there is not a soul that really understand the low level pieces of a Linux distro fit together.

systemd-resolved is a separate project from systemd whose only relation is that it’s in the same repo. It’s up to your distro builder to decide if they want to use it. And also up to your distro if they want to use the stub resolver. It’s not necessary for systemd-resolved to work. The reason they have the stub listener is because on Linux every application is supposed to use glibc nss to resolve names but there are real-world applications that try, incorrectly, to parse resolv.conf and do dns queries themselves. This breaks things if your assumption is that all dns queries are going through systemd-resolved. And this project isn’t the first. Ubuntu and others have used dnsmasq as the stub resolver for the same reason. Using just the dns nss module and resolv.conf is fundamentally broken and at this point unfixable when you are connected to multiple networks or with separate dns or split tunnel VPNing. You have to provide your own, smarter, nss module and/or use a stub resolver to cover these use-cases.

Re:Migrate Everything from Linux to BSD by dTal on Monday February 08, 2021 @12:05AM (#26060987)
Why does it use the same repo, exactly?
Re:Migrate Everything from Linux to BSD by mariusor on Monday February 08, 2021 @05:02AM (#26062637)
Because it's built by the same people that built systmed and uses some of the low-level internal libraries from systemd (input parsing, configuration, etc) ? This is not that difficult of a conclusion to get to honestly.