217heidai / NestingDNS

AdGuardHome、MosDNS、SmartDNS 套娃使用实践
62 stars 15 forks source link

请问大大,关于win10的网络图标为断网的问题 #2

Open ccczj2323 opened 6 months ago

ccczj2323 commented 6 months ago

image 网络环境:我自己对大大的制作的按照配置表在smartdns增加了socks5,科学上网的方式是fakeip。实现的方式是在NestingDNS前加一个mosdns,当在NestingDNS获取到的ip再判断一下是否是国外ip,如果是则转发到clash获取fakeip。clash的dns填的是NestingDNS的adg端口。其他保持默认不变。 我在这个网络状态下ping www.msftconnecttest.com(微软的NCSI),显示是无法连接。我就修改了NestingDNS的hosts为www.msftconnecttest.com 23.193.97.91。然后能ping通了,但是win的网络图标还是不能变成正常的状态。 我稍微有点强迫症,我微薄的网络知识无法解析这里面的奥秘。希望大大可以给点方向。 大大如果有空可以告诉一下我怎么做吗?

217heidai commented 6 months ago

可以从容器 nestingdns/log 目录查到内部 mosdns、smartdns 日志,看下 www.msftconnecttest.com 具体解析情况

ccczj2323 commented 6 months ago

image 只在mosdns的日志找到记录,smartdns里面查找不到有关日志

217heidai commented 6 months ago

命中了 https://github.com/Loyalsoldier/domain-list-custom/blob/release/private.txt 规则。如果需要的话,可以把 nestingdns/etc/conf/mosdns.yaml 第 53 行 - qname $geosite-private "ip6-localhost" "ip6-loopback" 改成 - qname "ip6-localhost" "ip6-loopback"

217heidai commented 6 months ago

去掉了 <https://github.com/Loyalsoldier/domain-list-custom/blob/release/private.txt > 规则 msftconnecttest.commsftncsi.com 域名拦截,拉新镜像重新创建容器试下。