Closed zizzdog closed 3 weeks ago
我在Linux虚拟机内使用同样的配置文件,是能够正常返回结果的,但是Openwrt上的就不行。 这是默认配置仅启用阿里云quic服务器后,请求百度的debug日志:
2024-02-01 03:21:52 DEBUG forward_local bootstrap addr updated {"fqdn": "dns.alidns.com.", "addr": "223.5.5.5", "ttl": "20m31s", "elapse": "27.162807ms"} 2024-02-01 03:21:52 WARN forward_local failed to dial dns conn {"error": "INTERNAL_ERROR (local): write udp [::]:50716->223.5.5.5:853: sendmsg: invalid argument"} 2024-02-01 03:21:52 WARN forward_local upstream error {"uqid": 1, "qname": "baidu.com.", "qclass": 1, "qtype": 1, "upstream": "quic://dns.alidns.com", "error": "INTERNAL_ERROR (local): write udp [::]:50716->223.5.5.5:853: sendmsg: invalid argument"} 2024-02-01 03:21:52 WARN forward_local failed to dial dns conn {"error": "INTERNAL_ERROR (local): write udp [::]:50716->223.5.5.5:853: sendmsg: invalid argument"} 2024-02-01 03:21:52 WARN forward_local upstream error {"uqid": 1, "qname": "baidu.com.", "qclass": 1, "qtype": 1, "upstream": "quic://dns.alidns.com", "error": "INTERNAL_ERROR (local): write udp [::]:50716->223.5.5.5:853: sendmsg: invalid argument"} 2024-02-01 03:21:52 WARN udp_server entry err {"query": {"uqid": 1, "client": "::ffff:127.0.0.1", "qname": "baidu.com.", "qtype": 1, "qclass": 1, "elapsed": "33.972883ms"}, "error": "all upstream servers failed"}
使用http/3也是同样报错
linux 内核 & cpu 架构不常见,quic 易出 bug。毕竟现在 linux udp 发包的方案都是一团乱麻。
不要相信 quic 有多快。正常使用场景 (没用上千qps)正常延时(不是卫星通信)正常丢包率(不是拨号上网),和 doh2 没任何区别。除了 quic 更可能遇到兼容性问题。
不是备案麻烦 谁喜欢用quic
我在Linux虚拟机内使用同样的配置文件,是能够正常返回结果的,但是Openwrt上的就不行。 这是默认配置仅启用阿里云quic服务器后,请求百度的debug日志:
2024-02-01 03:21:52 DEBUG forward_local bootstrap addr updated {"fqdn": "dns.alidns.com.", "addr": "223.5.5.5", "ttl": "20m31s", "elapse": "27.162807ms"} 2024-02-01 03:21:52 WARN forward_local failed to dial dns conn {"error": "INTERNAL_ERROR (local): write udp [::]:50716->223.5.5.5:853: sendmsg: invalid argument"} 2024-02-01 03:21:52 WARN forward_local upstream error {"uqid": 1, "qname": "baidu.com.", "qclass": 1, "qtype": 1, "upstream": "quic://dns.alidns.com", "error": "INTERNAL_ERROR (local): write udp [::]:50716->223.5.5.5:853: sendmsg: invalid argument"} 2024-02-01 03:21:52 WARN forward_local failed to dial dns conn {"error": "INTERNAL_ERROR (local): write udp [::]:50716->223.5.5.5:853: sendmsg: invalid argument"} 2024-02-01 03:21:52 WARN forward_local upstream error {"uqid": 1, "qname": "baidu.com.", "qclass": 1, "qtype": 1, "upstream": "quic://dns.alidns.com", "error": "INTERNAL_ERROR (local): write udp [::]:50716->223.5.5.5:853: sendmsg: invalid argument"} 2024-02-01 03:21:52 WARN udp_server entry err {"query": {"uqid": 1, "client": "::ffff:127.0.0.1", "qname": "baidu.com.", "qtype": 1, "qclass": 1, "elapsed": "33.972883ms"}, "error": "all upstream servers failed"}
使用http/3也是同样报错