nixos-module/container/dns, pkgs/dns-slaves: add explicit addresses for zone xfers
This commit is contained in:
父節點
88e67c827b
當前提交
27571cff72
|
@ -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"; };
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
載入中…
新增問題並參考