When logging BIND requests using rndc querylog, the logging defaults to /var/log/messages. Is it possible to change this logging destination and specify my own log file?

In the man pages for named.conf, there is a section on logging.

Just make sure that if you are using a chroot for your DNS service, that your log destination is interpreted properly.

Specifically, the syntax chart is as follows:

      logging {
            channel string {
                 file log_file;
                 syslog optional_facility;
                 severity log_severity;
                 print-time boolean;
                 print-severity boolean;
                 print-category boolean;
            category string { string; ... };

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.