nixos-module/container/dns, pkgs/dns-slaves: add explicit addresses for zone xfers

This commit is contained in:
Astro 2021-05-06 17:52:49 +02:00
förälder 88e67c827b
incheckning 27571cff72
2 ändrade filer med 15 tillägg och 1 borttagningar

Visa fil

@ -92,7 +92,16 @@ in
if dynamic
then "/var/db/bind/${name}.zone"
else generateZoneFile zone;
extraConfig = lib.optionalString dynamic ''
extraConfig = ''
also-notify {
# ns.c3d2.de
217.197.84.53;
2001:67c:1400:2240::a;
# ns.spaceboyz.net
95.217.229.209;
2a01:4f9:4b:39ec::4;
};
'' + lib.optionalString dynamic ''
allow-update { key "dyndns"; };
'';
};

Visa fil

@ -12,6 +12,11 @@ writeText "named.slave.conf" (
172.20.73.2;
};
file "/var/lib/bind/slave/${name}.zone";
allow-notify {
2a02:8106:208:5282:2::2;
fd23:42:c3d2:582:2::2;
172.20.73.2;
};
};
'') (
# public zones only