Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
BIND logging
logging {
channel default_file {
file "/var/log/named/default.log" versions 3 size 5m;
severity dynamic;
print-time yes;
};
channel general_file {
file "/var/log/named/general.log" versions 3 size 5m;
severity dynamic;
print-time yes;
};
channel database_file {
file "/var/log/named/database.log" versions 3 size 5m;
severity dynamic;
print-time yes;
};
channel security_file {
file "/var/log/named/security.log" versions 3 size 5m;
severity dynamic;
print-time yes;
};
channel config_file {
file "/var/log/named/config.log" versions 3 size 5m;
severity dynamic;
print-time yes;
};
channel resolver_file {
file "/var/log/named/resolver.log" versions 3 size 5m;
severity dynamic;
print-time yes;
};
channel xfer-in_file {
file "/var/log/named/xfer-in.log" versions 3 size 5m;
severity dynamic;
print-time yes;
};
channel xfer-out_file {
file "/var/log/named/xfer-out.log" versions 3 size 5m;
severity dynamic;
print-time yes;
};
channel notify_file {
file "/var/log/named/notify.log" versions 3 size 5m;
severity dynamic;
print-time yes;
};
channel client_file {
file "/var/log/named/client.log" versions 3 size 5m;
severity dynamic;
print-time yes;
};
channel unmatched_file {
file "/var/log/named/unmatched.log" versions 3 size 5m;
severity dynamic;
print-time yes;
};
channel queries_file {
file "/var/log/named/queries.log" versions 3 size 5m;
severity dynamic;
print-time yes;
};
channel network_file {
file "/var/log/named/network.log" versions 3 size 5m;
severity dynamic;
print-time yes;
};
channel update_file {
file "/var/log/named/update.log" versions 3 size 5m;
severity dynamic;
print-time yes;
};
channel dispatch_file {
file "/var/log/named/dispatch.log" versions 3 size 5m;
severity dynamic;
print-time yes;
};
channel dnssec_file {
file "/var/log/named/dnssec.log" versions 3 size 5m;
severity dynamic;
print-time yes;
};
channel lame-servers_file {
file "/var/log/named/lame-servers.log" versions 3 size 5m;
severity dynamic;
print-time yes;
};
category default { default_file; };
category general { general_file; };
category database { database_file; };
category security { security_file; };
category config { config_file; };
category resolver { resolver_file; };
category xfer-in { xfer-in_file; };
category xfer-out { xfer-out_file; };
category notify { notify_file; };
category client { client_file; };
category unmatched { unmatched_file; };
category queries { queries_file; };
category network { network_file; };
category update { update_file; };
category dispatch { dispatch_file; };
category dnssec { dnssec_file; };
category lame-servers { lame-servers_file; };
};
$ ls -l
total 189977
-rw-r--r-- 1 bind bind 0 Jun 7 19:49 client.log
-rw-r--r-- 1 bind bind 0 Jun 7 19:49 config.log
-rw-r--r-- 1 bind bind 0 Jun 7 19:49 database.log
-rw-r--r-- 1 bind bind 604899 Jun 20 16:03 default.log
-rw-r--r-- 1 bind bind 0 Jun 7 19:49 dispatch.log
-rw-r--r-- 1 bind bind 0 Jun 7 19:49 dnssec.log
-rw-r--r-- 1 bind bind 2538632 Jun 20 14:28 general.log
-rw-r--r-- 1 bind bind 206461 Jun 20 16:00 lame-servers.log
-rw-r--r-- 1 bind bind 6554553 Jun 7 19:49 named.log
-rw-r--r-- 1 bind bind 52428861 Jun 7 12:17 named.log.0
-rw-r--r-- 1 bind bind 52428948 Jun 4 15:50 named.log.1
-rw-r--r-- 1 bind bind 52428801 Jun 1 12:34 named.log.2
-rw-r--r-- 1 bind bind 1518 Jun 20 01:25 network.log
-rw-r--r-- 1 bind bind 13099 Jun 20 01:25 notify.log
-rw-r--r-- 1 bind bind 3544963 Jun 20 16:06 queries.log
-rw-r--r-- 1 bind bind 5242882 Jun 20 12:10 queries.log.0
-rw-r--r-- 1 bind bind 5242920 Jun 20 05:17 queries.log.1
-rw-r--r-- 1 bind bind 5242990 Jun 19 21:26 queries.log.2
-rw-r--r-- 1 bind bind 0 Jun 7 19:49 resolver.log
-rw-r--r-- 1 bind bind 101158 Jun 20 15:48 security.log
-rw-r--r-- 1 bind bind 0 Jun 7 19:49 unmatched.log
-rw-r--r-- 1 bind bind 0 Jun 7 19:49 update.log
-rw-r--r-- 1 bind bind 1047529 Jun 20 14:29 xfer-in.log
-rw-r--r-- 1 bind bind 5242934 Jun 16 23:05 xfer-in.log.0
-rw-r--r-- 1 bind bind 212 Jun 10 00:55 xfer-out.log
$ ls -l
total 209
-rw-r--r-- 1 bind bind 0 Jun 18 18:22 client.log
-rw-r--r-- 1 bind bind 0 Jun 18 18:22 config.log
-rw-r--r-- 1 bind bind 0 Jun 18 18:22 database.log
-rw-r--r-- 1 bind bind 0 Jun 18 18:22 default.log
-rw-r--r-- 1 bind bind 0 Jun 18 18:22 dispatch.log
-rw-r--r-- 1 bind bind 0 Jun 18 18:22 dnssec.log
-rw-r--r-- 1 bind bind 38247 Jun 20 01:02 general.log
-rw-r--r-- 1 bind bind 0 Jun 18 18:22 lame-servers.log
-rw-r--r-- 1 bind bind 124 Jun 20 01:02 network.log
-rw-r--r-- 1 bind bind 5439 Jun 20 01:02 notify.log
-rw-r--r-- 1 bind bind 99059 Jun 20 16:09 queries.log
-rw-r--r-- 1 bind bind 0 Jun 18 18:22 resolver.log
-rw-r--r-- 1 bind bind 2930 Jun 20 01:01 security.log
-rw-r--r-- 1 bind bind 0 Jun 18 18:22 unmatched.log
-rw-r--r-- 1 bind bind 0 Jun 18 18:22 update.log
-rw-r--r-- 1 bind bind 0 Jun 18 18:22 xfer-in.log
-rw-r--r-- 1 bind bind 4690 Jun 20 01:08 xfer-out.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment