MoonPoint Support Logo


Shop Amazon Warehouse Deals - Deep Discounts on Open-box and Used ProductsAmazon Warehouse Deals

Advanced Search
Sun Mon Tue Wed Thu Fri Sat

Mon, May 11, 2009 9:15 pm

DNS Query Logging in Bind

BIND does not log DNS queries by default. If you want to log DNS queries, you will need to add code similar to the following to named.conf:
logging {
    channel query_logging {
         file "/var/log/named_querylog"
         versions 3 size 100M;
         print-time yes;                 // timestamp log entries

      category queries {

To have the change take effect, you need to kill the named process and restart it , e.g. kill `cat path_to/` followed by /usr/sbin/in.named to restart the service. You should then be able to view the log of DNS queries.

# cat /var/log/named_querylog
11-May-2009 17:00:34.885 XX /
11-May-2009 17:00:36.097 XX /
11-May-2009 17:00:39.883 XX /

[ More Info ]

[/network/dns] permanent link

Once You Know, You Newegg AliExpress by

Shop Amazon Local - Subscribe to Deals in Your Neighborhood

Valid HTML 4.01 Transitional

Privacy Policy   Contact

Blosxom logo