Skip to content
Snippets Groups Projects
  1. Nov 03, 2021
  2. Nov 02, 2021
    • Daniel Salzman's avatar
      dnstap: add missing include · 01aa3ba5
      Daniel Salzman authored
      01aa3ba5
    • Robert Edmonds's avatar
      mod-dnstap: Restore the original query QNAME case · 4a3eb76b
      Robert Edmonds authored and Daniel Salzman's avatar Daniel Salzman committed
      Previously, mod-dnstap would log query messages with downcased QNAMEs,
      because knotd had already downcased the QNAME in the query packet buffer
      passed to the dnstap module. This is not necessarily the same as the
      original DNS wire query message if any uppercase letters were used in
      the QNAME.
      
      The knotd_qdata_t object already stores the original QNAME before
      downcasing in the 'extra' field, which is inaccessible to query modules.
      This commit introduces a new 'knotd_qdata_orig_qname()' function that
      query modules can call to access the original QNAME.
      
      This commit updates the mod-dnstap message logging code to patch the
      buffer used for the wire message behind the 'query_message' field in the
      dnstap protobuf message by copying the original QNAME back into the
      query packet buffer, and then re-downcasing the QNAME in the query
      packet buffer after the dnstap protobuf message has been serialized.
      (This avoids the overhead of allocating space for a copy of the query
      packet, making a copy of the packet, and performing the QNAME
      restoration on the copy.)
      
      fixes #773
      4a3eb76b
  3. Nov 01, 2021
  4. Oct 30, 2021
  5. Oct 29, 2021
  6. Oct 26, 2021
  7. Oct 22, 2021
  8. Oct 21, 2021
  9. Oct 17, 2021
  10. Oct 15, 2021
  11. Oct 14, 2021
  12. Oct 13, 2021