2dust / v2rayN

A GUI client for Windows, support Xray core and v2fly core and others
https://1.2345345.xyz
GNU General Public License v3.0
69.3k stars 11.48k forks source link

[Bug]: dns: exchange failed for #5702

Closed sssagsag closed 1 month ago

sssagsag commented 1 month ago

Hello, in version 6.59 and tun mode with custom configuration, when the service is started, this error appears and the domain does not ping the Address field, what is the problem and how to solve it

+0330 2024-09-17 22:36:42 ERROR [1026318492 4.56s] dns: exchange failed for check-host.net. IN A: context canceled +0330 2024-09-17 22:36:42 ERROR [1738890658 8.75s] dns: exchange failed for dns.msftncsi.com. IN A: context canceled +0330 2024-09-17 22:36:42 ERROR [2613313427 10.0s] dns: exchange failed for a.nel.cloudflare.com. IN A: context canceled +0330 2024-09-17 22:36:42 ERROR [1026318492 4.56s] dns: exchange failed for check-host.net. IN A: context canceled +0330 2024-09-17 22:36:42 ERROR [1700892612 8.75s] dns: exchange failed for speedtest.net. IN A: context canceled +0330 2024-09-17 22:36:42 ERROR [2613313427 10.0s] dns: exchange failed for a.nel.cloudflare.com. IN A: context canceled +0330 2024-09-17 22:36:42 ERROR [1700892612 8.75s] dns: exchange failed for speedtest.net. IN A: context canceled +0330 2024-09-17 22:36:42 ERROR [1258850395 4.56s] dns: exchange failed for safebrowsing.google.com. IN A: context canceled +0330 2024-09-17 22:36:42 ERROR [1239419475 9.61s] dns: exchange failed for check-host.net. IN A: context canceled +0330 2024-09-17 22:36:42 ERROR [2613313427 10.0s] dns: exchange failed for a.nel.cloudflare.com. IN A: context canceled +0330 2024-09-17 22:36:42 ERROR [2613313427 10.0s] dns: exchange failed for a.nel.cloudflare.com. IN A: context deadline exceeded +0330 2024-09-17 22:36:42 ERROR [1026318492 4.56s] dns: exchange failed for check-host.net. IN A: context canceled +0330 2024-09-17 22:36:42 ERROR [1026318492 4.56s] dns: exchange failed for check-host.net. IN A: context canceled +0330 2024-09-17 22:36:42 ERROR [1258850395 4.56s] dns: exchange failed for safebrowsing.google.com. IN A: context canceled +0330 2024-09-17 22:36:42 ERROR [1258850395 4.56s] dns: exchange failed for safebrowsing.google.com. IN A: context canceled +0330 2024-09-17 22:36:42 ERROR [2613313427 10.0s] dns: exchange failed for a.nel.cloudflare.com. IN A: context canceled +0330 2024-09-17 22:36:42 ERROR [1700892612 8.75s] dns: exchange failed for speedtest.net. IN A: context canceled +0330 2024-09-17 22:36:42 ERROR [1258850395 4.56s] dns: exchange failed for safebrowsing.google.com. IN A: context canceled +0330 2024-09-17 22:36:42 ERROR [1700892612 8.75s] dns: exchange failed for speedtest.net. IN A: context canceled +0330 2024-09-17 22:36:42 ERROR [1700892612 8.75s] dns: exchange failed for speedtest.net. IN A: context canceled 2024/09/17 22:36:45 [Error] [144291923] transport/internet/websocket: failed to dial to speedtest.net:443 > dial tcp: lookup speedtest.net: no such host 2024/09/17 22:36:45 [Error] [1469930149] transport/internet/websocket: failed to dial to speedtest.net:443 > dial tcp: lookup speedtest.net: no such host 2024/09/17 22:36:45 [Error] [3148194022] transport/internet/websocket: failed to dial to speedtest.net:443 > dial tcp: lookup speedtest.net: no such host 2024/09/17 22:36:45 from tcp:127.0.0.1:38014 accepted tcp:149.154.167.91:80 [socks -> proxy] 2024/09/17 22:36:45 from udp:127.0.0.1:52323 accepted udp:8.8.8.8:53 [socks -> proxy]

sssagsag commented 1 month ago

The problem is that the Address domain is not resolved, and a route must be written for Singbox so that the addresses can be routed locally.

sssagsag commented 1 month ago

with this dns settings for singbox tun fixed . may add in import configuration dns for singbox? { "servers": [ { "tag": "local", "address": "dhcp://auto", "detour": "direct" }, { "tag": "remote", "address": "https://1.1.1.1/dns-query", "detour": "proxy" } ], "rules": [ { "outbound": "any", "server": "local" } ], "final": "remote", "strategy": "prefer_ipv4" }

2dust commented 1 month ago

https://github.com/2dust/v2rayN/issues/4539