Created
May 18, 2011 22:36
-
-
Save vjt/979753 to your computer and use it in GitHub Desktop.
flush bind journal files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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