vi /etc/bind/named.conf
logging {
channel query {
file "/var/log/bind9/query.log" versions 2 size 1m;
print-time yes;
// Set the severity to dynamic to see all the debug messages
severity info;
};
category queries { query; };
};
mkdir -p /var/log/bind9
chown bind:bind /var/log/bind9
service bind9 restart
cd /etc/munin/plugins
ln -s /usr/share/munin/plugins/bind9
service munin-node restart
munin-run bind9
query_TXT.value 14007
query_A.value 133028
query_AAAA.value 15141
query_ANY.value 6
query_SRV.value 2005
query_PTR.value 482774
query_CNAME.value 20
query_NS.value 2220
query_MX.value 7177
query_other.value 0