-
Notifications
You must be signed in to change notification settings - Fork 0
/
Corefile
73 lines (65 loc) · 1.56 KB
/
Corefile
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
.:53 {
# coreadblock . {
# except ad.360in.com
# url https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
# url https://adaway.org/hosts.txt
# ip 127.0.0.1
# }
forward . 127.0.0.1:5301 127.0.0.1:5302 127.0.0.1:5304 127.0.0.1:5303 {
policy round_robin
prefer_udp
expire 120s
}
proxy . 223.5.5.5 223.6.6.6 119.29.29.29 119.28.28.28 114.114.114.114 {
policy round_robin
spray
}
cache 60 {
success 5000
denial 200
prefetch 5
}
#log . "{remote}:{port} - {>id} '{type} {class} {name} {proto} {size} {>do} {>bufsize}' {rcode} {>rflags} {rsize} {duration}"
log . "{duration} - {rcode} - {name} "
health
errors
prometheus 0.0.0.0:9053
}
.:5301 {
forward . tls://8.8.8.8 tls://8.8.4.4 {
tls_servername dns.google
policy round_robin
expire 120s
max_fails 3
health_check 1s
}
cache
}
.:5302 {
forward . tls://1.1.1.1 tls://1.0.0.1 {
tls_servername 1dot1dot1dot1.cloudflare-dns.com
policy round_robin
expire 120s
max_fails 3
health_check 1s
}
cache
}
.:5303 {
forward . tls://9.9.9.9 tls://9.9.9.10 {
tls_servername dns.quad9.net
policy round_robin
expire 120s
max_fails 3
health_check 1s
}
cache
}
.:5304 {
proxy . 208.67.222.222:443 208.67.222.222:5353 208.67.220.220:443 208.67.220.220:5353 {
policy round_robin
protocol dns force_tcp
spray
}
cache
}