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
logging{
channel query_logging {
file "/var/log/query.log" versions 3 size 10m;
severity debug 3;
print-time yes;
print-severity yes;
print-category yes;
};
category queries {
query_logging;
};
};
To turn on query logging while DNS service is running; you need to to rndc querylog and check the status with rndc status
shell> rndc querylog
shell> rndc status
version: 9.x.x
number of zones: 1200
debug level: 3
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is ON
recursive clients: 0/0/1000
tcp clients: 0/100
server is up and running
query logging is ON indicates that DNS query logging is activated.
Related posts:
- Bind Error: “max open files (3520) is smaller than max sockets (4096)” Just notice one of the DNS server has the error...
- PostgreSQL Database psql Command Line Query Sometime psql command line query can be useful when it...
- Reverse DNS Lookup with Dig Reverse DNS, in simple explanation it means that resolve your...
- How to Enable check_dns on Nagios Monitoring System Most user who are new to Nagios doesn’t know there...
- How to Flush DNS Cache in Apple Mac OSX Leopard Many of you might not know that beside Microsoft Windows...
- Configure IPV6 on Apple and Windows Do you have IPV6 network ready in your office? Lets...
- How to Find Your Closest Anycast DNS Server with Dig Most ISP deploys Anycast DNS server on their network and...