-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[BUG]作为DOH服务端的时候请求报错400 #162
Comments
0.0.0.0地址请求400, https模式
|
貌似加上dns-message参数就200了,但是实际使用doggo查询依旧400
|
#160 可能相关。 有的 curl http 头不对。
|
但是貌似根据doggo的源码看,好像是有添加http头的 |
目前在quantumult x中测试正常,但是感觉还是有点别扭,使用doggo之类的工具没办法测试是否有效,希望作者能够帮忙适配一下,另外作者有doq的计划嘛? |
doggo 居然用的 POST 而不是 GET.....比较罕见。检查发现 mosdns 处理 POST 请求有 bug。是mosdns 的问题。 内置 doq 服务端暂时没想法。因为标准还没定。先套娃吧.... |
另外当使用ecs的时候,谷歌dns作为上游不会返回数据 |
谷歌的 EDNS 好像禁止了 /32 这个精度的值,只允许 /24 。
服务器会返回这个信息:
换成 /24 没问题:
|
ecs那个插件那里写了,默认mask就是/24呀 |
不仅仅是这些问题,chrome的doh和edge的doh都无法使用,包括安卓自带的dot,也无法使用
|
日志中又出现几种报错,加上chrome自带的doh和edge的doh无法使用,还有安卓自带的dot无法使用,tls握手问题
|
出现了什么问题
使用HTTP或者DOH服务时,使用DOH均报错400,且debug模式下日志中未检测到有dns请求,使用udp,dot,tcp均正常,使用caddy反向代理http同样报错400,但是使用http模式本地curl正常返回200,doh没试,但是应该是一样正常的,唯独远程请求时报错400
如何重现
描述一下如何重现该问题。请尽可能的包含:
mosdns 的版本号(
mosdns -v
):1.8.6使用的启动参数或启动方式:systemctl启动
操作系统和平台:debian 10 x64
使用的配置文件:
The text was updated successfully, but these errors were encountered: