Skip to content

Instantly share code, notes, and snippets.

@vjt
Created May 18, 2011 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vjt/979753 to your computer and use it in GitHub Desktop.
Save vjt/979753 to your computer and use it in GitHub Desktop.
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