I would like to examine the response just before it's dispatched to the client. Primarily, I'm interested in the ;; ANSWER SECTION:
.
What had looked like a trivial modification of logDnsMsg function turned out to be a dounting task of browsing reply_info
, rrset_ref
and ub_packed_rrset_key
structures in pursuit of the desired ;; ANSWER SECTION:
bytes.
The reason is the logDnsMsg function does not work as expected for A
queries ;; ANSWER SECTION:
, while it suprisingly operates as expected for ;; AUTHORITY SECTION:
on AAAA
queries.