Logging bad queries in Bind 8

Master Host hostmaster at dwave.net
Thu Dec 6 18:18:50 UTC 2001


Try the below... and see how that works. (your going to have to change the 
severity level to match what you want to do)

If that doesn't work you may want to play with syslog's config file.. in 
/etc/syslog.conf


logging {
channel specific_debug_level {
              file "foo";
              severity debug 3;
          };
};

At 12:52 PM 12/6/01 -0500, you wrote:

>I would like to know if there is a way to log messages specifically related
>to Reponses of query requests sent to and received from `relay'.
>For instance, I'm particularly interested in logging every `bad' or failed
>query (such as XNSD, etc..) received from a remote NS or sent to a resolver.
>What I'm trying to accomplish is to find out how many queries of this nature
>take place on my name server on a daily basis.
>
>I tried the following, in the named.conf's logging section:
>
>....
>..
>channel query_log {
>         file "/var/adm/named_queries.log";
>         severity warning; # I've also tried other severity levels. Non of
>them worked :(
>         };
>category queries {query_log;};
>...
>...
>
>Any suggestions would be appreciated.
>
>Farzad Hejazi



More information about the bind-users mailing list