OpenWrt/Me/Smartdns

OpenWrt/Me/Smartdns

/etc/smartdns/custom.conf

server 114.114.114.114 -exclude-default-group -group local
nameserver /cloudflare-dns.com/local
nameserver /rubyfish.cn/local
nameserver /sagan.me/local

#server server.example.com
server 127.0.0.1:7874
server-https 1.0.0.1  -no-check-certificate
server-https 9.9.9.9  -no-check-certificate
server-https https://dns.rubyfish.cn/dns-query -no-check-certificate

#log-level debug
#log-file /tmp/smartdns.log

force-AAAA-SOA yes

conf-file /etc/smartdns/accelerated-domains.china.smartdns.conf
conf-file /etc/smartdns/google.china.smartdns.conf
conf-file /etc/smartdns/apple.china.smartdns.conf
conf-file /etc/smartdns/anti-ad-smartdns.conf

配置说明

127.0.0.1:7874 : openclash DNS 监听端口。

server.example.com : 在国内 VPS 上自行架设的抗劫持 DNS 服务器。

dns.rubyfish.cn : 红鱼 DNS 提供的 DoH 服务器地址。

accelerated-domains.china.smartdns.conf, google.china.smartdns.conf, apple.china.smartdns.conf : dnsmasq-china-list 提供的中国域名 dnsmasq 列表处理转换后生成的 smartdns 格式配置。

anti-ad-smartdns.conf : anti-AD 项目提供的 smartdns 格式去广告 DNS 屏蔽列表。

备注

(2020-05) smartdns 官方的 openwrt-mipsel release 版本(静态编译) DoT 和 DoH 有问题,无法正常解析。

server-https https://cloudflare-dns.com/dns-query -no-check-certificate

Last update: 2020-06-12 09:21:52 UTC