On Thu, Aug 21, 2008 at 7:06 AM, Jeff Lasman <[email protected]> wrote:
> On Wednesday 20 August 2008 03:14 pm, Greg Nolan wrote:
>
>> # turn it on
>> rndc querylog
>>
>> # watch it
>> tail -f /var/log/messages
>>
>> # turn it off
>> rndc querylog
>
> Thanks, Greg.  Is there a way to turn it on in the conf file?  Our
> public master servers restart themselves many times a day because of
> the way they sync up with hidden masters.  Do I have to rewrite the
> startup code, or can I set this to start in the conf file?

http://www.zytrax.com/books/dns/ch7/logging.html

Based on the example, it looks like you could enable query logging
with something like this:

logging{
  channel simple_log {
    file "/var/log/named/bind.log" versions 3 size 5m;
    severity warning;
    print-time yes;
    print-severity yes;
    print-category yes;
  };
  category default{
    simple_log;
  };
  channel query_log {
    file "/var/log/named/query.log" versions 3 size 10m;
    severity debug;
    print-time yes;
    print-severity yes;
    print-category yes;
  };
  category queries {
    query_log;
  };
};

That's untested, I just patterned it after the example on the URL quoted above.

-- 
Regards...      Todd

Reply via email to