Truncated data option
Add an option --truncated-data
to send a query with mangled data. The DNS query is created and then truncated in half. Only the first half is sent.
This option can be used as a standalone test.
The --check
option runs this test by default.
This PR fixes also some small error when sending truncated data with DoT and DoH.