PuerNya / sing-box

The universal proxy platform
https://sing-box.sagernet.org
Other
390 stars 60 forks source link

DNS解析逻辑 #11

Open BlueDolphin9527 opened 1 month ago

BlueDolphin9527 commented 1 month ago

Operating system

Linux

System version

debian12

Installation type

Original sing-box Command Line

If you are using a graphical client, please provide the version of the client.

No response

Version

1.10.0-alpha.29-067c81a7

Description

有人讲P核即使开启了fake-ip,当进行路由规则匹配时,遇到IP段的,会再次DNS解析。而官核就会跳过。请问是这样吗?我在P核WIKI里没有找到相关说明。有人让我到github building分支看配置/route里的文件,我也没找到相关说明。所以只能问下大佬了。

Reproduction

有人讲P核即使开启了fake-ip,当进行路由规则匹配时,遇到IP段的,会再次DNS解析。而官核就会跳过。请问是这样吗?

Logs

No response

Supporter

Integrity requirements

kingsey commented 1 month ago

ip规则加参数"skip_resolve": true

BlueDolphin9527 commented 2 weeks ago

@kingsey 看来默认是这样的。能解释下为什么采取这样的默认策略吗?