Skip to content
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

🐛[BUG] 软件内DNS解析地址与实际DNS解析地址不同 #3605

Open
Bpc-CPU opened this issue Jan 30, 2025 · 5 comments
Open

🐛[BUG] 软件内DNS解析地址与实际DNS解析地址不同 #3605

Bpc-CPU opened this issue Jan 30, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@Bpc-CPU
Copy link

Bpc-CPU commented Jan 30, 2025

请认真检查以下清单中的每一项

  • [ √] 已经搜索过,没有发现类似的 issue
  • [ √] 已经搜索过文档,没有发现相关内容
  • [ √] 已经尝试使用过最新版,问题依旧存在
  • [ √] 使用的是官方版本(未替换及修改过安装目录程序文件)

🐛 描述

起因:本人使用Watt toolkit时(HOST模式)在浏览器中无法连接www.steamcommunity.com却能连接steamcommunity.com。
经过:1. 我在代理设置中将DNS改为op路由器的DNS,我用op配置好的DNS解析出的www.steamcommunity.com以及steamcommunity.com的地址ping延时都是个位数
2. 然而再次在浏览器中连接www.steamcommunity.com依旧无法连接“Request:Could not find any IP that can be successfully connected. (HTTP connection to 162.125.6.1 timed out.) (\www.steamcommunity.com:443)”,并且IP是被污染过的,并非为代理设置中配置的DNS解析的结果
结果:watt toolkit无法正确解析网址

📷 复现步骤

PS:出现此BUG仅重启过软件,并未重启电脑,清除DNS缓存等操作
Requirement: 你家路由器具有DNS服务器功能,提供域名解析的功能

  1. 代理设置->DNS设置->关闭Doh->将DNS的地址改为路由器提供的DNS地址
  2. 在命令行中使用 nslookup www.steamcommunity.com 192.168.xx.1 检查域名解析结果
  3. 借助watt toolkit的host模式,在浏览器中打开www.steamcommunity.com,若无法打开网页,检查无法连接的IP是否与之前nslookup一致,若正常连接,则可查看日志,或者wireshark抓包查看双方IP

📄 日志信息

-->大致就是解析地址time out

🚑 其他信息

  • 系统版本号:win11 2xH2
  • 下载渠道:自动更新
  • 程序版本:测试版3.0.0-rc. 14
  • 是否包含独立运行时:no

补充信息

在网络检测中,有一项是DNS检测,这里解析的地址是正常的,而在浏览器打开www.steamcommunity.com时,日志中却respond 502并显示dns被污染

@Bpc-CPU Bpc-CPU added the bug Something isn't working label Jan 30, 2025
@Bpc-CPU Bpc-CPU changed the title 🐛[BUG] DNS解析地址与实际DNS解析地址不同 🐛[BUG] 软件内DNS解析地址与实际DNS解析地址不同 Jan 30, 2025
@Bpc-CPU
Copy link
Author

Bpc-CPU commented Jan 31, 2025

补一个LOG

2025-01-31 17:57:53.158|Info|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/2 GET https://www.steamcommunity.com/ - - -|
2025-01-31 17:57:53.159|Warn|BD.WTTS.Services.Implementation.HttpReverseProxyMiddleware|域名 www.steamcommunity.com 可能已经被 DNS 污染,如果域名为本机域名,请解析为非回环 IP。|

@rmbadmin
Copy link
Member

rmbadmin commented Feb 5, 2025

关闭一下代理设置中的 启动加速时检查dns可用性 应该就可以了,这个功能会启动时更换实际使用dns

@Bpc-CPU
Copy link
Author

Bpc-CPU commented Feb 9, 2025

已经关闭了,但是加速时还是不行
日志:

2025-02-09 13:10:50.985|Info|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished HTTP/2 GET https://www.steamcommunity.com/ - 502 - - 10022.5330ms|
2025-02-09 13:10:51.123|Info|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/2 GET https://www.steamcommunity.com/favicon.ico - - -|
2025-02-09 13:10:51.123|Warn|BD.WTTS.Services.Implementation.HttpReverseProxyMiddleware|域名 www.steamcommunity.com 可能已经被 DNS 污染,如果域名为本机域名,请解析为非回环 IP。|
但是在网络检测的DNS检测中,www.steamcommunity.com的域名还是正常解析成可用的域名。

@Bpc-CPU
Copy link
Author

Bpc-CPU commented Feb 9, 2025

WireShark抓到的,如下图:
Image
182.254.116.116这个DNS是腾讯的DNS,不知道为何程序会用这个DNS。

@Bpc-CPU
Copy link
Author

Bpc-CPU commented Feb 11, 2025

关闭一下代理设置中的 启动加速时检查dns可用性 应该就可以了,这个功能会启动时更换实际使用dns

@rmbadmin 我试了一下,关了之后,github.com和steamcommunity.com解析的ip地址就对了,网页加载没之前那么慢了,但是www.steamcommunity.com解析的时候,不知道为何会使用Dnspod的DNS服务器,我用wireshark抓到的dns查询,在上一楼。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants