How to enable Bind DNS logs

Tested on: CentOS 7

You can enable Bind DNS logs by using the following command:

rndc querylog (switches the logs on if they are off)

Logs will be submitted to messages file by default, tail the messages log to test DNS query logging:

tail -f /var/log/messages

To switch off the logs simply rerun the rndc command:

rndc querylog (swithces the logs off if they are on)

Leave a Reply

Your email address will not be published. Required fields are marked *