|
|
|
@ -174,19 +174,21 @@ rec {
|
|
|
|
|
} ];
|
|
|
|
|
} ] ++ builtins.concatLists (
|
|
|
|
|
builtins.attrValues (
|
|
|
|
|
builtins.mapAttrs (net: { dynamicDomain, hosts4, hosts6, ... }: [
|
|
|
|
|
builtins.mapAttrs (net: { dynamicDomain, hosts4, hosts6, extraRecords, ... }: [
|
|
|
|
|
{
|
|
|
|
|
name = "${net}.zentralwerk.dn42";
|
|
|
|
|
ns = internalNS;
|
|
|
|
|
records =
|
|
|
|
|
lib.optionals (hosts6 ? dn42) (hosts6Records hosts6.dn42);
|
|
|
|
|
lib.optionals (hosts6 ? dn42) (hosts6Records hosts6.dn42) ++
|
|
|
|
|
extraRecords;
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
name = "${net}.zentralwerk.org";
|
|
|
|
|
ns = publicNS;
|
|
|
|
|
records =
|
|
|
|
|
hosts4Records hosts4 ++
|
|
|
|
|
lib.optionals (hosts6 ? up4) (hosts6Records hosts6.up4);
|
|
|
|
|
lib.optionals (hosts6 ? up4) (hosts6Records hosts6.up4) ++
|
|
|
|
|
extraRecords;
|
|
|
|
|
dynamic = dynamicDomain;
|
|
|
|
|
}
|
|
|
|
|
]) namedNets
|
|
|
|
|