Skip to content
This repository was archived by the owner on May 17, 2026. It is now read-only.
This repository was archived by the owner on May 17, 2026. It is now read-only.

启用该模块后似乎无法正常使用 localhost 作为内置 dns 的 server #86

@Aniark

Description

@Aniark

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions