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
parent 88e67c827b
commit 27571cff72
2 changed files with 15 additions and 1 deletions

View File

@ -92,7 +92,16 @@ in
if dynamic if dynamic
then "/var/db/bind/${name}.zone" then "/var/db/bind/${name}.zone"
else generateZoneFile 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"; }; allow-update { key "dyndns"; };
''; '';
}; };

View File

@ -12,6 +12,11 @@ writeText "named.slave.conf" (
172.20.73.2; 172.20.73.2;
}; };
file "/var/lib/bind/slave/${name}.zone"; 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 # public zones only