|
|
本帖最后由 dominic 于 2022-2-15 15:56 编辑
没那么复杂
server-name smartdns
bind [::]:8053
bind-tcp [::]:8053
dualstack-ip-selection yes
prefetch-domain yes
serve-expired yes
cache-size 102400
rr-ttl-min 600
log-size 64K
log-num 1
log-level error
bind [::]:9953 -no-speed-check -group us -no-rule-addr -no-dualstack-selection -no-cache -force-aaaa-soa
bind-tcp [::]:9953 -no-speed-check -group us -no-rule-addr -no-dualstack-selection -no-cache -force-aaaa-soa
server 114.114.114.114
server 223.5.5.5
server [2400:3200::1]
server [240e:46:4888::4888]
server 202.102.213.68cache-persist yes
cache-file /usr/share/smartdns/smartdns.cache
speed-check-mode tcp:80,ping
conf-file /etc/smartdns/address.conf
conf-file /etc/smartdns/blacklist-ip.conf
conf-file /etc/smartdns/custom.conf
server部分不要乱写。建议使用公用、自己的运营商ipv4 自己运营商ipv6
server [240e:46:4888::4888]
server 202.102.213.68
我这两个是本地运营商的。
下面的conf-file 自己建立。
如果不需要第二端口dns服务
bind [::]:9953 -no-speed-check -group us -no-rule-addr -no-dualstack-selection -no-cache -force-aaaa-soa
bind-tcp [::]:9953 -no-speed-check -group us -no-rule-addr -no-dualstack-selection -no-cache -force-aaaa-soa
这两行也不要
speed-check-mode 根据自己需要更改。虽然有时候会使用443端口,但是个人认为没必要80 443 都试一下,确定连接速度80就够了,跳不跳转到443是网站的事情。
|
|