Skip to content

Instantly share code, notes, and snippets.

@chigh
Created March 19, 2017 23:48
Show Gist options
  • Save chigh/08b27fddd14ac3a462870504d1dffd70 to your computer and use it in GitHub Desktop.
Save chigh/08b27fddd14ac3a462870504d1dffd70 to your computer and use it in GitHub Desktop.
BIND logging
logging {
channel default {
file "log/default.log" versions 3 size 10m;
print-time yes;
print-category yes;
};
channel dnssec {
file "log/dnssec.log" versions 3 size 10m;
severity debug;
print-time yes;
print-severity yes;
print-category yes;
};
channel query {
file "log/query.log" versions 3 size 10m;
print-time yes;
};
channel rpz {
file "log/rpz.log" versions 3 size 10m;
print-time yes;
};
// channel queryerr {
// file "log/queryerr.log" versions 3 size 10m;
// severity debug;
// print-time yes;
// print-severity yes;
// };
// channel unmatched {
// file "log/unmatched.log" versions 3 size 10m;
// print-time yes;
// print-category yes;
// };
// channel syslog {
// syslog local7;
// //severity debug;
// print-time yes;
// print-category yes;
// };
// By default, everything goes to the default category/channel
// category client { default; syslog; };
// category config { default; };
category default { default; };
// category delegation-only { default; };
// category dispatch { default; };
category dnssec { dnssec; };
category edns-disabled { null; };
// category general { default; };
category lame-servers { null; };
// category network { default; };
// category notify { default; };
// category queries { query; };
// category query-errors { query; };
// category resolver { default; };
category rpz { rpz; };
// category security { default; };
// category unmatched { unmatched; };
// category update { default; };
// category update-security { default; };
// category xfer-in { default; };
// category xfer-out { default; };
};
// statistics-channels {
// inet 127.0.0.1 port 8080 allow { 127.0.0.1; };
// };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment