-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
启用该模块后似乎无法正常使用 localhost 作为内置 dns 的 server #86
Comments
@Aniark 不要使用 "address": "localhost" ,若要使用请开启 CGO 编译 *ray 替换原核心。 |
收到,我这就去试试 |
@CerteKim 测试完毕, CGO 编译 的 xray-core 虽然日志里没有报错,但是依然无法正常解析 cn 域名,表现为访问 cn 域名会载入很久,最后以浏览器报错告终: ERR_NAME_NOT_RESOLVED 。日志如下 Xray 1.6.1 (Xray, Penetrates Everything.) fbb0f12 (go1.19.2 android/arm64) |
看到大量 |
DNS 配置,!cn 域名使用 fakedns 解析,cn 则使用 localhost 解析
"dns": {
"servers": [
{
"address": "fakedns",
"domains": ["geosite:geolocation-!cn"]
},
{
"address": "localhost",
"domains": ["geosite:cn", "geosite:geolocation-cn"]
}
],
"tag": "dns",
"queryStrategy": "UseIP"
}
预期情况:cn 域名将由 localhost 解析
实际情况:cn 域名一律无法正常解析,只有 !cn 域名正常解析
后来发现同样的 dns 配置,在 v2rayng 能正常使用,在 Xray4Magisk 下会出错,报错日志:
2022/10/23 04:10:30 [Info] app/dns: failed to lookup ip for domain fanyi.baidu.com at server localhost > lookup fanyi.baidu.com on [::1]:53: dial udp [::1]:53: connect: cannot assign requested address
联动 XTLS/Xray-core#1265
The text was updated successfully, but these errors were encountered: