Browse code

Named etc

Veselin Kolev authored on 16/12/2019 07:14:20
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,209 @@
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 debug 10;
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
+  // The NOTIFY protocol.
100
+
101
+  channel "notify" {
102
+        file "/var/log/named/notify.log" versions 16 size 256k;
103
+        severity info;
104
+        print-severity no;
105
+        print-time yes;
106
+        print-category yes;
107
+  };
108
+
109
+  // Specify where queries should be logged to.
110
+
111
+  channel "queries" {
112
+        file "/var/log/named/queries.log" versions 16 size 10m;
113
+        severity info;
114
+        print-severity no;
115
+        print-time yes;
116
+        print-category yes;
117
+  };
118
+
119
+  // DNS resolution, such as the recursive lookups performed on 
120
+  // behalf of clients by a caching name server.
121
+
122
+  channel "resolver" {
123
+        file "/var/log/named/resolver.log" versions 4 size 2m;
124
+        severity info;
125
+        print-severity no;
126
+        print-time yes;
127
+        print-category yes;
128
+  };
129
+
130
+  // Approval and denial of requests.
131
+
132
+  channel "security" {
133
+        file "/var/log/named/security.log" versions 4 size 2m;
134
+        severity info;
135
+        print-severity no;
136
+        print-time yes;
137
+        print-category yes;
138
+  };
139
+
140
+  // Messages that named was unable to determine the class of or
141
+  // for which there was no matching view.
142
+
143
+  channel "unmatched" {
144
+        file "/var/log/named/unmatched.log" versions 4 size 2m;
145
+        severity info;
146
+        print-severity no;
147
+        print-time yes;
148
+        print-category yes;
149
+  };
150
+
151
+  // Dynamic updates.
152
+
153
+  channel "update" {
154
+        file "/var/log/named/update.log" versions 16 size 2m;
155
+        severity debug 10;
156
+        print-severity no;
157
+        print-time yes;
158
+        print-category yes;
159
+  };
160
+
161
+  // Approval and denial of update requests.
162
+
163
+  channel "update-security" {
164
+        file "/var/log/named/update-security.log" versions 16 size 2m;
165
+        severity debug 10;
166
+        print-severity no;
167
+        print-time yes;
168
+        print-category yes;
169
+  };
170
+
171
+  // Zone transfers the server is receiving.
172
+
173
+  channel "xfer-in" {
174
+        file "/var/log/named/xfer-in.log" versions 16 size 2m;
175
+        severity info;
176
+        print-severity no;
177
+        print-time yes;
178
+        print-category yes;
179
+  };
180
+
181
+  // Zone transfers the server is sending. 
182
+
183
+  channel "xfer-out" {
184
+        file "/var/log/named/xfer-out.log" versions 16 size 2m;
185
+        severity info;
186
+        print-severity no;
187
+        print-time yes;
188
+        print-category yes;
189
+  };
190
+
191
+  category "database" { "database"; };
192
+  category "default" { "default"; };
193
+  category "delegation-only" { "delegation-only"; };
194
+  category "dispatch" { "dispatch"; };
195
+  category "dnssec" { "dnssec"; };
196
+  category "lame-servers" { "lame-servers"; };
197
+  category "network" { "network"; };
198
+  category "notify" { "notify"; };
199
+  category "queries" { "queries"; };
200
+  category "resolver" { "resolver"; };
201
+  category "security" { "security"; };
202
+  category "unmatched" { "unmatched"; };
203
+  category "update"  { "update"; };
204
+  category "update-security"  { "update-security"; };
205
+  category "xfer-in" { "xfer-in"; };
206
+  category "xfer-out" { "xfer-out"; };
207
+
208
+};
209
+