router: advertise DNS using ULA address, not link-local
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 = [ {