From 864e5daee70c3eb95ecc9e654add122ca08d40c6 Mon Sep 17 00:00:00 2001 From: azerttyu Date: Sun, 8 Oct 2017 16:25:58 +0200 Subject: [PATCH] [enh] Notify dns hook when any change is done to any domain * When a domain is updated, added or removed we notify wich domain is concerned --- src/functions_dns.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functions_dns.sh b/src/functions_dns.sh index 8f81e313..7ec2f602 100755 --- a/src/functions_dns.sh +++ b/src/functions_dns.sh @@ -76,7 +76,7 @@ dns_named_conf() { # (the zone file is already created and populated) $RNDC reconfig # Hook it ! - run-parts --arg=dns_reconfig /usr/lib/alternc/reload.d + run-parts --arg=dns_reconfig --arg="$domain" /usr/lib/alternc/reload.d fi } @@ -104,7 +104,7 @@ dns_delete() { # Ask the dns server for restart $RNDC reconfig # Hook it ! - run-parts --arg=dns_reconfig /usr/lib/alternc/reload.d + run-parts --arg=dns_reconfig --arg="$domain" /usr/lib/alternc/reload.d } # DNS regenerate