- Dec 07, 2021
-
-
-
Daniel Salzman authored
-
Previously, after "mod-dnstap: Restore the original query QNAME case", the dnstap module would copy the original QNAME into the query packet buffer passed to the dnstap module, so that the originally cased query message would be written out to the dnstap logging stream. However, there are error conditions that can result in the query packet's 'qname_size' field being updated to a non-zero value (the question section was successfully parsed), but the packet was ultimately rejected. In the prepare_answer() function in src/knot/nameserver/process_query.c, there are several error return paths that prevent the 'orig_qname' field from being written by the call to memcpy(). In this case, the 'orig_qname' field in the corresponding knotd_qdata_extra_t object will remain at an initialized (zeroed out) value. Before this patch, in some cases (e.g. in responses to some queries that return FORMERR), mod-dnstap would overwrite the QNAME in the query packet buffer with 'qname_size' bytes from the 'orig_qname' field. With 'qname_size' set to a non-zero value (due to successful parsing of the QNAME) but with 'orig_qname' set to its original initialized (zeroed out) value, this would result in zeroing out the QNAME in the query packet buffer. This would then result in writing a corrupted query message into the dnstap logging stream. Since mod-dnstap writes directly to the query packet buffer rather than making a copy, this corruption would also be visible to modules executing after mod-dnstap as well as the rest of knotd. This patch updates mod-dnstap's msg_query_qname_restore() so that it avoids copying the original QNAME into the query packet buffer if the 'orig_qname' field has been left in its initialized (zeroed out) value. fixes #777
-
- Dec 06, 2021
-
-
Daniel Salzman authored
Log the control command for all zones specified (not just the first one) Closes #776 See merge request !1397
-
Daniel Salzman authored
-
- Dec 04, 2021
-
-
Option --brief is now deprecated.
-
Daniel Salzman authored
-
- Dec 02, 2021
-
-
Daniel Salzman authored
Sign pipeline refactor See merge request !1396
-
-
-
-
-
- Nov 29, 2021
-
-
Daniel Salzman authored
tests: compatibility with new Bind See merge request !1393
-
Daniel Salzman authored
-
- Nov 26, 2021
-
-
Libor Peltan authored
-
Daniel Salzman authored
-
Daniel Salzman authored
Outgoing connection pool See merge request !1382
-
Daniel Salzman authored
-
Daniel Salzman authored
-
Daniel Salzman authored
-
-
-
-
- Nov 24, 2021
-
-
Signed-off-by:
Josh Soref <jsoref@users.noreply.github.com>
-
- Nov 23, 2021
-
-
Daniel Salzman authored
-
Daniel Salzman authored
-
- Nov 22, 2021
-
-
Daniel Salzman authored
- Enabled fastparser - Temporarily disabled unittests (dthreads test fails on armhf) - Added release tag
-
Daniel Salzman authored
- New option FASTPARSER=disable|enable - New option CHECK=disable|enable for unittests execution - Explicit CFLAGS="-g -O2 -DNDEBUG -D_FORTIFY_SOURCE=2 -fstack-protector-strong" - Added --enable-dnstap
-
- Nov 18, 2021
-
-
Daniel Salzman authored
-
Daniel Salzman authored
-
Daniel Salzman authored
-
- Nov 15, 2021
-
-
Daniel Salzman authored
-
Daniel Salzman authored
-
Daniel Salzman authored
-
- Nov 12, 2021
-
-
Daniel Salzman authored
Xfr failovers See merge request !1385
-
Daniel Salzman authored
-
-
-
-
Libor Peltan authored
dynarray: remove even duplicate items See merge request !1392
-