[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:
parent
df542298f9
commit
864e5daee7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue