v2ray-core icon indicating copy to clipboard operation
v2ray-core copied to clipboard

DOH 获得解析地址后仍解析失败&有时DOH解析IPv6地址为空

Open simplerick-simplefun opened this issue 3 years ago • 1 comments

What version of V2Ray are you using?

v4.45.2

问题描述:

问题一: 1.v2ray在通过内置DNS进行解析时,尝试解析bl3302files.storage.live.com。 2.内置DNS匹配到了规则,并列出了解析顺序:DOH//dns.google UDP:1.1.1.1:53.................. 3.通过DOH//dns.google解析得到了A地址。(因为我设置的是只解析/连接IPv4) 4.报错:通过DOH//dns.google解析bl3302files.storage.live.com失败。 5.开始尝试下一个:通过UDP:1.1.1.1:53解析bl3302files.storage.live.com。

问题就是第4步。既然已经解析出了A地址,就不应该报错认为解析失败,还去尝试下一个DNS服务器。应该使用已经解析出来的地址进行下一步的连接。

问题二: 有时通过DOH解析AAAA地址为空。但是实际是可以解析出IPv6地址的。

Log:(问题一)

2022/07/16 14:05:42 [Debug] app/dns: domain bl3302files.storage.live.com matches following rules: [geosite:geolocation-!cn(DNS idx:3) geosite:geolocation-!cn(DNS idx:5)] 2022/07/16 14:05:42 [Debug] app/dns: domain bl3302files.storage.live.com will use DNS in order: [DOH//dns.google UDP:1.1.1.1:53 DOHL//120.53.53.53 UDP:223.5.5.5:53] 2022/07/16 14:05:42 [Info] app/dns: DOH//dns.google querying: bl3302files.storage.live.com. 2022/07/16 14:05:42 [Info] app/dns: DOH//dns.google got answer: bl3301files.storage.live.com. TypeA -> [13.107.42.12] 308.824ms 2022/07/16 14:05:42 [Info] app/proxyman/outbound: failed to process outbound traffic > proxy/trojan: connection ends > context canceled 2022/07/16 14:05:42 [Info] app/dns: DOH//dns.google got answer: blufiles.storage.live.com. TypeA -> [13.107.42.12] 340.673462ms 2022/07/16 14:05:42 [Info] app/proxyman/outbound: failed to process outbound traffic > proxy/trojan: connection ends > context canceled 2022/07/16 14:05:42 [Error] app/dns: failed to retrieve response > Post "https://dns.google/dns-query": io: read/write on closed pipe 2022/07/16 14:05:46 [Info] app/dns: failed to lookup ip for domain bl3302files.storage.live.com at server DOH//dns.google > context deadline exceeded 2022/07/16 14:05:46 [Debug] app/dns: UDP:1.1.1.1:53 querying DNS for: bl3302files.storage.live.com.

simplerick-simplefun avatar Jul 16 '22 14:07 simplerick-simplefun

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Nov 20 '22 02:11 github-actions[bot]