forked from dmachard/DNS-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuse-case-8.yml
39 lines (35 loc) · 1.05 KB
/
use-case-8.yml
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
# Example 8: Multiple PowerDNS collectors
#
# As prerequisites, we assume you have
# - a PowerDNS DNS server which protobuf enabled
# If turned on, debug messages are printed in the standard output
global:
trace:
verbose: true
multiplexer:
# Listen on tcp/6000 and tcp/6001 for internal/internet DNS
# with protobuf PowerDNS messages: https://dnsdist.org/reference/protobuf.html
collectors:
- name: pdns_internal
powerdns:
listen-ip: 0.0.0.0
listen-port: 6000
- name: pdns_internet
powerdns:
listen-ip: 0.0.0.0
listen-port: 6001
# Write DNS logs to a local files in TEXT format
loggers:
- name: file_internal
logfile:
file-path: "/var/tap/dnscollector_internal.log"
- name: file_internet
logfile:
file-path: "/var/tap/dnscollector_internet.log"
# Routes the pdns_internal stream to internal file
# and pdns_internet steram to internet file
routes:
- from: [ pdns_internal ]
to: [ file_internal ]
- from: [pdns_internet ]
to: [ file_internet ]