paulc / dnslib

A Python library to encode/decode DNS wire-format packets
https://github.com/paulc/dnslib
BSD 2-Clause "Simplified" License
295 stars 84 forks source link

DNSRecord parse failing, when DNS over TCP is used. #53

Closed mai1x9 closed 6 months ago

mai1x9 commented 1 year ago

When dns payload is sent over TCP (possibly DNS over HTTPS or it could be DNS over TCP when response is large), the data payload extracted from TCP protocol and passed to DNSRecord.parse() throws error related to parsing of data where data is not available when offset is set.

paulc commented 6 months ago

I'm going to close this as there is no way to reproduce - if you can provide a test case happy to have a look.