detuxsandbox / detux

The Multiplatform Linux Sandbox
MIT License
260 stars 58 forks source link

Additional DNS RR types parsing #10

Closed ilyaglow closed 1 year ago

ilyaglow commented 6 years ago

This PR refactors DNS packet parsing a little and adds support for TXT and AAAA resource record types.

Response for the TXT-record request may have multiple entries, so there are two ways to handle it:

The latter allows to keep result's value type consistency, so I sticked with it.