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

smartdns 0.8.7 cname 仍然有问题 #400

Closed
Ryu-Z opened this issue Oct 8, 2024 · 8 comments
Closed

smartdns 0.8.7 cname 仍然有问题 #400

Ryu-Z opened this issue Oct 8, 2024 · 8 comments

Comments

@Ryu-Z
Copy link

Ryu-Z commented Oct 8, 2024

问题现象
简要描述问题出现的现象
下载测试版本, 虽然命令行可以解析了, 但是发现浏览器依然使用不了cname的解析的域名
运行环境

  1. 固件型号

  2. 运营商

  3. smartdns来源以及版本
    smartdns 0.8.7 mac

  4. 涉及的配置(注意去除个人相关信息)
    cname /a.baidu.com/www.baidu.com

重现步骤

  1. 上游DNS配置。

  2. 访问的域名。

信息收集

  1. 将/var/log/smrtdns.log日志作为附件上传(注意去除个人相关信息)。
  2. 如进程异常,请将coredump功能开启,上传coredump信息文件,同时上传配套的smartdns进程文件。
    在自定义界面,开启设置->自定义设置->生成coredump配置,重现问题后提交coredump文件
    coredump文件在/tmp目录下
@mokeyish
Copy link
Owner

mokeyish commented Oct 8, 2024

0.8.7 未修复此问题,你是下载 nightly 版本么?

@Ryu-Z
Copy link
Author

Ryu-Z commented Oct 8, 2024

0.8.7 未修复此问题,你是下载 nightly 版本么?

是的, nslookup 可以解析, 但是浏览器还是访问失败
ERR_NAME_NOT_RESOLVED

edy@ryu ~ % nslookup a.baidu.com
Server:         127.0.0.1
Address:        127.0.0.1#53

Non-authoritative answer:
www.baidu.com   canonical name = www.a.shifen.com.
Name:   www.a.shifen.com
Address: 220.181.38.149
Name:   www.a.shifen.com
Address: 220.181.38.150

@mokeyish
Copy link
Owner

mokeyish commented Oct 8, 2024

那应该是丢了什么东西没构造出来,或者浏览器还查询了其他DNS类型,比如 HTTPS,我也不熟,你能找到么?

@Ryu-Z
Copy link
Author

Ryu-Z commented Oct 8, 2024

那应该是丢了什么东西没构造出来,或者浏览器还查询了其他DNS类型,比如 HTTPS,我也不熟,你能找到么?

我刚刚尝试绑死hosts 220.181.38.149 a.baidu.com, 浏览器访问a.baidu.com 是可以访问到东西的, 就是非安全的,这样看跟浏览器https 关系应该不大

@mokeyish
Copy link
Owner

mokeyish commented Oct 8, 2024

#387 修复的是未同步改写 queries section .

你用的是 nightly 版本是有这个修复的,就不知道还缺了什么,知道原因就好修改

@Ryu-Z
Copy link
Author

Ryu-Z commented Oct 8, 2024

#387 修复的是未同步改写 queries section .

你用的是 nightly 版本是有这个修复的,就不知道还缺了什么,知道原因就好修改

目前也没看出来什么, 电脑上面目前也没有抓包工具, 所以也没看出来有什么问题

@mokeyish
Copy link
Owner

mokeyish commented Oct 8, 2024

#403 看看这个是否修复你的问题。

在线构建的这里下载:
https://github.com/mokeyish/smartdns-rs/actions/runs/11235631516

@Ryu-Z
Copy link
Author

Ryu-Z commented Oct 9, 2024

#403 看看这个是否修复你的问题。

在线构建的这里下载: https://github.com/mokeyish/smartdns-rs/actions/runs/11235631516

确实可以了, 感谢

@mokeyish mokeyish closed this as completed Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants