[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
This commit is contained in:
azerttyu 2017-10-08 16:25:58 +02:00
parent df542298f9
commit 864e5daee7
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ dns_named_conf() {
# (the zone file is already created and populated) # (the zone file is already created and populated)
$RNDC reconfig $RNDC reconfig
# Hook it ! # 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 fi
} }
@ -104,7 +104,7 @@ dns_delete() {
# Ask the dns server for restart # Ask the dns server for restart
$RNDC reconfig $RNDC reconfig
# Hook it ! # 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 # DNS regenerate