patch_file(
ctx,
"systemd-resolved",
"/etc/systemd/resolved.conf",
[
(Selector::Regex("^#DNS="), Action::RegexReplace("#DNS=", "DNS=127.0.0.1")),
(Selector::Regex("^#FallbackDNS="), Action::RegexReplace(
"#FallbackDNS=",
"FallbackDNS=1.1.1.1#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 2606:4700:4700::1001#cloudflare-dns.com",
)),
(Selector::All, Action::RegexReplace("^#Domains=", `Domains=${fdqn} ~.`)),
(Selector::All, Action::RegexReplace("^#(LLMNR|MulticastDNS)=yes", "$1=no")),
// Don't enable DNSSEC, let unbound that we are chaining to handle it, systemd-resolved is not good at it
],
)?;
// The above comment gets moved down here!
I'm om commit 74c5ef79689c2d0db7c1a2f44b62dcbcac736298
becomes
The same thing happens with the comment in this:
I'm om commit 74c5ef79689c2d0db7c1a2f44b62dcbcac736298