Do not use non-core systemd
Do not use non-core systemd
Posted Sep 25, 2025 2:55 UTC (Thu) by sionescu (subscriber, #59410)In reply to: Do not use non-core systemd by WolfWings
Parent article: An unstable Debian stable update
Posted Sep 25, 2025 5:59 UTC (Thu)
by intelfx (subscriber, #130118)
[Link] (8 responses)
Split DNS is basically the entire reason systemd-resolved exists. And it does in fact work very well — in my experience, this is the *first* time split DNS on Linux actually worked well, and I use it daily.
> mDNS is broken
Ditto, excepting the "first time" part (but I still use it daily).
> dns-over-https is not implemented
DNS-over-TLS is.
Posted Sep 25, 2025 14:09 UTC (Thu)
by mathstuf (subscriber, #69389)
[Link] (7 responses)
I have to reconfigure resolved (via `/etc/nsswitch.conf`) because it causes network namespace leakage. If I have a network namespace jailed to a VPN, systemd-resolved needs to live *in* that namespace to reliably do DNS for it (but then it cannot service non-VPN requests…). But because it leaks through `nss` plugins, I have to at least remove the `[!UNAVAIL=return]` behavior. So instead, I remove that and put it behind `dns` to avoid the latency involved when it fails to service VPN-destined requests.
Is there some configuration magic around to handle this that you know of?
Posted Sep 25, 2025 23:53 UTC (Thu)
by ebiederm (subscriber, #35028)
[Link] (3 responses)
ip netns allows for that. I don't know about systemd-networkd
Posted Sep 26, 2025 3:15 UTC (Fri)
by mathstuf (subscriber, #69389)
[Link] (2 responses)
Which reminds me that I need to also fix `resolv.conf` so that things are happy too. If it is a symlink, the `ip netns exec` mount namespace is broken when the target `resolv.conf` is rewritten with a "write then rename into place"; `cat newresolv.conf > /etc/resolv.conf` works though.
Posted Sep 28, 2025 1:49 UTC (Sun)
by ebiederm (subscriber, #35028)
[Link] (1 responses)
If my memory serves the code just walks through the configuration directory and bind mounts every thing in it, into /etc.
Posted Sep 28, 2025 2:55 UTC (Sun)
by mathstuf (subscriber, #69389)
[Link]
Posted Sep 26, 2025 0:19 UTC (Fri)
by intelfx (subscriber, #130118)
[Link] (2 responses)
I don't think systemd-resolved is network namespace aware, and I'm not familiar with any tricks in that area. But that's a hugely niche use-case, and not what I was defending. Normal "split DNS" is when you have multiple network interfaces with disjoint sets of routes in a single network namespace.
Posted Sep 26, 2025 3:17 UTC (Fri)
by mathstuf (subscriber, #69389)
[Link] (1 responses)
Posted Sep 26, 2025 8:38 UTC (Fri)
by nim-nim (subscriber, #34454)
[Link]
Do not use non-core systemd
Do not use non-core systemd
Do not use non-core systemd
Do not use non-core systemd
Do not use non-core systemd
Do not use non-core systemd
Do not use non-core systemd
>
> Is there some configuration magic around to handle this that you know of?
Do not use non-core systemd
Do not use non-core systemd
