-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
use-case-6.yml
32 lines (29 loc) · 1.1 KB
/
use-case-6.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
# This configuration sets up DNS traffic monitoring through DNStap on port 6000;
# applies transformations, and logs the processed data to the console in text format.
#
# As prerequisites, we assume you have
# - a DNS server which supports DNSTap (unbound, bind, powerdns, etc) for more informations about dnstap,
# read the following page: https://dmachard.github.io/posts/0001-dnstap-testing/
# If turned on, debug messages are printed in the standard output
global:
trace:
verbose: true
pipelines:
# Listen on tcp/6000 for incoming DNSTap protobuf messages from dns servers
# and apply some transformations to apply user privacy by reducing user IP
# and the requested domain: doc/configuration.md#user-privacy
- name: tap
dnstap:
listen-ip: 0.0.0.0
listen-port: 6000
transforms:
user-privacy:
anonymize-ip: true
minimaze-qname: true
# Routes DNS messages from the tap collector to standard output
routing-policy:
forward: [ console ]
# Print DNS messages on standard output with TEXT format
- name: console
stdout:
mode: text