-
Notifications
You must be signed in to change notification settings - Fork 2
/
conf.yaml.example
85 lines (67 loc) · 1.85 KB
/
conf.yaml.example
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Cache DNS replies
enable_lru_cache: true
lru_cache_size: 100
# Listen on the following IP address and port
host: 127.0.0.1
port: 53
socket_timeout: 20
# DNS resolvers to forward queries to
resolvers: ['208.67.222.222:53', '208.67.220.220:53']
# Use Tor to perform DNS resolution
tor_socks_ipaddr: '127.0.0.1'
tor_socks_port: 9050
# Filtering rules
#
# Like in netfilter, the rules are processed in sequence until a match is found.
# The default values are:
#
# action: drop # Can be accept, nxdomain, return, drop
# dnscrypt: false # Use DNSCrypt
# processname: * # Match process name
# tcp: false # Use TCP instead of UDP
# tor: false # Resolve over Tor
# username: * # Match username
# warn: false # Log match
# zone: * # Match zone
filtering:
# drop all queries to drop.net
- zone: drop.net
action: drop
# resolve a domain using custom resolvers
- zone: custom_resolvers.net
action: accept
resolvers: ['208.67.222.222:53', '208.67.220.220:53']
# return nxdomain for nxdomain.net
- zone: nxdomain.net
action: nxdomain
# return nxdomain to netcat
- processname: nc
action: nxdomain
# return nxdomain to an user
- username: foo
action: nxdomain
# return 127.0.0.1 for return1.net
- zone: return1.net
action: return 127.0.0.1
# resolve in TCP
- zone: tcp.net
action: accept
tcp: true
# resolve using dnscrypt
- zone: dnscrypt.net
dnscrypt: true
action: accept
# resolve using dnscrypt over Tor
- zone: dnscrypt_tor.net
dnscrypt: true
tor: true
action: accept
# resolve using Tor
- zone: tor.net
tor: true
action: accept
# forward every other request to the DNS resolvers, but warn
- action: accept
warn: true
# forward every other request to the DNS resolvers
- action: accept