dnstap: QNAME case preserved in responses but not queries
Hi,
It looks like the dnstap module preserves the original case of the QNAME in the question section when logging response messages, but not when logging query messages. This isn't great, because dnstap is supposed to record the original verbatim DNS wire message that the nameserver received from the network stack.
I wrote a quick and dirty patch which restores the original QNAME when logging query messages (attached) and then re-downcases it afterwards, which is not great because it makes mod-dnstap write to the packet buffer that belongs to knotd. A better solution might be to somehow hook into the query processing plan before the original query packet is modified, or maybe even make it so that the downcased version of the query QNAME isn't written to the buffer for the wire message.
Thanks!