blob: 3e4637f744822bf86093435290b62a6e40a15b25 (
plain)
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
|
[server]
listen_udp = ":5354"
listen_tcp = ":5354"
listen_doh = ":8443"
[cache]
max_entries = 100000
db_path = "/tmp/cache.db"
[resolver]
mode = "forward"
timeout = "2s"
max_delegations = 30
forwarders = ["1.1.1.1"]
[blocklist]
response = "zero_ip"
files = ["etc/blocklist/*.txt"]
#urls = [
# "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts",
#]
[admin]
listen = "127.0.0.1:8080"
[acl]
allow = ["127.0.0.1/8", "::1/128"]
rate_limit_qps = 50
rate_limit_burst = 10
[log]
level = "info"
|