Skip to content

Commit 6e337cb

Browse files
committed
🐱 Improve DNS generator
1 parent 5d7b142 commit 6e337cb

44 files changed

Lines changed: 364 additions & 169 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Base/DNS.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@ DNS:
1010
- https://doh.pub/dns-query
1111
- https://cloudflare-dns.com/dns-query
1212
- https://dns.google/dns-query
13-
Proxy_Server_DoH:
14-
- https://doh.pub/dns-query
1513
Direct_DoH:
1614
- https://doh.pub/dns-query
17-
Proxy_DoH:
15+
Fallback_DoH:
1816
- https://cloudflare-dns.com/dns-query
1917
- https://dns.google/dns-query
20-

Base/Head/Head_Box4Root.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,11 @@ dns:
7777
enhanced-mode: fake-ip
7878
fake-ip-range: 198.18.0.1/16
7979
fake-ip-range6: fdfe:dcba:9876::1/64
80-
default-nameserver: {DNS_IP_List}
81-
nameserver: {DNS_IP_List}
82-
fake-ip-filter: {Fake_IP_Filter_List}
80+
default-nameserver: "$DNS_IP_List"
81+
direct-nameserver: "$DNS_Direct_DoH_List"
82+
proxy-server-nameserver: "$DNS_Direct_DoH_List"
83+
nameserver: "$DNS_Default_DoH_List"
84+
fake-ip-filter: "$Fake_IP_Filter_List"
8385

8486
sniffer:
8587
sniff:
@@ -101,4 +103,4 @@ rule-providers:
101103

102104
rules:
103105
- DST-PORT,53,DNS_Hijack
104-
- <ProxyRules_Pack>
106+
- "$ProxyRules_Pack"

Base/Head/Head_Mihomo.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ dns:
2424
enhanced-mode: fake-ip
2525
fake-ip-range: 198.18.0.1/16
2626
fake-ip-range6: fdfe:dcba:9876::1/64
27-
default-nameserver: {DNS_IP_List}
28-
nameserver: {DNS_DoH_List}
29-
fake-ip-filter: {Fake_IP_Filter_List}
27+
default-nameserver: "$DNS_IP_List"
28+
direct-nameserver: "$DNS_Direct_DoH_List"
29+
proxy-server-nameserver: "$DNS_Direct_DoH_List"
30+
nameserver: "$DNS_Default_DoH_List"
31+
fake-ip-filter: "$Fake_IP_Filter_List"
3032

3133
sniffer:
3234
sniff:

Base/Head/Head_Stash.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ dns:
88
enhanced-mode: fake-ip
99
fake-ip-range: 198.18.0.1/16
1010
fake-ip-range6: fdfe:dcba:9876::1/64
11-
default-nameserver: {DNS_IP_List}
12-
nameserver: {DNS_DoH_List}
13-
fake-ip-filter: {Fake_IP_Filter_List}
11+
default-nameserver: "$DNS_IP_List"
12+
direct-nameserver: "$DNS_Direct_DoH_List"
13+
proxy-server-nameserver: "$DNS_Direct_DoH_List"
14+
nameserver: "$DNS_Default_DoH_List"
15+
fake-ip-filter: "$Fake_IP_Filter_List"

Config/Box4Root/Box4Root_config.yaml

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# Generated at (UTC): 2026-03-24T11:05:01Z
1+
# Generated at (UTC): 2026-03-24T11:50:08Z
22

33
# PianCat's ProxyRules - Box4Root 复杂配置
4+
45
# 如不会配置,也可自行寻找懒人配置,例如(Surfing 模块配置):https://raw.githubusercontent.com/GitMetaio/Surfing/refs/heads/main/box_bll/clash/config.yaml
56

67
proxy-providers:
@@ -16,17 +17,28 @@ proxy-providers:
1617
timeout: 1000
1718
tolerance: 100
1819
# 多订阅按照下面照葫芦画瓢即可
19-
# proxy2:
20-
# type: http
21-
# url: "填写订阅链接"
22-
# path: ./proxy_provider/proxy2.yaml
23-
# interval: 3600
24-
# health-check:
25-
# enable: true
26-
# url: https://cp.cloudflare.com
27-
# interval: 300
28-
# timeout: 1000
29-
# tolerance: 100
20+
# proxy2:
21+
22+
# type: http
23+
24+
# url: "填写订阅链接"
25+
26+
# path: ./proxy_provider/proxy2.yaml
27+
28+
# interval: 3600
29+
30+
# health-check:
31+
32+
# enable: true
33+
34+
# url: https://cp.cloudflare.com
35+
36+
# interval: 300
37+
38+
# timeout: 1000
39+
40+
# tolerance: 100
41+
3042
mixed-port: 56365
3143
redir-port: 9797
3244
tproxy-port: 9898
@@ -39,6 +51,7 @@ tcp-concurrent: true
3951
log-level: error
4052
find-process-mode: always
4153
# global-client-fingerprint: random
54+
4255
external-controller: 0.0.0.0:9090
4356
external-ui: ./dashboard
4457
external-ui-url: "https://github.com/Zephyruso/zashboard/archive/refs/heads/gh-pages.zip"
@@ -69,19 +82,23 @@ proxies:
6982
dns:
7083
enable: true
7184
ipv6: true
85+
listen: 0.0.0.0:1053
7286
enhanced-mode: fake-ip
87+
fake-ip-range: 198.18.0.1/16
88+
fake-ip-range6: fdfe:dcba:9876::1/64
7389
default-nameserver:
7490
- 119.29.29.29
7591
- '2402:4e00::'
7692
- 1.1.1.1
7793
- 2606:4700:4700::1111
7894
- 8.8.8.8
7995
- 2001:4860:4860::8888
80-
proxy-server-nameserver:
81-
- https://doh.pub/dns-query
8296
direct-nameserver:
8397
- https://doh.pub/dns-query
98+
proxy-server-nameserver:
99+
- https://doh.pub/dns-query
84100
nameserver:
101+
- https://doh.pub/dns-query
85102
- https://cloudflare-dns.com/dns-query
86103
- https://dns.google/dns-query
87104
fake-ip-filter:

