forked from dmachard/dnsdist-config-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogging_protobuf.yml
More file actions
54 lines (47 loc) · 1021 Bytes
/
logging_protobuf.yml
File metadata and controls
54 lines (47 loc) · 1021 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
acl:
- 0.0.0.0/0
binds:
- listen_address: "0.0.0.0:53"
reuseport: true
protocol: Do53
threads: 2
backends:
- address: "1.1.1.1:53"
protocol: Do53
pools:
- default
remote_logging:
protobuf_loggers:
- name: protobuf_logging
address: 192.168.1.16:6001
connection_count: 2
query_rules:
- name: "log all queries with protobuf"
selector:
type: All
action:
type: RemoteLog
server_id: dnsdist_v2
logger_name: protobuf_logging
- name: "default rule"
selector:
type: All
action:
type: Pool
pool_name: default
response_rules:
- name: "log all responses with protobuf"
selector:
type: All
action:
type: RemoteLog
server_id: dnsdist_v2
logger_name: protobuf_logging
cache_hit_response_rules:
- name: "log all responses from cache with protobuf"
selector:
type: All
action:
type: RemoteLog
server_id: dnsdist_v2_cache
logger_name: protobuf_logging