Last active
January 5, 2023 19:18
-
-
Save gpant/2f52dd7d861f9067dec76f53b6117787 to your computer and use it in GitHub Desktop.
Bind Update Statistics
This file contains hidden or 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
| Create a cron entry like this: | |
| * * * * * /home/bindstats.sh > /dev/null 2>&1 | |
| Create the file /home/bindstats.sh and paste the following: | |
| #!/bin/bash | |
| if [ -f /var/named/data/named_stats.txt ]; then | |
| rm /var/named/data/named_stats.txt | |
| fi | |
| /usr/sbin/rndc stats | |
| Make the script executable: | |
| chmod +x /home/bindstats.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment