all repos — nixfiles @ bc29e2bb1d254c063d698ca20d0368eb9c5f035d

System and user configuration, managed by nix and home-manager

router: advertise DNS using ULA address, not link-local

Alin
commit

bc29e2bb1d254c063d698ca20d0368eb9c5f035d

parent

844b4a55e631c9001cfb792bc3eff6f050c7ef8c

1 file changed, 3 insertions(+), 2 deletions(-)

changed files
M system/roles/router.nix → system/roles/router.nix
@@ -28,6 +28,7 @@ "9.9.9.9"
"149.112.112.112" ]; nsTLSHostname = "dns.quad9.net"; + justAddress = (a: builtins.head (lib.strings.splitString "/" a)); in { imports = [
@@ -114,7 +115,7 @@ ConfigureWithoutCarrier = true;
MulticastDNS = true; Domains = [ config.networking.domain ]; LinkLocalAddressing = "ipv6"; # required for networkd RA despite fe80::1 static assignment - DNS = map (a: builtins.head (lib.strings.splitString "/" a)) address; + DNS = map justAddress address; DNSDefaultRoute = false; IPv6SendRA = true; };
@@ -128,7 +129,7 @@ };
ipv6SendRAConfig = { Managed = true; OtherInformation = true; - DNS = [ "_link_local" ]; + DNS = map justAddress (builtins.filter (lib.strings.hasInfix ":") address); }; ipv6Prefixes = [ {