lib/dns: exclude ipv6 ctx yggdrasil
This commit is contained in:
parent
766a2db2d2
commit
b393efecf7
|
@ -123,13 +123,16 @@ rec {
|
||||||
# `{ dn42 = { "...ip6.arpa" = "lo.core.zentralwerk.dn42"; }; }`
|
# `{ dn42 = { "...ip6.arpa" = "lo.core.zentralwerk.dn42"; }; }`
|
||||||
reverseHosts6 = builtins.foldl' (result: net: lib.recursiveUpdate result (
|
reverseHosts6 = builtins.foldl' (result: net: lib.recursiveUpdate result (
|
||||||
builtins.mapAttrs (ctx: hosts:
|
builtins.mapAttrs (ctx: hosts:
|
||||||
|
if ctx == "yggdrasil"
|
||||||
|
then {}
|
||||||
|
else
|
||||||
builtins.foldl' (result: host:
|
builtins.foldl' (result: host:
|
||||||
let
|
let
|
||||||
domain =
|
domain =
|
||||||
if ctx == "dn42"
|
if ctx == "dn42"
|
||||||
then namedNets.${net}.domainName
|
then "${net}.zentralwerk.dn42"
|
||||||
else if builtins.match "up.*" ctx != null
|
else if builtins.match "up.*" ctx != null
|
||||||
then "${net}.zentralwerk.org"
|
then namedNets.${net}.domainName
|
||||||
else throw "Invalid IPv6 context: ${ctx}";
|
else throw "Invalid IPv6 context: ${ctx}";
|
||||||
in
|
in
|
||||||
lib.recursiveUpdate result {
|
lib.recursiveUpdate result {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user