Config/Box4Root/Box4Root_config_no_ipv6.yaml

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# Generated at (UTC): 2026-03-24T11:05:01Z
1+
# Generated at (UTC): 2026-03-24T11:50:08Z
22

33
# PianCat's ProxyRules - Box4Root 复杂配置
4+
45
# 如不会配置,也可自行寻找懒人配置,例如(Surfing 模块配置):https://raw.githubusercontent.com/GitMetaio/Surfing/refs/heads/main/box_bll/clash/config.yaml
56

67
proxy-providers:
@@ -16,17 +17,28 @@ proxy-providers:
1617
timeout: 1000
1718
tolerance: 100
1819
# 多订阅按照下面照葫芦画瓢即可
19-
# proxy2:
20-
# type: http
21-
# url: "填写订阅链接"
22-
# path: ./proxy_provider/proxy2.yaml
23-
# interval: 3600
24-
# health-check:
25-
# enable: true
26-
# url: https://cp.cloudflare.com
27-
# interval: 300
28-
# timeout: 1000
29-
# tolerance: 100
20+
# proxy2:
21+
22+
# type: http
23+
24+
# url: "填写订阅链接"
25+
26+
# path: ./proxy_provider/proxy2.yaml
27+
28+
# interval: 3600
29+
30+
# health-check:
31+
32+
# enable: true
33+
34+
# url: https://cp.cloudflare.com
35+
36+
# interval: 300
37+
38+
# timeout: 1000
39+
40+
# tolerance: 100
41+
3042
mixed-port: 56365
3143
redir-port: 9797
3244
tproxy-port: 9898
@@ -39,6 +51,7 @@ tcp-concurrent: true
3951
log-level: error
4052
find-process-mode: always
4153
# global-client-fingerprint: random
54+
4255
external-controller: 0.0.0.0:9090
4356
external-ui: ./dashboard
4457
external-ui-url: "https://github.com/Zephyruso/zashboard/archive/refs/heads/gh-pages.zip"
@@ -69,16 +82,20 @@ proxies:
6982
dns:
7083
enable: true
7184
ipv6: false
85+
listen: 0.0.0.0:1053
7286
enhanced-mode: fake-ip
87+
fake-ip-range: 198.18.0.1/16
88+
fake-ip-range6: fdfe:dcba:9876::1/64
7389
default-nameserver:
7490
- 119.29.29.29
7591
- 1.1.1.1
7692
- 8.8.8.8
77-
proxy-server-nameserver:
78-
- https://doh.pub/dns-query
7993
direct-nameserver:
8094
- https://doh.pub/dns-query
95+
proxy-server-nameserver:
96+
- https://doh.pub/dns-query
8197
nameserver:
98+
- https://doh.pub/dns-query
8299
- https://cloudflare-dns.com/dns-query
83100
- https://dns.google/dns-query
84101
fake-ip-filter:

Config/Box4Root/Box4Root_config_tun.yaml

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# Generated at (UTC): 2026-03-24T11:05:01Z
1+
# Generated at (UTC): 2026-03-24T11:50:08Z
22

33
# PianCat's ProxyRules - Box4Root 复杂配置
4+
45
# 如不会配置,也可自行寻找懒人配置,例如(Surfing 模块配置):https://raw.githubusercontent.com/GitMetaio/Surfing/refs/heads/main/box_bll/clash/config.yaml
56

