DNS over HTTP/3
Author: qianbinbinCreated Aug 28, 2025Updated Sep 23, 2026
LabelsenhancementStale
最近我发现 https://cloudflare-dns.com/dns-query 支持 HTTP/3,而且境内可以直连:
$ curl -4 --http2 \
'https://cloudflare-dns.com/dns-query?name=google.com&type=A' \
-H 'accept: application/dns-json'
curl: (35) Recv failure: Connection reset by peer
$ curl -4 --http3 \
'https://cloudflare-dns.com/dns-query?name=google.com&type=A' \
-H 'accept: application/dns-json'
{"Status":0,"TC":false,"RD":true,"RA":true,"AD":false,"CD":false,"Question":[{"name":"google.com","type":1}],"Answer":[{"name":"google.com","type":1,"TTL":192,"data":"142.251.46.238"}]}但 v2ray 似乎默认不会采用 HTTP/3。这个对 VPS 延迟高的用户来说很有用,不过用的人多了估计也就不行了。
找到一个类似的问题 #3056 但是没有回复。
Source: v2fly/v2ray-core