lib/dns: don't filter for up*
This commit is contained in:
parent
ffc4c56730
commit
bf9e28c5dc
|
@ -131,9 +131,7 @@ rec {
|
||||||
domain =
|
domain =
|
||||||
if ctx == "dn42"
|
if ctx == "dn42"
|
||||||
then "${net}.zentralwerk.dn42"
|
then "${net}.zentralwerk.dn42"
|
||||||
else if builtins.match "up.*" ctx != null
|
else namedNets.${net}.domainName;
|
||||||
then namedNets.${net}.domainName
|
|
||||||
else throw "Invalid IPv6 context: ${ctx}";
|
|
||||||
in
|
in
|
||||||
lib.recursiveUpdate result {
|
lib.recursiveUpdate result {
|
||||||
"${ipv6ToReverse hosts.${host}}" = "${host}.${domain}";
|
"${ipv6ToReverse hosts.${host}}" = "${host}.${domain}";
|
||||||
|
@ -214,9 +212,7 @@ rec {
|
||||||
ns =
|
ns =
|
||||||
if ctx == "dn42"
|
if ctx == "dn42"
|
||||||
then internalNS
|
then internalNS
|
||||||
else if builtins.match "up.*" ctx != null
|
else publicNS;
|
||||||
then publicNS
|
|
||||||
else throw "Invalid IPv6 context: ${ctx}";
|
|
||||||
records =
|
records =
|
||||||
map (reverse: {
|
map (reverse: {
|
||||||
name = builtins.substring 0 ((128 - reverseZone6Size) / 2 - 1) reverse;
|
name = builtins.substring 0 ((128 - reverseZone6Size) / 2 - 1) reverse;
|
||||||
|
|
Loading…
Reference in New Issue