Bind DNS Query Logging

on July 5, 2013, 8:17 p.m.

Turn on logging
rndc querylog

View bind sever query log
tail -f /var/log/syslog

Turn off logging
rndc querylog

To permanently turn it on, modify the config file


# vi /etc/named.conf
...
options {
querylog yes;
}

...
logging {
channel querylog {
file "/var/log/querylog";
severity debug 3;
};
};