[SATLUG] Monitoring BIND queries
Sean Carolan
scarolan at gmail.com
Fri Nov 16 09:16:40 CST 2007
> ># category queries {queries_file; default_debug;};
> >
> >How can I limit this to hosts in only one particular zone? This
> >server is an authoritative nameserver for the zone in question.
>
> The part quoted above also looks right, and I think what you could do
> is put this into a logging{}; statement that is contained within the
> zone definition. So, for anything inside of the zone you'd do all
> the logging you specify and you would not be doing query logging for
> anything outside of it.
I tried this a couple of different ways and didn't have much luck.
First I tried putting a logging statement into the zone definition,
but left the channel statement in the main named.conf file:
zone "domain.com" {
type master;
file "primary/domain.com";
logging { category queries {queries_file; default_debug;}; };
};
Next I tried putting the channel *and* the category statements into
the zone definition:
zone "domain.com" {
type master;
file "primary/domain.com";
logging {
channel queries_file {
file "/var/log/named.queries" size 100M;
print-category yes;
severity info;
print-severity yes;
print-time yes;
};
category queries {queries_file; default_debug;};
};
};
That didn't work either. What am I missing here?
More information about the SATLUG
mailing list