-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmartdns&chinadns-ng
57 lines (43 loc) · 2.08 KB
/
smartdns&chinadns-ng
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
#chianadns-ng,过滤ipv4.txt
-d gfw -b :: -c 198.18.0.2 -t 198.18.0.2 -m /opt/app/chinadns_ng/chnlist.txt -g /opt/app/chinadns_ng/gfwlist.txt --group ipv4 --group-dnl /opt/ipv4.txt --group-upstream 127.0.0.1#8052 -N tag:ipv4
#chianadns-ng,过滤广告
-d chn -b :: -c tcp://::#8051,198.18.0.2 -t 198.18.0.2 -m /opt/app/chinadns_ng/chnlist.txt,/opt/cn.txt -g /opt/app/chinadns_ng/gfwlist.txt,/opt/ipv4.txt --group ad --group-dnl /opt/cn.txt --group-upstream tcp://::#8051
# gfwlist的域名集,路径是sstproxy的,chinadns-ng也有相同文件
domain-set -name gfwlist -file /opt/app/ss_tproxy/rule/gfwlist.txt
conf-file /opt/anti-ad-for-smartdns.conf
domain-set -name gfw -file /opt/gfw.txt
domain-set -name cn -file /opt/cn.txt
edns自已定义ip
[2409:8080:0:4:2c6:2f6:2:0]/128
[2409:8080::]/56
server 211.137.191.27 -group china
server 2409:803C:2000:2::27 -group china
server 2409:803C:2000:4::131 -group china
bind 0.0.0.0:8051 -group china -no-cache
bind 0.0.0.0:8052 -group office -dualstack-ip-selection yes
# 推荐的安全DNS
#server [fe80::21c:c2ff:fe26:369b]:5353 -group office
# Google DNS
server-https https://[2001:4860:4860::8844]/dns-query -group office
server-https https://[2001:4860:4860::8888]/dns-query -group office
server-tls [2001:4860:4860::8888] -group office
server-tls [2001:4860:4860::8844] -group office
# OpenDNS
server-https https://[2620:119:53::53]/dns-query -group office
server-https https://[2620:119:35::35]/dns-query -group office
server-tls dns.opendns.com -group office
server-https https://doh.opendns.com/dns-query
# Cloudflare DNS
server-https https://cloudflare-dns.com/dns-query -group office
server-https https://dns.cloudflare.com/dns-query -group office
server-tls 1.1.1.1 -group office
# 测速模式选择(非必要)
speed-check-mode none
# 舍弃gfwlist域名集的ipv6解析,让代理流量正确进入代理工具
address /domain-set:ipv6/#6
nameserver /bing.com/office
nameserver /blocktempo.com/office
# edns客户端子网
# edns-client-subnet [ip/subnet]
# edns-client-subnet 203.142.125.24
# edns-client-subnet 2401:3000:a011::FFFF:6F10:A527