lib/dns: don't filter for up*

This commit is contained in:
Astro 2022-09-18 03:22:57 +02:00
parent ffc4c56730
commit bf9e28c5dc
1 changed files with 2 additions and 6 deletions

View File

@ -131,9 +131,7 @@ rec {
domain =
if ctx == "dn42"
then "${net}.zentralwerk.dn42"
else if builtins.match "up.*" ctx != null
then namedNets.${net}.domainName
else throw "Invalid IPv6 context: ${ctx}";
else namedNets.${net}.domainName;
in
lib.recursiveUpdate result {
"${ipv6ToReverse hosts.${host}}" = "${host}.${domain}";
@ -214,9 +212,7 @@ rec {
ns =
if ctx == "dn42"
then internalNS
else if builtins.match "up.*" ctx != null
then publicNS
else throw "Invalid IPv6 context: ${ctx}";
else publicNS;
records =
map (reverse: {
name = builtins.substring 0 ((128 - reverseZone6Size) / 2 - 1) reverse;