Skip to content
Snippets Groups Projects
  1. Nov 24, 2021
  2. Nov 23, 2021
  3. Nov 22, 2021
  4. Nov 18, 2021
  5. Nov 15, 2021
  6. Nov 12, 2021
  7. Nov 10, 2021
  8. Nov 09, 2021
  9. Nov 08, 2021
  10. Nov 04, 2021
  11. Nov 03, 2021
  12. 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
  13. Nov 01, 2021