You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Oracle Linux - How to Enable Logging for a BIND9 Server on Oracle Linux

Applies to:

Linux OS - Version Oracle Linux 7.0 and later

Goal:

Bind ( named ) does not log queries by default, this document shows how to enable query and query error logs.

Solution:

In /etc/named.conf add the following entries inside logging {} clause:

 logging {
   channel queries_log {
          file "/var/log/named/queries" versions 600 size 20m;
          print-time yes;
          print-category yes;
          print-severity yes;
          severity info;
     };
   channel query-errors_log {
          file "/var/log/named/query-errors" versions 5 size 20m;
          print-time yes;
          print-category yes;
          print-severity yes;
          severity dynamic;
     };
}

Note, please see "4.2.10.1. The channel Phrase" for details about versions , size and other arguments.

Next, create the log files

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!