feat: remote dns for sing

This commit is contained in:
cubemaze
2023-09-21 12:34:03 +08:00
parent b85a78209a
commit cecfffd081
10 changed files with 136 additions and 16 deletions

View File

@@ -10,6 +10,7 @@
"Level": "error",
"Timestamp": true
},
"DnsConfigPath": "/etc/V2bX/dns.json",
"NTP": {
"Enable": true,
"Server": "time.apple.com",
@@ -28,6 +29,7 @@
"ListenIP": "0.0.0.0",
"SendIP": "0.0.0.0",
"EnableProxyProtocol": false,
"EnableDNS": true
"DomainStrategy": "ipv4_only",
"LimitConfig": {
"EnableRealtime": false,

View File

@@ -26,6 +26,7 @@
"Server": "time.apple.com",
"ServerPort": 0
},
"DnsConfigPath": "/etc/V2bX/dns.json",
// SingBox源配置文件目录用于引用标准SingBox配置文件
"OriginalPath": "/etc/V2bX/sing_origin.json"
},
@@ -113,7 +114,9 @@
// 开启 TCP Fast Open
"EnableTFO": true,
// 设置 Domain Strategy
// 开启 DNS
"EnableDNS" : true,
// 设置 Domain Strategy 需要开启 DNS ,默认 AsIS
// 可选 prefer_ipv4 / prefer_ipv6 / ipv4_only / ipv6_only
"DomainStrategy": "ipv4_only",

View File

@@ -9,5 +9,5 @@
"SendIP": "0.0.0.0",
"EnableProxyProtocol": false,
"EnableTFO": true,
"DomainStrategy": "ipv4_only"
"DNSType": "ipv4_only"
}