use predefined fqdn instead of generating every time
1 file changed, 3 insertions(+), 3 deletions(-)
changed files
M system/roles/router.nix → system/roles/router.nix
@@ -9,7 +9,7 @@ wan = config.networking.nat.externalInterface; lans = config.networking.nat.internalInterfaces; lan = builtins.head lans; - inherit (config.networking) domain hostName; + inherit (config.networking) domain hostName fqdn; wanPrefixLen = 56;@@ -69,7 +69,7 @@ ]; } // (lib.genAttrs myAddresses ( lib.const [ - "${hostName}.${domain}" + "${fqdn}" "${hostName}" ] ));@@ -351,7 +351,7 @@ ]; local-ttl = 1; # defaults to 0 (client should not cache), but 1s shouldn't hurt interface-name = [ "${hostName},${lan}" # prevents returning 127.0.0.2 - "${hostName}.${domain},${lan}" # prevents returning 127.0.0.2 + "${fqdn},${lan}" # prevents returning 127.0.0.2 "wan.${domain},${wan}/6" ]; };