67
proxy-providers:
@@ -16,17 +17,28 @@ proxy-providers:
1617
timeout: 1000
1718
tolerance: 100
1819
# 多订阅按照下面照葫芦画瓢即可
19-
# proxy2:
20-
# type: http
21-
# url: "填写订阅链接"
22-
# path: ./proxy_provider/proxy2.yaml
23-
# interval: 3600
24-
# health-check:
25-
# enable: true
26-
# url: https://cp.cloudflare.com
27-
# interval: 300
28-
# timeout: 1000
29-
# tolerance: 100
20+
# proxy2:
21+
22+
# type: http
23+
24+
# url: "填写订阅链接"
25+
26+
# path: ./proxy_provider/proxy2.yaml
27+
28+
# interval: 3600
29+
30+
# health-check:
31+
32+
# enable: true
33+
34+
# url: https://cp.cloudflare.com
35+
36+
# interval: 300
37+
38+
# timeout: 1000
39+
40+
# tolerance: 100
41+
3042
mixed-port: 56365
3143
redir-port: 9797
3244
tproxy-port: 9898
@@ -39,6 +51,7 @@ tcp-concurrent: true
3951
log-level: error
4052
find-process-mode: always
4153
# global-client-fingerprint: random
54+
4255
external-controller: 0.0.0.0:9090
4356
external-ui: ./dashboard
4457
external-ui-url: "https://github.com/Zephyruso/zashboard/archive/refs/heads/gh-pages.zip"
@@ -69,19 +82,23 @@ proxies:
6982
dns:
7083
enable: true
7184
ipv6: true
85+
listen: 0.0.0.0:1053
7286
enhanced-mode: fake-ip
87+
fake-ip-range: 198.18.0.1/16
88+
fake-ip-range6: fdfe:dcba:9876::1/64
7389
default-nameserver:
7490
- 119.29.29.29
7591
- '2402:4e00::'
7692
- 1.1.1.1
7793
- 2606:4700:4700::1111
7894
- 8.8.8.8
7995
- 2001:4860:4860::8888
80-
proxy-server-nameserver:
81-
- https://doh.pub/dns-query
8296
direct-nameserver:
8397
- https://doh.pub/dns-query
98+
proxy-server-nameserver:
99+
- https://doh.pub/dns-query
84100
nameserver:
101+
- https://doh.pub/dns-query
85102
- https://cloudflare-dns.com/dns-query
86103
- https://dns.google/dns-query
87104
fake-ip-filter:

Config/Box4Root/Box4Root_config_tun_no_ipv6.yaml

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# Generated at (UTC): 2026-03-24T11:05:01Z
1+
# Generated at (UTC): 2026-03-24T11:50:08Z
22

33
# PianCat's ProxyRules - Box4Root 复杂配置
4+
45
# 如不会配置,也可自行寻找懒人配置,例如(Surfing 模块配置):https://raw.githubusercontent.com/GitMetaio/Surfing/refs/heads/main/box_bll/clash/config.yaml
56

67
proxy-providers:
@@ -16,17 +17,28 @@ proxy-providers:
1617
timeout: 1000
1718
tolerance: 100
1819
# 多订阅按照下面照葫芦画瓢即可
19-
# proxy2:
20-
# type: http
21-
# url: "填写订阅链接"
22-
# path: ./proxy_provider/proxy2.yaml
23-
# interval: 3600
24-
# health-check:
25-
# enable: true
26-
# url: https://cp.cloudflare.com
27-
# interval: 300
28-
# timeout: 1000
29-
# tolerance: 100
20+
# proxy2:
21+
22+
# type: http
23+
24+
# url: "填写订阅链接"
25+
26+
# path: ./proxy_provider/proxy2.yaml
27+
28+
# interval: 3600
29+
30+
# health-check:
31+
32+
# enable: true
33+
34+
# url: https://cp.cloudflare.com
35+
36+
# interval: 300
37+
38+
# timeout: 1000
39+
40+
# tolerance: 100
41+
3042
mixed-port: 56365
3143
redir-port: 9797
3244
tproxy-port: 9898
@@ -39,6 +51,7 @@ tcp-concurrent: true
3951
log-level: error
4052
find-process-mode: always
4153
# global-client-fingerprint: random
54+
4255
external-controller: 0.0.0.0:9090
4356
external-ui: ./dashboard
4457
external-ui-url: "https://github.com/Zephyruso/zashboard/archive/refs/heads/gh-pages.zip"
@@ -69,16 +82,20 @@ proxies:
6982
dns:
7083
enable: true
7184
ipv6: false
85+
listen: 0.0.0.0:1053
7286
enhanced-mode: fake-ip
87+
fake-ip-range: 198.18.0.1/16
88+
fake-ip-range6: fdfe:dcba:9876::1/64
7389
default-nameserver:
7490
- 119.29.29.29
7591
- 1.1.1.1
7692
- 8.8.8.8
77-
proxy-server-nameserver:
78-
- https://doh.pub/dns-query
7993
direct-nameserver:
8094
- https://doh.pub/dns-query
95+
proxy-server-nameserver:
96+
- https://doh.pub/dns-query
8197
nameserver:
98+
- https://doh.pub/dns-query
8299
- https://cloudflare-dns.com/dns-query
83100
- https://dns.google/dns-query
84101
fake-ip-filter:

Config/Loon/Loon_config.lcf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated at (UTC): 2026-03-24T11:05:01Z
1+
# Generated at (UTC): 2026-03-24T11:50:08Z
22

33
#Update Date: 2025.11.05 18:00:00 +0800
44
#author: PianCat

Config/Loon/Loon_config_no_ipv6.lcf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated at (UTC): 2026-03-24T11:05:01Z
1+
# Generated at (UTC): 2026-03-24T11:50:08Z
22

33
#Update Date: 2025.11.05 18:00:00 +0800
44
#author: PianCat

0 commit comments

Comments
 (0)