Wednesday, September 26, 2007

Turning on bind query logging

If you want to turn on the query logging for bind, you can use the rndc command.

$ rndc querylog

To see whether your querylog is on or off, use this below command:

$ rndc status
$ /etc/init.d/named status

After running the above command, you can see these lines:

[root@secondary-dns ~]# rndc status
number of zones: 5
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is ON
recursive clients: 0/1000
tcp clients: 0/100
server is up and running

No comments: