Open dekkers opened 6 months ago
Discussion conclusion: Try out if to_wire
and from_wire
doesn't result in any new problems.
I agree, we should just move to the Wire protocol for this. it's better fitting to the OpenKAT philosophy and might fix these issues, as dnspython clearly Can parse these records from the underlying wire data directly.
The DNS normalizer fails when an option is present. For example the following DNS data:
The problem seems to be that dnspython
to_text
generates theoption Generic 15
, but thefrom_text
method isn't able to parseoption
.As far as I can see there are two ways to solve this:
option
to dnspythonfrom_text
to_wire
andfrom_wire
. This saves the queries in the binary DNS protocol wire format. We can useprepend_length
to save multiple queries/answers to a single file. If we change to the new format, we should probably create a new raw file type and keep the old normalizer so we can still parse old raw files.