smartdns

smartdns

示例配置,clash DNS 上游

配置上游DNS 为 clash (fake ip 模式) 以及 cloudflare 的 TLS / HTTPS DNS 服务器。

server-name vrouter
bind [::]:6053
bind-tcp [::]:6053
prefetch-domain yes
rr-ttl-min 300
log-size 64K
log-num 1
log-level error

server 114.114.114.114 -exclude-default-group -group local
nameserver /cloudflare-dns.com/local

server 127.0.0.1:7874
server-https 1.0.0.1  -no-check-certificate
server-https 9.9.9.9  -no-check-certificate

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

force-AAAA-SOA yes
prefetch-domain yes

server 114.114.114.114 -exclude-default-group -group cn

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

accelerated-domains.china.smartdns.conf, google.china.smartdns.conf, apple.china.smartdns.conf 这3个是 dnsmasq-china-list 的国内域名列表的 smartdns 格式,直接从114 DNS 解析,不走 clash DNS。

anti-ad-smartdns.conf 是 anti-AD 项目提供的 smartdns 格式去广告 DNS 配置。


Last update: 2020-09-01 04:18:24 UTC