All pastes #718636 Raw Edit

Stuff

public text v1 · immutable
#718636 ·published 2007-09-28 16:12 UTC
rendered paste body
##############################################################################
## File: /etc/default/lire.d/local-bind_queries.cfg
##
## see lr_vendor_cron(1)
##
service=bind9_query
daemon=/bin/true
rotateperiod=weekly
logfile=/var/log/bind/queries.log.1
filter=cat

##############################################################################
## File /etc/logrotate.d/local-bind_queries
##

/var/log/bind/queries.log {
        weekly
        compress
        delaycompress
        rotate 99
        missingok
        create 644 bind bind
        postrotate
           test ! -e /var/run/bind/run/named.pid || /usr/sbin/rndc reload
        endscript
}
//////////////////////////////////////////////////////////////////////////////
// File: /etc/bind/named.conf.logging
//

logging {
        // NOTE: the log directory must be created manually:
        // mkdir /var/log/bind; chgrp bind /var/log/bind; chmod 2775 /var/log/bind; ls -ld /var/log/bind
        channel "queries_log" {
                //file "/var/log/bind/queries.log" versions 5 size 1m;
                file "/var/log/bind/queries.log";
                severity info;
                print-time yes;
                print-category no;
                print-severity yes;
                };

//        category "queries" {
//              "queries_log";
//              };

        channel "security_log" {
                //file "/var/log/security.log" versions 5 size 5m;
                file "/var/log/bind/security.log";
                //severity debug;
                severity info;
                print-time yes;
                //print-category yes;
                print-category no;
                print-severity yes;
                };

        category "security" {
                "security_log";
                };
};