Re: Cannot get BIND logs to write to the correct file.

2016-05-02 Thread Jeremy C. Reed
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


___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Cannot get BIND logs to write to the correct file.

2016-05-02 Thread Sean Son
Hello all

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?


Thanks!


Sincerely

BIND N00b
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users