forked from dmachard/go-dnscollector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
use-case-8.yml
38 lines (33 loc) · 1.09 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
# This configuration sets up DNS traffic monitoring through PowerDNS Protobuf on port 6000 and port 6001;
# and save-it in specific log files as text format.
#
# 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
pipelines:
# Listen on tcp/6000 and tcp/6001 for internal/internet DNS
# with protobuf PowerDNS messages: https://dnsdist.org/reference/protobuf.html
- name: pdns_internal
powerdns:
listen-ip: 0.0.0.0
listen-port: 6000
# Routes the pdns_internal stream to internal file
# and pdns_internet steram to internet file
routing-policy:
forward: [ file_internal ]
- name: pdns_internet
powerdns:
listen-ip: 0.0.0.0
listen-port: 6001
routing-policy:
forward: [ file_internet ]
# Write DNS logs to a local files in TEXT format
- name: file_internal
logfile:
file-path: "/tmp/dnscollector_internal.log"
- name: file_internet
logfile:
file-path: "/tmp/dnscollector_internet.log"