pymumu / smartdns

A local DNS server to obtain the fastest website IP for the best Internet experience, support DoT, DoH. 一个本地DNS服务器,获取最快的网站IP,获得最佳上网体验,支持DoH,DoT。
https://pymumu.github.io/smartdns/
GNU General Public License v3.0
8.46k stars 1.08k forks source link

测速模式下网站访问失败 #1811

Open Ryu-Z opened 2 months ago

Ryu-Z commented 2 months ago

我的配置文件

bind [::]:53
server 223.6.6.6 -group bootstrap
server 223.5.5.5 -group bootstrap
server 180.76.76.76
server 101.226.4.6
server 218.30.118.6
server 119.29.29.29
server 114.114.114.114
server 8.8.8.8
server-tls 1.1.1.1
server 10.110.0.53 -group demo1 -exclude-default-group
nameserver /demo1.com/demo1
server 10.120.0.53 -group demo2 -exclude-default-group
nameserver /demo2.com/demo2
server 10.130.0.54 -group demo3 -exclude-default-group
nameserver /demo3.com/demo3 -exclude-default-group
domain-rules /www.demo.com/ -nameserver bootstrap
conf-file /etc/smartdns/anti-ad-smartdns.conf
conf-file /etc/smartdns/smart-dns.conf
conf-file /etc/smartdns/lite_smartdns.conf
cache-size 32768
cache-persist yes
cache-file /tmp/smartdns.cache
force-qtype-SOA 65
log-level info
prefetch-domain yes
# 测速模式
speed-check-mode ping,tcp:80,tcp:443

加上最后的测速模式之后 终端 nslookup www.baidu.com 能返回ip, 且是单个ip

# nslookup www.baidu.com
Server:     127.0.0.1
Address:    127.0.0.1#53

Non-authoritative answer:
Name:   www.a.shifen.com
Address: 220.181.38.149

但是浏览器访问域名的时候直接失败了 浏览器报错: DNS_PROBE_FINISHED_NXDOMAIN

PikuZheng commented 2 months ago

你的终端有ipv6,但你配置的ipv6 dns有不同的想法

Ryu-Z commented 2 months ago

你的终端有ipv6,但你配置的ipv6 dns有不同的想法

force-AAAA-SOA yes 后面配置了这个

siren202101 commented 2 weeks ago

speed-check-mode ping,tcp:80,tcp:443 前段时间在恩山上看到有人说这样的测速有时443的访问不了 可以试试speed-check-mode tcp:443,tcp:80,ping 先测443

这个是在恩山上看到有人这么说的,你试试看,不保证能解决你的问题!