diff options
| author | Kleidi Bujari <mail@4kb.net> | 2025-03-20 13:02:42 -0400 |
|---|---|---|
| committer | Kleidi Bujari <mail@4kb.net> | 2025-03-20 13:02:42 -0400 |
| commit | b1738c105de3bc0ba7cd27f68c9eb146439a0964 (patch) | |
| tree | 109de31a9c12edb56014cda723fd4cd8187ae5b5 /machines/xnet/net | |
| parent | ed979a450a37fd9761c1ba8393e4ee9dd243b81d (diff) | |
| download | depot-b1738c105de3bc0ba7cd27f68c9eb146439a0964.tar.gz depot-b1738c105de3bc0ba7cd27f68c9eb146439a0964.tar.bz2 depot-b1738c105de3bc0ba7cd27f68c9eb146439a0964.zip | |
march sprint
Diffstat (limited to 'machines/xnet/net')
| -rw-r--r-- | machines/xnet/net/default.nix | 3 | ||||
| -rw-r--r-- | machines/xnet/net/dns.nix | 15 |
2 files changed, 11 insertions, 7 deletions
diff --git a/machines/xnet/net/default.nix b/machines/xnet/net/default.nix index 8258ea6..7242855 100644 --- a/machines/xnet/net/default.nix +++ b/machines/xnet/net/default.nix @@ -100,6 +100,9 @@ in # Network is up when xnet physical interface gets carrier linkConfig.RequiredForOnline = "carrier"; + + # Allow resolved to resolve mDNS + networkConfig.MulticastDNS = true; }; networks."${toString networks.${net}.vlan}-${net}" = { diff --git a/machines/xnet/net/dns.nix b/machines/xnet/net/dns.nix index 186e43c..0632fa9 100644 --- a/machines/xnet/net/dns.nix +++ b/machines/xnet/net/dns.nix @@ -20,18 +20,19 @@ let in { - networking.nameservers = mkDefault [ - "9.9.9.9#dns.quad9.net" - "149.112.112.112#dns.quad9.net" - "2620:fe::fe#dns.quad9.net" - "2620:fe::9#dns.quad9.net" - ]; + networking.nameservers = mkDefault quad9; services.resolved = { enable = true; - llmnr = "true"; + llmnr = "false"; dnssec = "false"; dnsovertls = mkDefault "opportunistic"; fallbackDns = quad9 ++ cloudflare; + extraConfig = '' + MulticastDNS=yes + ''; }; + + # Allow mDNS resolution + networking.firewall.allowedTCPPorts = [ 5353 ]; } |
