-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
4.27的dns服务器返回空解析 #141
Comments
v2fly/domain-list-community#158 (comment) 中也有提及类似的表现。 |
还是不一样,他是因为在geosite:cn中的域名无法解析出包含在geoip:cn中的结果,所以返回空解析。而我这个情况,是单独的"223.5.5.5"/"119.29.29.29"没有额外配置,都返回空解析。 |
实测https+local此问题完全消失(补:还是有问题 |
是否应该删除错误响应的缓存
比如做了如下修改
|
不知道。。。 |
或许保留缓存好一点,去掉。。。
|
算了,懒得折腾这问题了,没看见别人有的,可能个例。我去用clash算了 |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please answer all the questions with enough information. All issues not following this template will be closed immediately.
If you are not sure if your question is truely a bug in V2Ray, please discuss it here first.
4.27.0
正常
在4.27.0版本,在dns服务器设置中,走直连的dns解析一些域名随机返回空解析(相同域名不一定每次出现这个问题),致使访问出错。目前仅出现于透明代理和手机上的v2rayng(注意要开本地dns模式,用v2ray的dns object做dns服务器),相同配置文件在电脑上用socks5没有问题;不使用本地dns模式也没问题。所以怀疑是流量进入core的第一次解析为空,导致连接中止。
提供一个检测的域名列表:
zeptovm.com
vultr.com
olvps.com
gullo.me
halocloud.net
idc.wiki
linode.com
xiuluohost.com
以及一些个人博客(海外,最好是hk jp us tw的IP)
随便找的一些idc(非广告),一般是ip符合代理规则,域名不包含在域名代理列表。他们出这个的问题的概率更大。
根据观察,dns服务器解析出错的与具体的dns object有关。
"dns": {
"hosts": {
"geosite:category-ads-all": "127.0.0.1",
"geosite:qihoo360": "127.0.0.1"
},
"servers": [
"223.5.5.5",
"223.6.6.6",
{
"address": "1.1.1.1",
"domains": [
"geolocation-!cn"
],
"port": 53
},
"1.0.0.1"
]
},
上述是存在该问题的配置,若更改为下述配置则无此问题(也可能概率太小
"dns": {
"hosts": {
"geosite:category-ads-all": "127.0.0.1",
"geosite:qihoo360": "127.0.0.1"
},
"servers": [
"1.1.1.1",
“1.0.0.1”,
{
"address": "223.5.5.5",
"domains": [
"geosite:cn"
],
"port": 53
},
"223.6.6.6"
]
},
根据
4) What's your expectation?
修复此问题
5) Please attach your configuration file (Mask IP addresses before submit this issue).
Server configuration:
Client configuration:
/var/log/v2ray/error.log
on Linux.Server error log:
无(已确定是客户端故障)
Client error log:
08-28 14:31:52.530 I/GoLog ( 5839): [Debug] v2ray.com/core/app/dns: UDP:119.29.29.29:53 querying DNS for: olvps.com.
08-28 14:31:52.533 I/GoLog ( 5839): [Debug] v2ray.com/core/app/dns: UDP:119.29.29.29:53 querying DNS for: olvps.com.
08-28 14:31:52.548 I/GoLog ( 5839): [Info] v2ray.com/core/app/dns: UDP:119.29.29.29:53 got answere: olvps.com. TypeA -> [] 14.61323ms
08-28 14:31:52.548 I/GoLog ( 5839): [Debug] v2ray.com/core/app/dns: UDP:119.29.29.29:53 updating IP records for domain:olvps.com.
08-28 14:31:52.548 I/GoLog ( 5839): [Info] v2ray.com/core/app/dns: failed to lookup ip for domain olvps.com at server
08-28 14:31:52.585 I/GoLog ( 5839): [Info] v2ray.com/core/app/dns: UDP:119.29.29.29:53 got answere: olvps.com. TypeAAAA -> [] 54.463333ms
08-28 14:31:52.585 I/GoLog ( 5839): [Debug] v2ray.com/core/app/dns: UDP:119.29.29.29:53 updating IP records for domain:olvps.com.
08-28 14:31:52.586 I/GoLog ( 5839): [Info] v2ray.com/core/app/dns: failed to lookup ip for domain olvps.com at server
08-28 14:31:52.590 I/GoLog ( 5839): [Info] v2ray.com/core/app/dns: UDP:119.29.29.29:53 cache HIT olvps.com -> [] > empty response
之后的记录全是命中119的空缓存,也不查询其他dns了
The text was updated successfully, but these errors were encountered: