Turn on DNS Query Log on Bind

You are running a recursive DNS server and would like to find out the statistic of your user browser behavior (Whether they browse Facebook or Google?). Turn on DNS query logs will allow you to find out the statistic. To turn on DNS query log in Bind, configure lines below on named.conf

To turn on query logging while DNS service is running; you need to to rndc querylog and check the status with rndc status

query logging is ON indicates that DNS query logging is activated.