Skip to content
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

内置DNS的“expectIPs”功能无法正常工作 #19

Open
gubiao opened this issue Jul 30, 2022 · 0 comments
Open

内置DNS的“expectIPs”功能无法正常工作 #19

gubiao opened this issue Jul 30, 2022 · 0 comments

Comments

@gubiao
Copy link

gubiao commented Jul 30, 2022

在v2ray-core/xray-core/AnXray中, 我总是使用以下配置做国内/国内IP地址分流:

{
  "dns": {
    "servers": [
      {
        "address": "119.29.29.29",
        "expectIPs": [
          "ext:geoip-only-cn-private.dat:cn"
        ]
      },
      {
        "address": "8.8.8.8"
      },
      {
        "address": "localhost"
      }
    ],
    "disableCache": false,
    "queryStrategy": "UseIPv4",
    "disableFallbackIfMatch": true
  }
}

首先查询国内DNS, 如果返回的IP是国内地址则最为最终结果, 如果返回的IP是国外地址则继续通过代理查询谷歌DNS并把返回的结果作为最终结果;
路有组件中配置国内国外IP地址分流, 国外IP地址统一全部走代理;

客户端和服务端全部切换为最新版本SagerNet/v2ray-core后发现此方式无法正常工作, “expectIPs”配置项好像是被忽略了, "重写后的DNS模块"不再提供此功能?还是这是由于BUG造成的?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant