forked from compassd/dcompass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.yaml
67 lines (61 loc) · 882 Bytes
/
example.yaml
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
---
verbosity: 'info'
cache_size: 4096
address: 0.0.0.0:2053
table:
- tag: start
if:
qtype:
- AAAA
then:
# A list of actions is allowed here
- disable
# The next tag to go
- end
else:
- dispatch
- tag: dispatch
if: any
then:
- query: domestic
- check_secure
- tag: check_secure
if:
geoip:
on: resp
codes:
- CN
else:
- query: secure
- end
upstreams:
- method:
udp:
addr: 114.114.114.114:53
tag: 114DNS
- method:
udp:
addr: 223.6.6.6:53
tag: Ali
- method:
hybrid:
- 114DNS
- Ali
tag: domestic
- method:
https:
no_sni: true
name: cloudflare-dns.com
addr: 1.1.1.1:443
tag: cloudflare
- method:
https:
no_sni: true
name: dns.quad9.net
addr: 9.9.9.9:443
tag: quad9
- method:
hybrid:
- cloudflare
- quad9
tag: secure