v2ray / Planning

Deprecated. Please use v2ray-core for feature requests
60 stars 13 forks source link

建议自带DNS使用enet #47

Closed DarienRaymond closed 6 years ago

DarienRaymond commented 6 years ago

From v2ray-core created by lbp0200 : v2ray/v2ray-core#760

1) 你正在使用哪个版本的 V2Ray?3.0.1

2) 你的使用场景是什么?使用 V2Ray自带DNS 路由功能

3) 你看到的不正常的现象是什么?自带DNS解析域名tce.alicdn.com.danuoyi.alicdn.com到国外

4) 你期待看到的正确表现是怎样的?自带DNS通过google DNS的enet功能,将国内CDN域名根据客户端IP解析到最近的IP,https://developers.google.com/speed/public-dns/docs/dns-over-https,edns_client_subnet参数

5) 请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。 客户端配置:

      "dns": {
    "servers": [
      "8.8.8.8",
      "8.8.4.4",
      "localhost"
    ]
  },
  "routing": {
    "strategy": "rules",
    "settings": {
      "domainStrategy": "IPIfNonMatch",
      "rules": [
        {
          "type": "field",
          "ip": [
            "0.0.0.0/8",
            "10.0.0.0/8",
            "100.64.0.0/10",
            "127.0.0.0/8",
            "169.254.0.0/16",
            "172.16.0.0/12",
            "192.0.0.0/24",
            "192.0.2.0/24",
            "192.168.0.0/16",
            "198.18.0.0/15",
            "198.51.100.0/24",
            "203.0.113.0/24",
            "::1/128",
            "fc00::/7",
            "fe80::/10"
          ],
          "outboundTag": "direct"
        },
        {
          "type": "chinaip",
          "outboundTag": "direct"
        }
      ]
    }
  }

6) 请附上出错时软件输出的错误日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。

7) 请附上访问日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。

   2017/12/04 13:10:41 [Debug]App|DNS|Server: handling response for id 58305 content: ;; opcode: QUERY, status: NOERROR, id: 58305
;; flags: qr rd ra; QUERY: 1, ANSWER: 9, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;tce.alicdn.com.    IN   A

;; ANSWER SECTION:
tce.alicdn.com. 188 IN  CNAME   tce.alicdn.com.danuoyi.alicdn.com.
tce.alicdn.com.danuoyi.alicdn.com.  299 IN  A   64.71.142.82
tce.alicdn.com.danuoyi.alicdn.com.  299 IN  A   64.71.142.92
tce.alicdn.com.danuoyi.alicdn.com.  299 IN  A   64.71.142.81
tce.alicdn.com.danuoyi.alicdn.com.  299 IN  A   64.71.142.120
tce.alicdn.com.danuoyi.alicdn.com.  299 IN  A   64.71.142.95
tce.alicdn.com.danuoyi.alicdn.com.  299 IN  A   64.71.142.91
tce.alicdn.com.danuoyi.alicdn.com.  299 IN  A   64.71.142.96
tce.alicdn.com.danuoyi.alicdn.com.  299 IN  A   64.71.142.110
DarienRaymond commented 6 years ago

会在近期发布此功能。