Skip to content

V2ray在非标准linux环境中的DNS域名解析问题 #1909

@nexw

Description

@nexw

提交 Issue 之前请先阅读 Issue 指引,然后回答下面的问题,谢谢。
除非特殊情况,请完整填写所有问题。不按模板发的 issue 将直接被关闭。
如果你遇到的问题不是 V2Ray 的 bug,比如你不清楚要如何配置,请使用Discussion进行讨论。

  1. 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明)
    v2ray 4.20

  2. 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。
    在Android的模拟终端类应用中使用v2ray二进制(APP:termux, CPU:aarch)

  3. 你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等)
    无法解析配置文件中指定的域名。

  4. 你期待看到的正确表现是怎样的?
    在另一个项目中遇到过同样的问题,并且已经得到解决。修复这个问题有助于v2ray在一些特殊环境中运行,具有更好的兼容性。参见FRP在Android中的DNS问题issuesGOLANG中的DNS问题

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

服务器端配置:

    // 在这里附上服务器端配置文件
//服务器端运行正常,且与本问题无关。

客户端配置:

    // 在这里附上客户端配置
"outbounds": [
    {
      "mux": {
        "enabled": false
      },
      "protocol": "shadowsocks",
      "settings": {
        "servers": [
          {
            "address": "******",
            "level": 8,
            "method": "aes-256-gcm",
            "ota": false,
            "password": "***",
            "port": 443
          }
        ]
      },
      "streamSettings": {
        "network": "ws",
        "security": "tls",
        "tlssettings": {
          "allowInsecure": true,
          "serverName": "******"
        },
        "wssettings": {
          "connectionReuse": true,
          "headers": {
            "Host": ""
          },
          "path": "/test"
        }
      },
      "tag": "proxy"
    },
  1. 请附上出错时软件输出的错误日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。

服务器端错误日志:

    // 在这里附上服务器端日志
//服务器端运行正常,且与本问题无关。

客户端错误日志:

2019/09/27 09:42:31 [Warning] [2843975150] v2ray.com/         core/app/proxyman/outbound: failed to process outbound        traffic > v2ray.com/core/proxy/shadowsocks: failed to         find an available destination > v2ray.com/core/common/        retry: [v2ray.com/core/transport/internet/websocket:          failed to dial WebSocket > v2ray.com/core/transport/          internet/websocket: failed to dial to (wss://***/***):  > dial tcp: lookup *** on [::1]:53: read udp        [::1]:42862->[::1]:53: read: connection refused v2ray.        com/core/transport/internet/websocket: failed to dial         WebSocket > v2ray.com/core/transport/internet/                websocket: failed to dial to (wss://***/***):  >           dial tcp: lookup ****** on [::1]:53: read udp [::1]:        42608->[::1]:53: read: connection refused v2ray.com/          core/transport/internet/websocket: failed to dial             WebSocket > v2ray.com/core/transport/internet/                websocket: failed to dial to (wss://***/***):  >           dial tcp: lookup ****** on [::1]:53: read udp [::1]:        46042->[::1]:53: read: connection refused v2ray.com/          core/transport/internet/websocket: failed to dial             WebSocket > v2ray.com/core/transport/internet/                websocket: failed to dial to (wss://***/***):  >           dial tcp: lookup ***** on [::1]:53: read udp [::1]:        39998->[::1]:53: read: connection refused v2ray.com/          core/transport/internet/websocket: failed to dial             WebSocket > v2ray.com/core/transport/internet/                websocket: failed to dial to (wss://***/***):  >           dial tcp: lookup ***** on [::1]:53: read udp [::1]:        38482->[::1]:53: read: connection refused] > v2ray.com/       core/common/retry: all retry attempts failed
    // 在这里附上客户端日志
  1. 请附上访问日志。在 Linux 中,日志通常在 /var/log/v2ray/access.log 文件中。
    // 在这里附上服务器端日志
//服务器端运行正常,且与本问题无关。
  1. 其它相关的配置文件(如 Nginx)和相关日志。

  2. 如果 V2Ray 无法启动,请附上 --test 输出。

通常的命令为 /usr/bin/v2ray/v2ray --test --config /etc/v2ray/config.json。请按实际情况修改。

  1. 如果 V2Ray 服务运行不正常,请附上 journal 日志。

通常的命令为 journalctl -u v2ray

请预览一下你填的内容再提交。

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions