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

使用DOH时 空域名不被视为有效记录 #2347

Closed
k79e opened this issue Mar 18, 2020 · 13 comments
Closed

使用DOH时 空域名不被视为有效记录 #2347

k79e opened this issue Mar 18, 2020 · 13 comments

Comments

@k79e
Copy link

k79e commented Mar 18, 2020

双边都是最新版4.22.1

2020/03/18 19:04:27 [Info] v2ray.com/core/app/dns: DOH//dns.quad9.net querying:
addr_MASK.
2020/03/18 19:04:28 [Info] v2ray.com/core/app/dns: DOH//dns.quad9.net got answer
e: addr_MASK. TypeA -> [] 331.0189ms //我没有删除ip信息 这就是个空域名
2020/03/18 19:04:28 [Info] v2ray.com/core/app/dns: DOH//dns.quad9.net got answer
e: addr_MASK. TypeAAAA -> [] 331.0189ms
2020/03/18 19:04:31 [Info] v2ray.com/core/app/dns: failed to lookup ip for domai
n addr_MASK at server DOH//dns.quad9.net > context deadline exceeded
2020/03/18 19:04:31 [Info] v2ray.com/core/app/router: resolve ip for addr_MASK > v
2ray.com/core/app/dns: returning nil for domain addr_MASK > context deadline excee
ded
注意27秒-31是4秒 所以超时了 虽然0.3秒就收到了记录 下面第二次也一样.
这个第二次是v2自己重试的 我curl配置的--retry 0
2020/03/18 19:04:31 [Info] v2ray.com/core/app/dns: DOH//dns.quad9.net querying:
addr_MASK.
2020/03/18 19:04:32 [Info] v2ray.com/core/app/dns: DOH//dns.quad9.net got answer
e: addr_MASK. TypeAAAA -> [] 327.0187ms
2020/03/18 19:04:32 [Info] v2ray.com/core/app/dns: DOH//dns.quad9.net got answer
e: addr_MASK. TypeA -> [] 327.0187ms
2020/03/18 19:04:35 [Info] v2ray.com/core/app/dns: failed to lookup ip for domai
n addr_MASK at server DOH//dns.quad9.net > context deadline exceeded
2020/03/18 19:04:35 [Info] v2ray.com/core/app/router: resolve ip for addr_MASK > v
2ray.com/core/app/dns: returning nil for domain addr_MASK > context deadline excee
ded
2020/03/18 19:04:35 [Info] [121456475] v2ray.com/core/app/dispatcher: default ro
ute for tcp:addr_MASK:80
2020/03/18 19:04:35 [Info] [121456475] v2ray.com/core/common/mux: dispatching re
quest to tcp:addr_MASK:80

使用浏览器直接访问不存在的域名 或者curl -x socks5h:https://xxxx --retry 0 域名
然后就复现了.
我不知道这个事情为啥又出现了. 上次不是有个人也提到什么 有a记录和aaaa的一个什么情况?
总之也是个卡4秒超时的. 记不清楚具体是什么了.
对了 是普通dns查询. 我刚才又试了 普通的没问题 是rcode3 被缓存.
这个走了doh之后 又和上次一样 是空域名不被识别.

@k79e k79e changed the title 使用DOH时 nil不被视为有效记录 使用DOH时 空域名不被视为有效记录 Mar 18, 2020
@fbion
Copy link

fbion commented Mar 18, 2020

mark

@mzz2017
Copy link
Contributor

mzz2017 commented Mar 18, 2020

#2212

@k79e
Copy link
Author

k79e commented Mar 22, 2020

还是那样啊 我用的上一版的v2ctl 和最新的测试版exe
还是空域名被视为无效然后卡4秒 然后继续请求然后再卡4秒....
坑死人了 发现那个不走doh也是那样 搞不清楚上次那个dns超时到底修了啥了... 难不成他又重新出现了不成

@k79e
Copy link
Author

k79e commented Mar 22, 2020

原来是忘了关请求重试了... 我再看看去
发现还是那样.....
普通查询倒是被缓存 doh还是老样子

@mzz2017
Copy link
Contributor

mzz2017 commented Mar 22, 2020 via email

@k79e
Copy link
Author

k79e commented Mar 22, 2020

还以为测试版能用了呢......
我慢慢等正式版吧.....

@mzz2017
Copy link
Contributor

mzz2017 commented Mar 22, 2020

我才看到4.23.0已经发布了,这个版本还是有问题吗

@k79e
Copy link
Author

k79e commented Mar 23, 2020

有啊 我提到的就是测试版的....
我明显看到了doh两次查询 都是带延时的 所以没被缓存... 然后还都分别卡了4秒....

@mzz2017
Copy link
Contributor

mzz2017 commented Mar 23, 2020

复现步骤是?

@k79e
Copy link
Author

k79e commented Mar 23, 2020

用s5远程解析
curl -x socks5h:https:// --retry 0

随便一个不存在的域名 复现不了就查t.co的子域名 随便输入个就行

@k79e
Copy link
Author

k79e commented Mar 23, 2020

任意门刚才也测试了 没有重复查询的情况 但是是有4秒超时....
x 14:12:46 [Info] v2ray.com/core/app/dns: DOH//dns.quad9.net got answer
e: xxxx. TypeA -> [] 693.0396ms
x 14:12:49 [Info] v2ray.com/core/app/dns: failed to lookup ip for domai
n xxxx at server DOH//dns.quad9.net > context deadline exceeded

@mzz2017
Copy link
Contributor

mzz2017 commented Mar 23, 2020

我成功复现了这个问题,但在#2211是没有问题的,可能是后面的commit炸了

@mzz2017
Copy link
Contributor

mzz2017 commented Mar 23, 2020

最新版本手动编译没有问题。
已找到原因,最新的4.23.0的pre release实际上是

V2Ray 4.22.0 (V2Fly, a community-driven edition of V2Ray.) Custom
A unified platform for anti-censorship.

@k79e k79e closed this as completed Mar 26, 2020
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

3 participants