Cannot get BIND logs to write to the correct file.

Jeremy C. Reed jreed at isc.org
Mon May 2 19:09:48 UTC 2016


On Mon, 2 May 2016, Sean Son wrote:

> I am trying to get BIND to write its logs to two files:
> 
> /var/log/named/named.log
> 
> and
> 
> /var/log/named/dnsreqs.log
> 
> 
> No matter what I do , the logs are still being written to
> /var/named/data/named.run
> 
> Here is the part of my named.conf which deals with logging:
> 
> logging {
>         channel default_debug {
>                 file "data/named.run";
>                 severity dynamic;
>         };
>          channel default_info {
>                 file "/var/log/named/named.log";
>                 print-time yes;
>                 print-category yes;
>                 print-severity yes;
>         };
>         channel log_requests {
>                 file "/var/log/named/dnsreqs.log";
>                 print-time yes;
>                 print-category yes;
>                 print-severity yes;
>         };
>       category lame-servers { null; };
> 
> };
> 
> 
> The default_info and log_requests sections were copied from an older BIND
> server that we are running. I am upgrading to a new version of Red Hat Linux
> as well as a new version of BIND on a different server.
> 
> Any help is greatly appreciated! What am I doing wrong here?

Hi Sean,

Also use a "category" configuration.  For example:

category default { default_info; };

category queries { log_requests; };

(If not, you may want to tell us what specifically you do and maybe 
don't want logged.)

Jeremy C. Reed




More information about the bind-users mailing list