openwrt使用chinadns-ng+adguard home实现无污染dns

openwrt使用lean大版本+helloworld,https://github.com/coolsnowwolf/lede

openwrt-chinadns-ng+luci,https://github.com/izilzty/luci-app-chinadns-ng https://github.com/pexcn/openwrt-chinadns-ng

openwrt-adguard home+luci,https://github.com/jliveusa/openwrt-adguardhome https://github.com/kongfl888/luci-app-adguardhome

dnsmasq重定向至127.0.0.1#5353

chinadns-ng:

监听端口 5353

监听地址 0.0.0.0

国内 DNS 服务器地址 119.29.29.29,223.5.5.5

可信 DNS 服务器地址 127.0.0.1#5335

查询超时时间 5秒

adguard home:监听端口 5335

上游 DNS 服务器:

https://dns.google/dns-query

https://dns.cloudflare.com/dns-query

https://dns.adguard.com/dns-query

https://doh.opendns.com/dns-query

Bootstrap DNS 服务器

119.29.29.29:53

223.5.5.5:53

helloworld使用本机端口为5335的dns服务

强制代理域名:dns.google

dns.cloudflare.com

dns.adguard.com

doh.opendns.com

强制走代理的WAN IP:

8.8.8.8

1.1.1.1

再写个脚本放计划任务自动更新Chinalist等,收工,国内外分流,速度嘎嘎的,关键不影响国内解析,防止家暴。

#!/bin/bash

PATH="/usr/sbin:/usr/bin:/sbin:/bin"

[ -d /etc/chinadns-ng ] || mkdir /etc/chinadns-ng

wget https://pexcn.me/daily/chnroute/chnroute.txt -O /tmp/chnroute.txt.tmp

mv -f /tmp/chnroute.txt.tmp /etc/chinadns-ng/chnroute.txt

wget https://pexcn.me/daily/chnroute/chnroute-v6.txt -O /tmp/chnroute-v6.txt.tmp

mv -f /tmp/chnroute-v6.txt.tmp /etc/chinadns-ng/chnroute6.txt

wget https://pexcn.me/daily/gfwlist/gfwlist.txt -O /tmp/gfwlist.txt.tmp

mv -f /tmp/gfwlist.txt.tmp /etc/chinadns-ng/gfwlist.txt

wget https://pexcn.me/daily/chinalist/chinalist.txt -O /tmp/chinalist.txt.tmp

mv -f /tmp/chinalist.txt.tmp /etc/chinadns-ng/chinalist.txt

你可能感兴趣的:(openwrt使用chinadns-ng+adguard home实现无污染dns)