-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请教,配置完能访问国内,但是还是访问不了被dns污染的域名,还有查询超时 #456
Comments
新建文本文档.txt |
我用示例配置然后加了几个doh,也是不能解析dns污染的域名,但是这些doh放到路由上就能正常解析 |
仅仅是转发而已,具体要看上游的,以及是否可访问到上游。 |
啊?这和原版的不一样吗? |
超时的事我也很苦恼,是依赖底层库的原因。我在自己电脑能复现,在国外服务器就不行,所以一直找不到原因,他们也无法修复。 |
e......看dalao你说的有点蒙......我捋捋........这个smartdns-rs和SmartDNS都是以不同方式实现同样功能对吧?这是重点前提 然后 我自己折腾的时候发现smartdns-rs就算全部用国外的dns也能解析国内的域名,可是解析的乱七八糟速度很慢,但还是解析不了被dns污染的那种域名; 在路由上的SmartDNS用和smartdns-rs一样配置,解析国内也是解析的乱七八糟速度很慢,但是解析某些被dns污染的那种域名,浏览器能够正常解析和打开网页; 然后就是查询超时,看到你发的其他人也遇到了 解决超时同时也能把解析问题找一下吗? |
doh别用域名的,会SNI RST,触发后还会超时3分钟 |
我周末先调整下,如果查询不到,超时,包括上面的 SNI RST,一律使用缓存结果,哪怕 ttl 过期了。只有查询正确有结果,才更新缓存。 |
刚提交了:#474 编译好的包应该在这:https://github.com/mokeyish/smartdns-rs/actions/runs/12680825760 @blance714 你在 #431 (comment) 分析到原因,应该是这里,只有开启 serve-expired 才会在失败的使用使用缓存,现在把这个条件删了,而且即使过期的缓存也不会主动删了,只有到达最大缓存大小以 LRU 策略删除。 |
@mokeyish 请问什么时候能发布正式版本? |
你测试 nightly 版本有效了吗? |
以上是配置文件,还是访问不了被dns污染的域名,只能访问国内,看到项目配置说明是直接指向SmartDNS的配置说明,想着是完全共通的就照着弄了一个配置,需要改哪里才好?
2024-12-24 14:20:07.348:INFO: Smart-DNS 🐋 0.9.0 🕙 Sun Oct 13 09:59:55 UTC 2024 starting 2024-12-24 14:20:07.348:INFO: whoami 👉 localsmartdns 2024-12-24 14:20:07.348:INFO: num workers: 16 2024-12-24 14:20:07.348:INFO: upstream server: udp://223.5.5.5 [Group: ["china"]] 2024-12-24 14:20:07.348:INFO: upstream server: udp://[2400:3200::1:53] [Group: ["china"]] 2024-12-24 14:20:07.349:INFO: upstream server: https://dns.alidns.com/dns-query [Group: ["china"]] 2024-12-24 14:20:07.349:INFO: upstream server: udp://180.76.76.76 [Group: ["china"]] 2024-12-24 14:20:07.349:INFO: upstream server: udp://[2400:da00::6666:53] [Group: ["china"]] 2024-12-24 14:20:07.349:INFO: upstream server: udp://119.29.29.29 [Group: ["china"]] 2024-12-24 14:20:07.349:INFO: upstream server: https://doh.pub/dns-query [Group: ["china"]] 2024-12-24 14:20:07.349:INFO: upstream server: https://public.dns.iij.jp/dns-query [Group: ["foreign"]] 2024-12-24 14:20:07.349:INFO: upstream server: tcp://208.67.220.222:443 [Group: ["foreign"]] 2024-12-24 14:20:07.349:INFO: upstream server: tcp://[2620:119:53::53:443] [Group: ["foreign"]] 2024-12-24 14:20:07.349:INFO: upstream server: https://doh.opendns.com/dns-query [Group: ["foreign"]] 2024-12-24 14:20:07.349:INFO: upstream server: https://doh.sandbox.opendns.com/dns-query [Group: ["foreign"]] 2024-12-24 14:20:07.349:INFO: upstream server: https://cloudflare-dns.com/dns-query [Group: ["foreign"]] 2024-12-24 14:20:07.349:INFO: upstream server: https://doh.dns.sb/dns-query [Group: ["foreign"]] 2024-12-24 14:20:07.349:INFO: upstream server: udp://223.5.5.5 [Group: default] 2024-12-24 14:20:07.349:INFO: upstream server: udp://[2400:3200::1:53] [Group: default] 2024-12-24 14:20:07.349:INFO: upstream server: https://dns.alidns.com/dns-query [Group: default] 2024-12-24 14:20:07.349:INFO: upstream server: udp://180.76.76.76 [Group: default] 2024-12-24 14:20:07.349:INFO: upstream server: udp://[2400:da00::6666:53] [Group: default] 2024-12-24 14:20:07.350:INFO: upstream server: udp://119.29.29.29 [Group: default] 2024-12-24 14:20:07.350:INFO: upstream server: https://doh.pub/dns-query [Group: default] 2024-12-24 14:20:07.350:INFO: upstream server: https://public.dns.iij.jp/dns-query [Group: default] 2024-12-24 14:20:07.350:INFO: upstream server: tcp://208.67.220.222:443 [Group: default] 2024-12-24 14:20:07.350:INFO: upstream server: tcp://[2620:119:53::53:443] [Group: default] 2024-12-24 14:20:07.350:INFO: upstream server: https://doh.opendns.com/dns-query [Group: default] 2024-12-24 14:20:07.350:INFO: upstream server: https://doh.sandbox.opendns.com/dns-query [Group: default] 2024-12-24 14:20:07.350:INFO: upstream server: https://cloudflare-dns.com/dns-query [Group: default] 2024-12-24 14:20:07.350:INFO: upstream server: https://doh.dns.sb/dns-query [Group: default] 2024-12-24 14:20:07.350:INFO: cache: size(1024) 2024-12-24 14:20:07.350:INFO: cache persist: NO 2024-12-24 14:20:07.350:INFO: domain prefetch: ON 2024-12-24 14:20:07.350:INFO: speed check mode: ICMP, TCP:80, TCP:443 2024-12-24 14:20:07.365:INFO: bootstrap-dns udp://223.5.5.5 2024-12-24 14:20:07.365:INFO: bootstrap-dns udp://[2400:3200::1:53] 2024-12-24 14:20:07.366:INFO: bootstrap-dns udp://180.76.76.76 2024-12-24 14:20:07.366:INFO: bootstrap-dns udp://[2400:da00::6666:53] 2024-12-24 14:20:07.366:INFO: bootstrap-dns udp://119.29.29.29 2024-12-24 14:20:07.366:INFO: bootstrap-dns tcp://208.67.220.222:443 2024-12-24 14:20:07.366:INFO: bootstrap-dns tcp://[2620:119:53::53:443] 2024-12-24 14:20:07.497:INFO: listening for UDP on [::]:53 2024-12-24 14:20:07.497:INFO: 2024-12-24 14:20:07.497:INFO: _____ _ _____ _ _ _____ 2024-12-24 14:20:07.497:INFO: / ____| | | | __ \| \ | |/ ____| 2024-12-24 14:20:07.497:INFO: | (___ _ __ ___ __ _ _ __| |_ | | | | \| | (___ 2024-12-24 14:20:07.497:INFO: \___ \| '_
_ \ /| '__| __| | | | | .
|__ \2024-12-24 14:20:07.497:INFO: ) | | | | | | (| | | | | | |__| | |\ |) |
2024-12-24 14:20:07.497:INFO: |_____/|| || ||_,|| _| |_____/|| _|_____/
2024-12-24 14:20:07.497:INFO:
2024-12-24 14:20:07.497:INFO: awaiting connections...
2024-12-24 14:20:07.497:INFO: server starting up`
这是日志
用了几个小时发现问题,国内网站打开总是很慢,比路由上SmartDNS慢的多,然后发现使用localsmartdns的话就会一堆查询超时
`PS C:\Windows\system32> nslookup 163.com
服务器: localsmartdns
Address: ::1
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
非权威应答:
DNS request timed out.
timeout was 2 seconds.
名称: 163.com
Address: 59.111.160.244
PS C:\Windows\system32> nslookup baidu.com
服务器: localsmartdns
Address: ::1
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
非权威应答:
DNS request timed out.
timeout was 2 seconds.
名称: baidu.com
Address: 110.242.68.66
PS C:\Windows\system32> nslookup 163.com 114.114.114.114
服务器: public1.114dns.com
Address: 114.114.114.114
非权威应答:
名称: 163.com
Address: 59.111.160.244
PS C:\Windows\system32> nslookup baidu.com 114.114.114.114
服务器: public1.114dns.com
Address: 114.114.114.114
非权威应答:
名称: baidu.com
Addresses: 110.242.68.66
39.156.66.10`
The text was updated successfully, but these errors were encountered: