Browse code

Add/edit content

Veselin Kolev authored on 21/12/2019 08:07:06
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,153 @@
1
+//logging configuration
2
+logging{
3
+
4
+  // Configuration file parsing and processing.
5
+
6
+  channel "config" {
7
+        file "/var/log/named/config.log" versions 4 size 2m;
8
+        severity info;
9
+        print-severity no;
10
+        print-time yes;
11
+        print-category yes;
12
+  };
13
+
14
+  // Processing of client requests.
15
+
16
+  channel "client" {
17
+        file "/var/log/named/client.log" versions 4 size 2m;
18
+        severity notice;
19
+        print-severity no;
20
+        print-time yes;
21
+        print-category yes;
22
+  };
23
+
24
+  // Messages relating to the databases used internally by the
25
+  // name server to store zone and cache data.
26
+
27
+  channel "database" {
28
+        file "/var/log/named/database.log" versions 4 size 2m;
29
+        severity info;
30
+        print-severity no;
31
+        print-time yes;
32
+        print-category yes;
33
+  };
34
+
35
+  // The default category defines the logging options for those
36
+  // categories where no specific configuration has been defined.
37
+
38
+  channel "default" {
39
+        file "/var/log/named/default.log" versions 8 size 2m;
40
+        severity info;
41
+        print-severity no;
42
+        print-time yes;
43
+        print-category yes;
44
+  };
45
+
46
+  // Delegation only. Logs queries that have have been forced
47
+  // to NXDOMAIN as the result of a delegation-only zone or a
48
+  // delegation-only in a hint or stub zone declaration.
49
+
50
+  channel "delegation-only" {
51
+        file "/var/log/named/delegation-only.log" versions 8 size 2m;
52
+        severity info;
53
+        print-severity no;
54
+        print-time yes;
55
+        print-category yes;
56
+  };
57
+
58
+ // Dispatching of incoming packets to the server modules where
59
+  // they are to be processed.
60
+
61
+  channel "dispatch" {
62
+        file "/var/log/named/dispatch.log" versions 4 size 2m;
63
+        severity info;
64
+        print-severity no;
65
+        print-time yes;
66
+        print-category yes;
67
+  };
68
+
69
+  // DNSSEC and TSIG protocol processing.
70
+
71
+  channel "dnssec" {
72
+        file "/var/log/named/dnssec.log" versions 8 size 2m;
73
+        severity info;
74
+        print-severity no;
75
+        print-time yes;
76
+        print-category yes;
77
+  };
78
+
79
+  // Lame servers. These are misconfigurations in remote servers,
80
+  // discovered by BIND 9 when trying to query those servers
81
+  // during resolution.
82
+
83
+  channel "lame-servers" {
84
+        file "/var/log/named/lame-servers.log" versions 16 size 2m;
85
+        severity info;
86
+        print-severity no;
87
+        print-time yes;
88
+        print-category yes;
89
+  };
90
+
91
+channel "network" {
92
+        file "/var/log/named/network.log" versions 2 size 2m;
93
+        severity info;
94
+        print-severity no;
95
+        print-time yes;
96
+        print-category yes;
97
+  };
98
+
99
+  // Specify where queries should be logged to.
100
+
101
+  channel "queries" {
102
+        file "/var/log/named/queries.log" versions 16 size 10m;
103
+        severity info;
104
+        print-severity no;
105
+        print-time yes;
106
+        print-category yes;
107
+  };
108
+
109
+ // DNS resolution, such as the recursive lookups performed on
110
+  // behalf of clients by a caching name server.
111
+
112
+  channel "resolver" {
113
+        file "/var/log/named/resolver.log" versions 4 size 2m;
114
+        severity info;
115
+        print-severity no;
116
+        print-time yes;
117
+        print-category yes;
118
+  };
119
+
120
+  // Approval and denial of requests.
121
+
122
+  channel "security" {
123
+        file "/var/log/named/security.log" versions 4 size 2m;
124
+        severity info;
125
+        print-severity no;
126
+        print-time yes;
127
+        print-category yes;
128
+  };
129
+
130
+  // Messages that named was unable to determine the class of or
131
+  // for which there was no matching view.
132
+
133
+  channel "unmatched" {
134
+        file "/var/log/named/unmatched.log" versions 4 size 2m;
135
+        severity info;
136
+        print-severity no;
137
+        print-time yes;
138
+        print-category yes;
139
+  };
140
+
141
+  category "database" { "database"; };
142
+  category "default" { "default"; };
143
+  category "delegation-only" { "delegation-only"; };
144
+  category "dispatch" { "dispatch"; };
145
+  category "dnssec" { "dnssec"; };
146
+  category "lame-servers" { "lame-servers"; };
147
+  category "network" { "network"; };
148
+  category "queries" { "queries"; };
149
+  category "resolver" { "resolver"; };
150
+  category "security" { "security"; };
151
+  category "unmatched" { "unmatched"; };
152
+
153
+};