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

请教大佬dns配置问题 #111

Closed
thincen opened this issue Apr 10, 2024 · 5 comments
Closed

请教大佬dns配置问题 #111

thincen opened this issue Apr 10, 2024 · 5 comments

Comments

@thincen
Copy link

thincen commented Apr 10, 2024

{
"rule_set": "geosite-geolocation-!cn",
"query_type": [
"CNAME"
],
"server": "dns_proxy"
}

这一段配置不是logic, 是非cn地址或CNAME类型的意思吗?

我现在情况是

在debian12中使用singbox作为透明网关
wifi的dns server是debian的ip
inbound中有

{
"type": "direct",
"tag": "dns-in",
"listen": "0.0.0.0",
"listen_port": 53,
"network": "udp"
}

rules中有两种模式

{inbound: dns-in,outbound: dns-out},
{"protocol": "dns","outbound": "dns-out"}

outbound中有

{
"type": "dns",
"tag": "dns-out"
}

我不清楚bilibili的视频封面图片是否为CNMAE, 用dns_proxy后加载缓慢, 是否因为解析的ip和我本地连接较慢甚至加载不出来。

使用手机5g或更改wifi的dns server为223.5.5.5都可以测试很快加载完成。

谢谢

@thincen
Copy link
Author

thincen commented Apr 10, 2024

bilibili app 里面居然有条graph.facebook.com 走的是direct

😳好迷

@chika0801
Copy link
Owner

那段意思是 geosite-geolocation-!cn 类别中的域名查询类型是 cname 的,走 dns_proxy 这个 dns。

@chika0801
Copy link
Owner

我不清楚bilibili的视频封面图片是否为CNMAE, 用dns_proxy后加载缓慢, 是否因为解析的ip和我本地连接较慢甚至加载不出来。

只能建议你日志用trace或debug,看看那些域名的日志,自己分析了,结合你自己的配置文件

@thincen
Copy link
Author

thincen commented Apr 11, 2024

那段意思是 geosite-geolocation-!cn 类别中的域名查询类型是 cname 的,走 dns_proxy 这个 dns。

我之前以为&&的操作需要

{
  "type": "logical",
  "mode": "and",
  "rules": [],
  "server": ""
}

这样的形式表示

@chika0801
Copy link
Owner

这种形式 "rules": [], 中你可以组合各种条件,你不用这种条件,哪些条件是and就看它文档上的说明了,按你自己习惯来写就是了。

@thincen thincen closed this as completed Apr 11, 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