Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gg4924 committed Mar 31, 2023
1 parent bf09928 commit 255acbc
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ windows系统建议将命令添加到批处理程序运行。

}
],
"node_server_dns":"nodedns",
"outbound_direct_dns":"local",
"auto_set_outbounds_dns":"remote_cf",
"save_config_path": "D:/Tools/sing-box/profile/config.json",
"exlude_protocol":"ssr"
Expand All @@ -44,11 +44,13 @@ windows系统建议将命令添加到批处理程序运行。

订阅 tag 会被使用在 config模板文件 中,具体使用方法可以查看下方的 config模板 部分。节点名称也会添加 [订阅tag] 前缀,比如 [订阅tag]美国节点1。

node_server_dns:必需。
outbound_direct_dns:非必需。
- 需要与 auto_set_outbounds_dns 同时设置
- 将其设置为 config 模板文件中存在的一个 dns server 的 tag,此 dns server 的 detour 必须为direct。
- 脚本会将所有订阅中的节点服务器域名地址添加到 config 中的 dns 规则中,使用此 dns server 进行解析,避免解析死循环
- 脚本会将路由规则中 direct 出站的规则适配到 dns 规则,使用此 dns server 进行解析。

auto_set_outbounds_dns:非必需。
- 需要与 outbound_direct_dns 同时设置
- 将其设置为 config 模板文件中存在的一个 dns server 的 tag,dns server 建议为国外提供的 doh、dot 等服务。
- 此设置主要为解决 路由出站 和 dns 出站 不一致的问题,比如访问 netflix.com,路由出站为新加坡节点 a ,但使用的 dns server 出站可能为美国节点 b。
- 设置此项后,脚本会将 路由规则 自动适配到 dns 规则,保证其出站一致。
Expand Down Expand Up @@ -104,6 +106,12 @@ auto_set_outbounds_dns:非必需。
}
],
"rules": [
{//新版sing-box支持的功能,添加此规则可以避免节点服务器域名解析可能的死循环问题
"outbound":[
"any"
],
"server": "nodedns"
},
{
"geosite": "cn",
"domain_suffix": [
Expand Down

0 comments on commit 255acbc

Please sign in to comment.