-
Notifications
You must be signed in to change notification settings - Fork 1
/
full.yaml
79 lines (79 loc) · 1.91 KB
/
full.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
68
69
70
71
72
73
74
75
76
77
78
79
log:
file: ./mosdns.log
level: info
api:
http: 127.0.0.1:9081
plugins:
- tag: tag_cache
type: cache
args:
size: 10240
lazy_cache_ttl: 259200
dump_file: ./cache.dump
dump_interval: 3600
- tag: forward_alidns
type: forward
args:
upstreams:
- tag: alidns_main
addr: "https://223.5.5.5/dns-query"
enable_http3: true
- tag: alidns_backup
addr: "https://223.6.6.6/dns-query"
enable_http3: true
- tag: forward_tailscale
type: forward
args:
upstreams:
- tag: tailscale_tcp
addr: "tcp://100.78.77.61:10053"
enable_pipeline: true
- tag: tailscale_udp
addr: "100.78.77.61:10053"
- tag: forward_warp
type: forward
args:
upstreams:
- tag: clash_warp
addr: "https://your.cloudflare-gateway.com/dns-query"
dial_addr: "162.159.36.20"
bootstrap: "223.5.5.5"
socks5: "127.0.0.1:7890"
enable_http3: true
- tag: tag_fallback
type: "fallback"
args:
primary: forward_tailscale
secondary: forward_warp
threshold: 100
always_standby: true
- tag: main
type: sequence
args:
- matches:
- qtype 12 65 # PTR HTTPS
- qname domain:.lan
exec: reject 0
- exec: $tag_cache
- matches: has_resp
exec: accept
- matches: qname &/etc/mosdns/rules/china_domain_list.txt &/etc/mosdns/rules/cdn_domain_list.txt &/etc/mosdns/ecs_cn_domain.txt
exec: $forward_alidns
- matches: has_resp
exec: accept
- exec: $tag_fallback
- tag: alidns
type: sequence
args:
- exec: $tag_cache
- matches: has_resp
exec: accept
- exec: $forward_alidns
- type: udp_server
args:
entry: main
listen: 0.0.0.0:5533
- type: udp_server
args:
entry: alidns
listen: 0.0.0.0:53