Skip to content

Commit ca5e6ad

Browse files
committed
优化 DNS 分流和防泄漏配置
1 parent ab46457 commit ca5e6ad

6 files changed

Lines changed: 86 additions & 29 deletions

_posts/2024-08-21-dnsbypass-mihomo-geodata.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ tags: [Clash, mihomo, 进阶, DNS, DNS 分流]
1010
{: .prompt-tip }
1111
1. 使用 [ShellCrash](https://github.com/juewuy/ShellCrash) 搭配 [AdGuard Home](https://github.com/AdguardTeam/AdGuardHome) 并将 AdGuard Home 作为上游时不要使用该方法
1212
2. 本教程以 ShellCrash 为例,其它客户端亦可参考
13-
3. DNS 分流简单来说就是**指定国内域名走国内 DNS 解析,国外域名走 `fake-ip`**。未知域名也走 `fake-ip`(在匹配 `rules.GEOIP:cn` 规则时会由国内 DNS 解析,解析出 IP 在国内则走 `🀄️ 直连 IP` 规则,否则走 `🐟 漏网之鱼` 规则)
14-
4. 部分用户觉得未知域名处理方式会导致 DNS 泄露,可参考《[搭载 mihomo 内核配置 DNS 不泄露教程-geodata 方案](https://proxy-tutorials.dustinwin.us.kg/posts/dnsnoleaks-mihomo-geodata)
13+
3. 本教程搭载 [mihomo 内核 Alpha 版](https://github.com/MetaCubeX/mihomo/tree/Alpha)(导入内核方法可参考《[ShellCrash 和 AdGuard Home 快速安装教程/导入 mihomo 内核 或 sing-box 内核](https://proxy-tutorials.dustinwin.us.kg/posts/pin-toolsinstall/#%E4%BA%8C-%E5%AF%BC%E5%85%A5-mihomo-%E5%86%85%E6%A0%B8-%E6%88%96-sing-box-%E5%86%85%E6%A0%B8)》)
14+
4. DNS 分流简单来说就是**指定国内域名走国内 DNS 解析,国外域名走 `fake-ip`**。未知域名走 `real-ip`(在匹配 `rules.GEOIP:cn` 规则时会由国内 DNS 解析,解析出 IP 在国内则走 `🀄️ 直连 IP` 规则,否则走 `🐟 漏网之鱼` 规则)
15+
5. 部分用户觉得未知域名处理方式会导致 DNS 泄露,可参考《[搭载 mihomo 内核配置 DNS 不泄露教程-geodata 方案](https://proxy-tutorials.dustinwin.us.kg/posts/dnsnoleaks-mihomo-geodata)
1516

1617
## 一、 导入路由规则文件
17-
geosite.dat 文件须包含 `fakeip-filter``cn`,推荐导入我定制的[路由规则文件](https://github.com/DustinWin/ruleset_geodata?tab=readme-ov-file#%E4%B8%80-geodata-%E6%96%87%E4%BB%B6%E8%AF%B4%E6%98%8E)
18+
geosite.dat 文件须包含 `fakeip-filter``cn``proxy`,推荐导入我定制的[路由规则文件](https://github.com/DustinWin/ruleset_geodata?tab=readme-ov-file#%E4%B8%80-geodata-%E6%96%87%E4%BB%B6%E8%AF%B4%E6%98%8E)
1819

1920
## 二、 DNS 分流配置
2021
1. 进入主菜单 → 2 功能设置 → 2 DNS 设置 → 9 DNS 进阶设置,将“当前基础 DNS”、“PROXY-DNS”和“解析 DNS”都设置为 `null`
@@ -35,7 +36,12 @@ dns:
3536
enhanced-mode: fake-ip
3637
fake-ip-range: 28.0.0.0/8
3738
fake-ip-range6: fc00::/16
38-
fake-ip-filter: ['geosite:fakeip-filter,cn']
39+
fake-ip-filter-mode: rule
40+
fake-ip-filter:
41+
- GEOSITE,fakeip-filter,real-ip
42+
- GEOSITE,proxy,fake-ip
43+
- GEOSITE,cn,real-ip # 此条仅演示,可删除
44+
- MATCH,real-ip
3945
nameserver:
4046
- https://dns.alidns.com/dns-query
4147
- https://doh.pub/dns-query

_posts/2024-08-21-dnsbypass-mihomo-ruleset.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ tags: [Clash, mihomo, 进阶, DNS, DNS 分流]
1010
{: .prompt-tip }
1111
1. 使用 [ShellCrash](https://github.com/juewuy/ShellCrash) 搭配 [AdGuard Home](https://github.com/AdguardTeam/AdGuardHome) 并将 AdGuard Home 作为上游时不要使用该方法
1212
2. 本教程以 ShellCrash 为例,其它客户端亦可参考
13-
3. DNS 分流简单来说就是**指定国内域名走国内 DNS 解析,国外域名走 `fake-ip`**。未知域名也走 `fake-ip`(在匹配 `rules.RULE-SET:cn` 规则时会由国内 DNS 解析,解析出 IP 在国内则走 `🀄️ 直连 IP` 规则,否则走 `🐟 漏网之鱼` 规则)
14-
4. 部分用户觉得未知域名处理方式会导致 DNS 泄露,可参考《[搭载 mihomo 内核配置 DNS 不泄露教程-ruleset 方案](https://proxy-tutorials.dustinwin.us.kg/posts/dnsnoleaks-mihomo-ruleset)
13+
3. 本教程搭载 [mihomo 内核 Alpha 版](https://github.com/MetaCubeX/mihomo/tree/Alpha)(导入内核方法可参考《[ShellCrash 和 AdGuard Home 快速安装教程/导入 mihomo 内核 或 sing-box 内核](https://proxy-tutorials.dustinwin.us.kg/posts/pin-toolsinstall/#%E4%BA%8C-%E5%AF%BC%E5%85%A5-mihomo-%E5%86%85%E6%A0%B8-%E6%88%96-sing-box-%E5%86%85%E6%A0%B8)》)
14+
4. DNS 分流简单来说就是**指定国内域名走国内 DNS 解析,国外域名走 `fake-ip`**。未知域名走 `real-ip`(在匹配 `rules.RULE-SET:cnip` 规则时会由国内 DNS 解析,解析出 IP 在国内则走 `🀄️ 直连 IP` 规则,否则走 `🐟 漏网之鱼` 规则)
15+
5. 部分用户觉得未知域名处理方式会导致 DNS 泄露,可参考《[搭载 mihomo 内核配置 DNS 不泄露教程-ruleset 方案](https://proxy-tutorials.dustinwin.us.kg/posts/dnsnoleaks-mihomo-ruleset)
1516

1617
## 一、 导入规则集合文件
17-
`rule-providers` 须添加 `fakeip-filter``cn`,如下:
18+
`rule-providers` 须添加 `fakeip-filter``cn``proxy`,如下:
1819

1920
```yaml
2021
rule-providers:
@@ -33,6 +34,14 @@ rule-providers:
3334
path: ./ruleset/cn.mrs
3435
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/cn.mrs"
3536
interval: 86400
37+
38+
proxy:
39+
type: http
40+
behavior: domain
41+
format: mrs
42+
path: ./ruleset/proxy.mrs
43+
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/proxy.mrs"
44+
interval: 86400
3645
```
3746
3847
## 二、 DNS 分流配置
@@ -54,7 +63,12 @@ dns:
5463
enhanced-mode: fake-ip
5564
fake-ip-range: 28.0.0.0/8
5665
fake-ip-range6: fc00::/16
57-
fake-ip-filter: ['rule-set:fakeip-filter,cn']
66+
fake-ip-filter-mode: rule
67+
fake-ip-filter:
68+
- RULE-SET,fakeip-filter,real-ip
69+
- RULE-SET,proxy,fake-ip
70+
- RULE-SET,cn,real-ip # 此条仅演示,可删除
71+
- MATCH,real-ip
5872
nameserver:
5973
- https://dns.alidns.com/dns-query
6074
- https://doh.pub/dns-query

_posts/2024-08-21-dnsnoleaks-mihomo-geodata.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ tags: [Clash, mihomo, 进阶, DNS, DNS 泄露]
1010
{: .prompt-tip }
1111
1. 此方案彻底防止了 DNS 泄露(未知域名在匹配 `rules.GEOIP:cn` 规则时会走国外 DNS 解析且配置 `ecs`,解析出 IP 在国内则走 `🀄️ 直连 IP` 规则,否则走 `🐟 漏网之鱼` 规则),兼容性高,可放心使用
1212
2. 本教程以 [ShellCrash](https://github.com/juewuy/ShellCrash) 为例,其它客户端亦可参考
13-
3. 可进入 <https://ipleak.net> 测试 DNS 是否泄露,“DNS Addresses” 栏目下没有中国国旗(因 `ipleak.net` 属未知域名,默认走 `🐟 漏网之鱼` 规则),即代表 DNS 没有发生泄露
13+
3. 本教程搭载 [mihomo 内核 Alpha 版](https://github.com/MetaCubeX/mihomo/tree/Alpha)(导入内核方法可参考《[ShellCrash 和 AdGuard Home 快速安装教程/导入 mihomo 内核 或 sing-box 内核](https://proxy-tutorials.dustinwin.us.kg/posts/pin-toolsinstall/#%E4%BA%8C-%E5%AF%BC%E5%85%A5-mihomo-%E5%86%85%E6%A0%B8-%E6%88%96-sing-box-%E5%86%85%E6%A0%B8)》)
14+
4. 可进入 <https://ipleak.net> 测试 DNS 是否泄露,“DNS Addresses” 栏目下没有中国国旗(因 `ipleak.net` 属未知域名,默认走 `🐟 漏网之鱼` 规则),即代表 DNS 没有发生泄露
1415

1516
## 一、 导入路由规则文件
16-
geosite.dat 文件须包含 `fakeip-filter``cn`,推荐导入我定制的[路由规则文件](https://github.com/DustinWin/ruleset_geodata?tab=readme-ov-file#%E4%B8%80-geodata-%E6%96%87%E4%BB%B6%E8%AF%B4%E6%98%8E)
17+
geosite.dat 文件须包含 `fakeip-filter``cn``proxy`,推荐导入我定制的[路由规则文件](https://github.com/DustinWin/ruleset_geodata?tab=readme-ov-file#%E4%B8%80-geodata-%E6%96%87%E4%BB%B6%E8%AF%B4%E6%98%8E)
1718

1819
## 二、 ShellCrash 防泄漏配置
1920
进入主菜单 → 2 功能设置 → 2 DNS 设置 → 9 DNS 进阶设置,将“当前基础 DNS”、“PROXY-DNS”和“解析 DNS”都设置为 `null`
@@ -39,7 +40,12 @@ dns:
3940
enhanced-mode: fake-ip
4041
fake-ip-range: 28.0.0.0/8
4142
fake-ip-range6: fc00::/16
42-
fake-ip-filter: ['geosite:fakeip-filter,cn']
43+
fake-ip-filter-mode: rule
44+
fake-ip-filter:
45+
- GEOSITE,fakeip-filter,real-ip
46+
- GEOSITE,proxy,fake-ip
47+
- GEOSITE,cn,real-ip # 此条仅演示,可删除
48+
- MATCH,real-ip
4349
respect-rules: true
4450
nameserver:
4551
# 推荐将 `ecs` 设置为当前网络的公网 IP 段
@@ -78,7 +84,10 @@ dns:
7884
enhanced-mode: fake-ip
7985
fake-ip-range: 28.0.0.0/8
8086
fake-ip-range6: fc00::/16
81-
fake-ip-filter: ['geosite:fakeip-filter']
87+
fake-ip-filter-mode: rule
88+
fake-ip-filter:
89+
- GEOSITE,fakeip-filter,real-ip
90+
- MATCH,fake-ip
8291
nameserver:
8392
- https://dns.alidns.com/dns-query
8493
- https://doh.pub/dns-query

_posts/2024-08-21-dnsnoleaks-mihomo-ruleset.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ tags: [Clash, mihomo, 进阶, DNS, DNS 泄露]
88

99
> 说明
1010
{: .prompt-tip }
11-
1. 此方案彻底防止了 DNS 泄露(未知域名在匹配 `rules.RULE-SET:cn` 规则时会走国外 DNS 解析且配置 `ecs`,解析出 IP 在国内则走 `🀄️ 直连 IP` 规则,否则走 `🐟 漏网之鱼` 规则),兼容性高,可放心使用
11+
1. 此方案彻底防止了 DNS 泄露(未知域名在匹配 `rules.RULE-SET:cnip` 规则时会走国外 DNS 解析且配置 `ecs`,解析出 IP 在国内则走 `🀄️ 直连 IP` 规则,否则走 `🐟 漏网之鱼` 规则),兼容性高,可放心使用
1212
2. 本教程以 [ShellCrash](https://github.com/juewuy/ShellCrash) 为例,其它客户端亦可参考
13-
3. 可进入 <https://ipleak.net> 测试 DNS 是否泄露,“DNS Addresses” 栏目下没有中国国旗(因 `ipleak.net` 属未知域名,默认走 `🐟 漏网之鱼` 规则),即代表 DNS 没有发生泄露
13+
3. 本教程搭载 [mihomo 内核 Alpha 版](https://github.com/MetaCubeX/mihomo/tree/Alpha)(导入内核方法可参考《[ShellCrash 和 AdGuard Home 快速安装教程/导入 mihomo 内核 或 sing-box 内核](https://proxy-tutorials.dustinwin.us.kg/posts/pin-toolsinstall/#%E4%BA%8C-%E5%AF%BC%E5%85%A5-mihomo-%E5%86%85%E6%A0%B8-%E6%88%96-sing-box-%E5%86%85%E6%A0%B8)》)
14+
4. 可进入 <https://ipleak.net> 测试 DNS 是否泄露,“DNS Addresses” 栏目下没有中国国旗(因 `ipleak.net` 属未知域名,默认走 `🐟 漏网之鱼` 规则),即代表 DNS 没有发生泄露
1415

1516
## 一、 导入规则集合文件
16-
`rule-providers` 须添加 `fakeip-filter`,如下:
17+
`rule-providers` 须添加 `fakeip-filter``cn``proxy`,如下:
1718

1819
```yaml
1920
rule-providers:
@@ -32,6 +33,14 @@ rule-providers:
3233
path: ./ruleset/cn.mrs
3334
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/cn.mrs"
3435
interval: 86400
36+
37+
proxy:
38+
type: http
39+
behavior: domain
40+
format: mrs
41+
path: ./ruleset/proxy.mrs
42+
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/proxy.mrs"
43+
interval: 86400
3544
```
3645
3746
## 二、 ShellCrash 防泄漏配置
@@ -58,7 +67,12 @@ dns:
5867
enhanced-mode: fake-ip
5968
fake-ip-range: 28.0.0.0/8
6069
fake-ip-range6: fc00::/16
61-
fake-ip-filter: ['rule-set:fakeip-filter,cn']
70+
fake-ip-filter-mode: rule
71+
fake-ip-filter:
72+
- RULE-SET,fakeip-filter,real-ip
73+
- RULE-SET,proxy,fake-ip
74+
- RULE-SET,cn,real-ip # 此条仅演示,可删除
75+
- MATCH,real-ip
6276
respect-rules: true
6377
nameserver:
6478
# 推荐将 `ecs` 设置为当前网络的公网 IP 段
@@ -99,7 +113,10 @@ dns:
99113
enhanced-mode: fake-ip
100114
fake-ip-range: 28.0.0.0/8
101115
fake-ip-range6: fc00::/16
102-
fake-ip-filter: ['rule-set:fakeip-filter']
116+
fake-ip-filter-mode: rule
117+
fake-ip-filter:
118+
- RULE-SET,fakeip-filter,real-ip
119+
- MATCH,fake-ip
103120
nameserver:
104121
- https://dns.alidns.com/dns-query
105122
- https://doh.pub/dns-query

_posts/2024-08-22-dnsbypass-singboxr-ruleset.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ tags: [sing-box, sing-boxr, ShellCrash, ruleset, rule_set, 进阶, DNS, DNS 分
1010
{: .prompt-tip }
1111
1. [ShellCrash](https://github.com/juewuy/ShellCrash) 搭配 [AdGuard Home](https://github.com/AdguardTeam/AdGuardHome) 并将 AdGuard Home 作为上游时不要使用该方法
1212
2. 本教程以 ShellCrash 为例,其它客户端亦可参考
13-
3. DNS 分流简单来说就是**指定国内域名走国内 DNS 解析,国外域名走 `fakeip`**。未知域名也走 `fakeip`(在匹配 `route.rules.rule_set:cn` 规则时会由国内 DNS 解析,解析出 IP 在国内则走 `🀄️ 直连 IP` 规则,否则走 `🐟 漏网之鱼` 规则)
14-
4. 部分用户觉得未知域名处理方式会导致 DNS 泄露,可参考《[搭载 sing-boxr 内核配置 DNS 不泄露教程-ruleset 方案](https://proxy-tutorials.dustinwin.us.kg/posts/dnsnoleaks-singboxr-ruleset)
13+
3. 本教程搭载 [sing-box 内核 reF1nd-dev 版](https://github.com/reF1nd/sing-box/tree/reF1nd-dev)(导入内核方法可参考《[ShellCrash 和 AdGuard Home 快速安装教程/导入 mihomo 内核 或 sing-box 内核](https://proxy-tutorials.dustinwin.us.kg/posts/pin-toolsinstall/#%E4%BA%8C-%E5%AF%BC%E5%85%A5-mihomo-%E5%86%85%E6%A0%B8-%E6%88%96-sing-box-%E5%86%85%E6%A0%B8)》)
14+
4. DNS 分流简单来说就是**指定国内域名走国内 DNS 解析,国外域名走 `fakeip`**。未知域名走 real-ip(在匹配 `route.rules.rule_set:cnip` 规则时会由国内 DNS 解析,解析出 IP 在国内则走 `🀄️ 直连 IP` 规则,否则走 `🐟 漏网之鱼` 规则)
15+
5. 部分用户觉得未知域名处理方式会导致 DNS 泄露,可参考《[搭载 sing-boxr 内核配置 DNS 不泄露教程-ruleset 方案](https://proxy-tutorials.dustinwin.us.kg/posts/dnsnoleaks-singboxr-ruleset)
1516

1617
## 一、 导入规则集合文件
17-
`route.rule_set` 须添加 `fakeip-filter``cn`,如下:
18+
`route.rule_set` 须添加 `fakeip-filter``cn``proxy`,如下:
1819

1920
```json
2021
{
@@ -33,6 +34,13 @@ tags: [sing-box, sing-boxr, ShellCrash, ruleset, rule_set, 进阶, DNS, DNS 分
3334
"format": "binary",
3435
"path": "./ruleset/cn.srs",
3536
"url": "https://github.com/DustinWin/ruleset_geodata/releases/download/sing-box-ruleset/cn.srs"
37+
},
38+
{
39+
"tag": "proxy",
40+
"type": "remote",
41+
"format": "binary",
42+
"path": "./ruleset/proxy.srs",
43+
"url": "https://github.com/DustinWin/ruleset_geodata/releases/download/sing-box-ruleset/proxy.srs"
3644
}
3745
]
3846
}
@@ -67,8 +75,9 @@ tags: [sing-box, sing-boxr, ShellCrash, ruleset, rule_set, 进阶, DNS, DNS 分
6775
{ "ip_accept_any": true, "server": "hosts" },
6876
{ "clash_mode": [ "Direct" ], "query_type": [ "A", "AAAA" ], "server": "dns_direct" },
6977
{ "clash_mode": [ "Global" ], "query_type": [ "A", "AAAA" ], "server": "dns_proxy" },
70-
{ "rule_set": [ "fakeip-filter", "cn" ], "query_type": [ "A", "AAAA" ], "server": "dns_direct", "rewrite_ttl": 1 },
71-
{ "query_type": [ "A", "AAAA" ], "server": "dns_fakeip" }
78+
{ "rule_set": [ "fakeip-filter" ], "query_type": [ "A", "AAAA" ], "server": "dns_direct", "rewrite_ttl": 1 },
79+
{ "rule_set": [ "proxy" ], "query_type": [ "A", "AAAA" ], "server": "dns_fakeip" },
80+
{ "rule_set": [ "cn" ], "query_type": [ "A", "AAAA" ], "server": "dns_direct", "rewrite_ttl": 1 } // # 此条仅演示,可删除
7281
],
7382
"final": "dns_direct",
7483
"strategy": "prefer_ipv4",

_posts/2024-08-22-dnsnoleaks-singboxr-ruleset.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ tags: [sing-box, sing-boxr, ShellCrash, ruleset, rule_set, 进阶, DNS, DNS 泄
88

99
> 说明
1010
{: .prompt-tip }
11-
1. 此方案彻底防止了 DNS 泄露(未知域名在匹配 `route.rules.rule_set:cn` 规则时会走国外 DNS 解析且配置 `client_subnet`,解析出 IP 在国内则走 `🀄️ 直连 IP` 规则,否则走 `🐟 漏网之鱼` 规则),兼容性高,可放心使用
11+
1. 此方案彻底防止了 DNS 泄露(未知域名在匹配 `route.rules.rule_set:cnip` 规则时会走国外 DNS 解析且配置 `client_subnet`,解析出 IP 在国内则走 `🀄️ 直连 IP` 规则,否则走 `🐟 漏网之鱼` 规则),兼容性高,可放心使用
1212
2. 本教程以 [ShellCrash](https://github.com/juewuy/ShellCrash) 为例,其它客户端亦可参考
13-
3. 可进入 <https://ipleak.net> 测试 DNS 是否泄露,“DNS Addresses” 栏目下没有中国国旗(因 `ipleak.net` 属未知域名,默认走 `🐟 漏网之鱼` 规则),即代表 DNS 没有发生泄露
13+
3. 本教程搭载 [sing-box 内核 reF1nd-dev 版](https://github.com/reF1nd/sing-box/tree/reF1nd-dev)(导入内核方法可参考《[ShellCrash 和 AdGuard Home 快速安装教程/导入 mihomo 内核 或 sing-box 内核](https://proxy-tutorials.dustinwin.us.kg/posts/pin-toolsinstall/#%E4%BA%8C-%E5%AF%BC%E5%85%A5-mihomo-%E5%86%85%E6%A0%B8-%E6%88%96-sing-box-%E5%86%85%E6%A0%B8)》)
14+
4. 可进入 <https://ipleak.net> 测试 DNS 是否泄露,“DNS Addresses” 栏目下没有中国国旗(因 `ipleak.net` 属未知域名,默认走 `🐟 漏网之鱼` 规则),即代表 DNS 没有发生泄露
1415

1516
## 一、 导入规则集合文件
16-
`route.rule_set` 须添加 `fakeip-filter``cn`,如下:
17+
`route.rule_set` 须添加 `fakeip-filter``cn``proxy`,如下:
1718

1819
```json
1920
{
@@ -78,8 +79,9 @@ tags: [sing-box, sing-boxr, ShellCrash, ruleset, rule_set, 进阶, DNS, DNS 泄
7879
{ "ip_accept_any": true, "server": "hosts" },
7980
{ "clash_mode": [ "Direct" ], "query_type": [ "A", "AAAA" ], "server": "dns_direct" },
8081
{ "clash_mode": [ "Global" ], "query_type": [ "A", "AAAA" ], "server": "dns_proxy" },
81-
{ "rule_set": [ "fakeip-filter", "cn" ], "query_type": [ "A", "AAAA" ], "server": "dns_direct", "rewrite_ttl": 1 },
82-
{ "query_type": [ "A", "AAAA" ], "server": "dns_fakeip" }
82+
{ "rule_set": [ "fakeip-filter" ], "query_type": [ "A", "AAAA" ], "server": "dns_direct", "rewrite_ttl": 1 },
83+
{ "rule_set": [ "proxy" ], "query_type": [ "A", "AAAA" ], "server": "dns_fakeip" },
84+
{ "rule_set": [ "cn" ], "query_type": [ "A", "AAAA" ], "server": "dns_direct", "rewrite_ttl": 1 }
8385
],
8486
"final": "dns_proxy",
8587
"strategy": "prefer_ipv4",
@@ -190,8 +192,8 @@ tags: [sing-box, sing-boxr, ShellCrash, ruleset, rule_set, 进阶, DNS, DNS 泄
190192
{ "ip_accept_any": true, "server": "hosts" },
191193
{ "clash_mode": [ "Direct" ], "query_type": [ "A", "AAAA" ], "server": "dns_direct" },
192194
{ "clash_mode": [ "Global" ], "query_type": [ "A", "AAAA" ], "server": "dns_proxy" },
193-
{ "rule_set": [ "fakeip-filter", "cn" ], "query_type": [ "A", "AAAA" ], "server": "dns_direct", "rewrite_ttl": 1 },
194-
{ "rule_set": [ "proxy" ], "query_type": [ "A", "AAAA" ], "server": "dns_proxy", "rewrite_ttl": 1 }
195+
{ "rule_set": [ "proxy" ], "query_type": [ "A", "AAAA" ], "server": "dns_proxy", "rewrite_ttl": 1 },
196+
{ "rule_set": [ "fakeip-filter", "cn" ], "query_type": [ "A", "AAAA" ], "server": "dns_direct", "rewrite_ttl": 1 }
195197
],
196198
"final": "dns_proxy",
197199
"strategy": "prefer_ipv4",

0 commit comments

Comments
 (0)