]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
update-rpzs: Reload DNS after we updated the zones
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 21 May 2026 15:49:23 +0000 (16:49 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 21 May 2026 15:49:23 +0000 (16:49 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/update-rpzs

index 663ec2b554682e0981431425ebb083a190050e0e..51a29b305979b4780dfbac3d9aeca9662d229906 100644 (file)
@@ -75,6 +75,11 @@ main() {
                zone-sync "${ZONE_SYNC_ARGS[@]}" --primary="${primary}"  "${zones[@]}" || failed=$?
        done
 
+       # Reload DNS if things went well
+       if [ ${failed} -eq 0 ]; then
+               /usr/local/bin/dnsctrl reload
+       fi
+
        return ${failed}
 }