Oracle Linux - How to Enable Logging for a BIND9 Server on Oracle Linux
in 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
0