Skip to content

Instantly share code, notes, and snippets.

@vjt
Created May 18, 2011
Embed
What would you like to do?
flush bind journal files
#!/bin/sh
# Freeze and thaw dyndns zones in order to flush
# BIND journal files.
#
# - vjt Thu May 19 00:34:13 CEST 2011
#
ZONES="example.com example.net 3.2.1.in-addr.arpa"
for zone in $ZONES; do
rndc freeze $zone || continue
rndc unfreeze $zone >/dev/null
done
# Quite simple. :-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment