The following commands enable, follow in real-time and disable the querylog entries for when you’re trying to troubleshoot or watch the connection.

1. Enable: sudo rndc querylog
2. Follow: sudo journalctl -f
3. Disable: sudo rndc querylog