CourseOutline: bind-logging.txt

File bind-logging.txt, 1.1 KB (added by regnauld, 9 years ago)

DNS logging

Line 
1Add the following logging section in your named.conf, and
2restart bind.
3
4Then check that logs are being created in /etc/namedb/log:
5
6
7options {
8    ...
9};
10
11logging {
12        // Channels
13
14        channel transfers {
15            file "log/transfers" versions 3 size 10M;
16            print-time yes;
17        };
18        channel notify {
19            file "log/notify" versions 3 size 10M;
20            print-time yes;
21        };
22        channel dnssec {
23            file "log/dnssec" versions 3 size 10M;
24            print-time yes;
25        };
26        channel query {
27            file "log/query" versions 5 size 10M;
28            print-time yes;
29        };
30        channel general {
31            file "log/general" versions 3 size 10M;
32            print-time yes;
33        };
34
35        // Categories
36
37        category xfer-out { transfers; };
38        category xfer-in { transfers; };
39        category notify { notify; };
40
41        category lame-servers { general; };
42        category config { general; };
43        category default { general; };
44        category security{ general; };
45
46        // category queries { query };
47
48};
49
50zone "..." {
51    ...
52};