From 384ebbbdf1da361e29785eed5af2afddaffe2f1e Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 30 May 2024 22:25:01 +0200 Subject: nanopi: use home.arpa as home domain according to rfc8375 --- system/nanopi.nix | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'system') diff --git a/system/nanopi.nix b/system/nanopi.nix index 7da53b7e..6116c62f 100755 --- a/system/nanopi.nix +++ b/system/nanopi.nix @@ -5,6 +5,8 @@ }: let fsTypes = [ "f2fs" "ext" "exfat" "vfat" ]; + domain = "home.arpa"; + ts_domain = "hydra-pinecone.ts.net"; in { imports = [ @@ -88,8 +90,8 @@ in networking = { hostName = "nanopi"; - domain = "lan"; - search = [ "lan" ]; + domain = domain; + search = [ domain ]; useDHCP = false; useNetworkd = true; firewall = { @@ -223,7 +225,7 @@ in && !config.services.resolved.enable ) '' - search lan hydra-pinecone.ts.net + search ${domain} ${ts_domain} nameserver ::1 nameserver 127.0.0.1 options edns0 @@ -320,6 +322,9 @@ in IPv6SendRA = true; DHCPPrefixDelegation = true; ConfigureWithoutCarrier = true; + MulticastDNS = true; + BindCarrier = [ "lan0" "lan1" ]; + Domains = [ domain ]; }; dhcpPrefixDelegationConfig = { UplinkInterface = "wan0"; @@ -467,7 +472,7 @@ in alwaysKeepRunning = true; settings = { local-ttl = 60; - domain = "lan"; + domain = domain; dhcp-fqdn = false; domain-needed = true; bogus-priv = true; @@ -496,11 +501,6 @@ in ]; interface-name = [ "nanopi,bridge0" - "nanopi.lan,bridge0" - "home.alanpearce.eu,wan0" - "nanopi.alanpearce.eu,wan0" - "nanopi.lan.alanpearce.eu,bridge0" - "syncthing.lan.alanpearce.eu,bridge0" "wan,wan0" "wlan,wlan0" "wwan,wwan0" @@ -856,7 +856,7 @@ in "10.0.0.1:53 -group lan -exclude-default-group" ]; nameserver = [ - "/lan/lan" + "/${domain}/${domain}" ]; dualstack-ip-selection = true; dualstack-ip-selection-threshold = 10; -- cgit 1.4.1