summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-05-21 13:59:07 -0400
committerKjetil Orbekk <kj@orbekk.com>2022-05-21 13:59:07 -0400
commit93e8c64b3dfde61024bdd77cd57b6af9c96de2c5 (patch)
treedd691a7794395773173e24557f5d52004b5b661e /config
parent59fc36c50289cdf53f4814e030a756dd9a970ebd (diff)
Update bind script
Diffstat (limited to 'config')
-rw-r--r--config/dns.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/dns.nix b/config/dns.nix
index aa36998..893c5c7 100644
--- a/config/dns.nix
+++ b/config/dns.nix
@@ -90,6 +90,8 @@ in
preStart = lib.mkAfter ''
#rm /var/run/named/*.jnl || true
#rm /var/run/named/*.jbk || true
+ echo "Clean bind journals"
+ ${pkgs.bind}/bin/rndc -k /etc/bind/rndc.key sync -clean
echo "Copy zone files"
for z in ${zone-files}/*; do
if [[ $z =~ .*dynamic.* && -e "/var/run/named/$(basename $z)" ]]; then