Closed liang-hiwin closed 2 years ago
Release v1.5.1 test
PS C:\WINDOWS\system32> dnslookup www.ksksy.com quic://domain.com:8053
dnslookup v. v1.5.1
dnslookup result:
;; opcode: QUERY, status: NOERROR, id: 39672
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; QUESTION SECTION:
;www.ksksy.com. IN A
;; ANSWER SECTION:
www.ksksy.com. 6 IN A 103.110.61.36
;; ADDITIONAL SECTION:
;; OPT PSEUDOSECTION:
; EDNS: version 0; flags: ; udp: 4096
; SUBNET: xxx.yyy.zzz.0/24/0
Release v1.7.1 test
PS C:\WINDOWS\system32> dnslookup www.ksksy.com quic://domain.com:8053
dnslookup v. v1.7.1
2022/08/15 23:20:27 Cannot make the DNS request: reading response from quic://domain.com:8053: EOF
linux debian 10 x64 test
root@dns2:~# dnslookup www.ksksy.com quic://domain.com:8053
dnslookup v. v1.7.1
2022/08/15 23:30:34 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.
2022/08/15 23:30:34 Cannot make the DNS request: reading response from quic://domain.com:8053: EOF
Increase sysctl -w net.core.rmem_max=2500000 in this way, the test is invalid
@thb007 note that DoQ standard has changed in between, probably your server uses an old draft.
With DoQ v1.0 DNS messages are encoded with a 2-octet prefix which was not needed in the first drafts.
Windows 10 x64 system, dns-over-quic uses Release v1.5.1 to test normal parsing. Switching to Release v1.7.1 to test parsing fails, prompting Cannot make the DNS request: reading response from quic://domain.com:8053: EOF