I am trying to configure query logging on bind 9. Currently I have the following in my configuration file:<br><br>logging {<br>        channel warning_log<br>                {<br>                file "/var/adm/dns-logs/dns_warnings.log" versions 7 size 2G;<br>
                severity warning;<br>                print-category yes;<br>                print-severity yes;<br>                print-time yes;<br>                };<br>        channel query_log<br>                {<br>
                file "/var/adm/dns-logs/dns_query.log" versions 7 size 2G;<br>                severity debug 3;<br>                print-category yes;<br>                print-severity yes;<br>                print-time yes;<br>
                };<br>        category default { warning_log; } ;<br>        category queries { query_log; };<br>        category lame-servers { null; };<br>        category security { null; };<br>        category unmatched { null; };<br>
  };<br><br>According to the O Reilly book DNS and Bind (4th Edition) and the Bind 9 web docs the configuration above should log both the requested query and the response. Currently all I get back is the query:<br><br>29-Jan-2009 14:15:00.666 queries: info: client xxx.xxx.xxx.xxx#56766: query: 49.105.135.67.in-addr.arpa IN PTR +<br>
29-Jan-2009 14:15:00.730 queries: info: client xxx.xxx.xxx.xxx#45016: query: <a href="http://m1.search.yahoo-ht3.akadns.net">m1.search.yahoo-ht3.akadns.net</a> IN A +ED<br>29-Jan-2009 14:15:00.821 queries: info: client xxx.xxx.xxx.xxx#48060: query: <a href="http://liveupdate.symantec.d4p.net">liveupdate.symantec.d4p.net</a> IN A +ED<br>
29-Jan-2009 14:15:00.882 queries: info: client xxx.xxx.xxx.xxx#62480: query: <a href="http://businessweek.112.2o7.net">businessweek.112.2o7.net</a> IN A +ED<br>29-Jan-2009 14:15:00.891 queries: info: client xxx.xxx.xxx.xxx#22652: query: <a href="http://a973.g.akamai.net">a973.g.akamai.net</a> IN A +ED<br>
29-Jan-2009 14:15:00.900 queries: info: client xxx.xxx.xxx.xxx#49831: query: <a href="http://stats.surfaid.ihost.com">stats.surfaid.ihost.com</a> IN A +ED<br>29-Jan-2009 14:15:00.924 queries: info: client xxx.xxx.xxx.xxx#5606: query: <a href="http://www.pic2009.org">www.pic2009.org</a> IN A +ED<br>
29-Jan-2009 14:15:00.936 queries: info: client xxx.xxx.xxx.xxx#51641: query: <a href="http://www.yopoll.com">www.yopoll.com</a> IN A +ED<br>29-Jan-2009 14:15:00.946 queries: info: client xxx.xxx.xxx.xxx#6002: query: 174.162.127.222.in-addr.arpa IN PTR +ED<br>
<br>Even when I start bind using the -d option I do not get what I want. <br><br>Can someone help me out.<br><br>C<br><br><br><br>