summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
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