]>
git.ipfire.org Git - thirdparty/knot-dns.git/log
Daniel Salzman [Mon, 13 Jun 2022 10:16:20 +0000 (12:16 +0200)]
distro/deb: update libknot12.symbols
Daniel Salzman [Fri, 10 Jun 2022 17:12:51 +0000 (19:12 +0200)]
Merge branch 'keymgr-list-json2'
closes #793
Daniel Salzman [Thu, 9 Jun 2022 14:02:00 +0000 (16:02 +0200)]
keymgr: add documentation for the JSON mode
JP Mens [Fri, 3 Jun 2022 08:46:47 +0000 (10:46 +0200)]
keymgr: print info in JSON format
Slightly modified by Daniel Salzman <daniel.salzman@nic.cz>
Daniel Salzman [Fri, 10 Jun 2022 11:51:10 +0000 (13:51 +0200)]
json: remove leading and add trailing newline in the output
Jan Vcelak [Sun, 6 May 2018 18:05:39 +0000 (20:05 +0200)]
common: implement simple JSON writer
Slightly modified by Jan Hák <jan.hak@nic.cz>
David Vašek [Wed, 1 Jun 2022 11:43:09 +0000 (13:43 +0200)]
doc/knotc: improve the description of the "zone-purge +orphan" command
Libor Peltan [Fri, 10 Jun 2022 10:11:08 +0000 (12:11 +0200)]
Merge branch 'doc_acl' into 'master'
Extended documentation of ACL for DDNS
See merge request knot/knot-dns!1462
Daniel Salzman [Wed, 8 Jun 2022 19:35:43 +0000 (21:35 +0200)]
doc: rework the description of extended ACL configuration for DDNS
Daniel Gröber [Mon, 6 Jun 2022 17:58:24 +0000 (19:58 +0200)]
doc: Expand dynamic update ACL section with examples
Daniel Salzman [Fri, 10 Jun 2022 07:13:30 +0000 (09:13 +0200)]
Merge branch 'smartos-build' into 'master'
qp-trie: replace index_t with trie_index_t
See merge request knot/knot-dns!1464
Libor Peltan [Fri, 10 Jun 2022 06:09:38 +0000 (08:09 +0200)]
Merge branch 'user_flush' into 'master'
Don't ignore manually triggered zone flush
Closes #792
See merge request knot/knot-dns!1463
Daniel Salzman [Thu, 9 Jun 2022 17:17:18 +0000 (17:17 +0000)]
tests-extra: fix time synchronization in modules/stats
Daniel Salzman [Thu, 9 Jun 2022 12:59:45 +0000 (14:59 +0200)]
zone: don't ignore manually triggered zone flush
Daniel Salzman [Wed, 8 Jun 2022 18:10:37 +0000 (20:10 +0200)]
Merge branch 'test_sem_check_valgrind' into 'master'
tests: fix fail with slow semcheck of DNSSEC with valgrind
See merge request knot/knot-dns!1461
Libor Peltan [Wed, 8 Jun 2022 17:55:23 +0000 (19:55 +0200)]
tests: fix fail with slow semcheck of DNSSEC with valgrind
Libor Peltan [Tue, 7 Jun 2022 13:33:20 +0000 (15:33 +0200)]
Merge branch 'acl_query' into 'master'
Add 'query' ACL action for allowing DNS queries with a TSIG
Closes #803
See merge request knot/knot-dns!1456
Daniel Salzman [Tue, 7 Jun 2022 11:31:31 +0000 (13:31 +0200)]
libknot: move EDE codes/names to consts/codes, add new codes
Libor Peltan [Tue, 7 Jun 2022 10:40:35 +0000 (12:40 +0200)]
Merge branch 'knsupdate_improvements' into 'master'
Tiny knsupdate and ctl improvements
See merge request knot/knot-dns!1459
Daniel Salzman [Tue, 7 Jun 2022 09:24:06 +0000 (11:24 +0200)]
knsupdate: don't pre-set the zone to root
Daniel Salzman [Tue, 7 Jun 2022 08:48:08 +0000 (10:48 +0200)]
knsupdate: fix question rrtype, which must be SOA
Daniel Salzman [Tue, 7 Jun 2022 07:46:28 +0000 (09:46 +0200)]
knsupdate: set default TTL to 3600 instead of inappropriate 0
Daniel Salzman [Tue, 7 Jun 2022 07:28:22 +0000 (09:28 +0200)]
ctl: fix getting rrset TTL if empty, improve error message
Daniel Salzman [Thu, 2 Jun 2022 08:33:42 +0000 (10:33 +0200)]
conf: add 'query' ACL action for allowing only DNS queries with a TSIG
Daniel Salzman [Mon, 6 Jun 2022 07:38:26 +0000 (09:38 +0200)]
distro/deb: simplify and synchronize with downstream XDP workarounds in rules
Daniel Salzman [Fri, 3 Jun 2022 13:00:08 +0000 (15:00 +0200)]
Merge branch 'tests_ede' into 'master'
tests: dnspython now supports EDE
See merge request knot/knot-dns!1458
Libor Peltan [Fri, 3 Jun 2022 12:21:34 +0000 (14:21 +0200)]
tests: dnspython now supports EDE
Daniel Salzman [Fri, 3 Jun 2022 12:42:21 +0000 (14:42 +0200)]
Merge branch 'ixfr_history_check' into 'master'
Add check on the last journal SOA serial and current zone SOA serial equality
See merge request knot/knot-dns!1457
Libor Peltan [Fri, 3 Jun 2022 10:30:17 +0000 (12:30 +0200)]
ixfr: better handling of in_remove_section
Daniel Salzman [Tue, 31 May 2022 17:45:54 +0000 (19:45 +0200)]
ixfr: add check on the last journal SOA serial and current zone SOA serial equality
Libor Peltan [Fri, 3 Jun 2022 06:10:06 +0000 (08:10 +0200)]
Merge branch 'semchecks_fix' into 'master'
Semchecks fixes and improvements
See merge request knot/knot-dns!1455
Nick Ewins [Thu, 2 Jun 2022 22:16:04 +0000 (22:16 +0000)]
qp-trie: replace index_t with trie_index_t
Resolves index_t typdef that conflicts with illumos derivatives.
Daniel Salzman [Thu, 2 Jun 2022 05:57:01 +0000 (07:57 +0200)]
doc: simplify secondary mode description
Daniel Salzman [Wed, 1 Jun 2022 13:29:58 +0000 (15:29 +0200)]
dnssec: split KNOT_DNSSEC_ENSEC_BITMAP in two different errors
Daniel Salzman [Wed, 1 Jun 2022 12:52:08 +0000 (14:52 +0200)]
semchecks: fix for disabled duplicate DNSSEC checks if DNSSEC validation enabled
The previous change disabled DNSSEC checks for `knotc zone-check` command,
which never executes DNSSEC validation. Also `kzonesign` should even load an invalid zone.
Libor Peltan [Mon, 30 May 2022 09:04:57 +0000 (11:04 +0200)]
Merge branch 'sem_checks_dnssec' into 'master'
Semantic checks using dnssec validation
Closes #779
See merge request knot/knot-dns!1417
Daniel Salzman [Mon, 30 May 2022 08:35:50 +0000 (10:35 +0200)]
conf: mute compilation warning
Daniel Salzman [Sat, 28 May 2022 17:46:25 +0000 (19:46 +0200)]
Merge branch 'conf_checks'
Jan Hák [Thu, 26 May 2022 13:27:56 +0000 (15:27 +0200)]
config: add a min-max comparator to ensure that the interval is well defined
Daniel Salzman [Sat, 28 May 2022 17:12:51 +0000 (19:12 +0200)]
conf: simplify zone checks
Daniel Salzman [Sat, 28 May 2022 16:39:08 +0000 (18:39 +0200)]
conf: remove server, template, and zone obsolete checks
Daniel Salzman [Sat, 28 May 2022 16:24:18 +0000 (18:24 +0200)]
conf: add legacy item logging callback, remove 'server.listen-xdp' compatibility
Daniel Salzman [Fri, 27 May 2022 12:10:25 +0000 (14:10 +0200)]
doc: update zone semantic checks
Daniel Salzman [Fri, 27 May 2022 12:02:00 +0000 (14:02 +0200)]
semchecks: improve some error messages
Daniel Salzman [Fri, 27 May 2022 07:59:15 +0000 (09:59 +0200)]
semchecks: improve DNSSEC validation error messages
Daniel Salzman [Fri, 27 May 2022 06:53:37 +0000 (08:53 +0200)]
semchecks: remove unused errors
Daniel Salzman [Thu, 26 May 2022 15:33:12 +0000 (17:33 +0200)]
semchecks: remove useless comments
Daniel Salzman [Thu, 26 May 2022 12:56:59 +0000 (14:56 +0200)]
semchecks: unify DNSSEC callbacks
Daniel Salzman [Thu, 26 May 2022 11:45:50 +0000 (13:45 +0200)]
kzonecheck: use all CPU threads for DNSSEC validation
closes #779
Daniel Salzman [Thu, 26 May 2022 11:42:58 +0000 (13:42 +0200)]
semchecks: disable duplicate DNSSEC checks if DNSSEC validation enabled
Libor Peltan [Fri, 7 Jan 2022 18:06:58 +0000 (19:06 +0100)]
libdnssec: verify correct DNSKEY flags and proto
Libor Peltan [Fri, 7 Jan 2022 16:31:03 +0000 (17:31 +0100)]
dnssec: better error reporting from libdnssec
Libor Peltan [Fri, 7 Jan 2022 16:06:45 +0000 (17:06 +0100)]
sematic-checks: use verification routines from dnssec-verify
Libor Peltan [Fri, 7 Jan 2022 15:43:44 +0000 (16:43 +0100)]
dnssec-validate: verify that invalid RRSIGs are NOT present
Libor Peltan [Fri, 7 Jan 2022 15:40:51 +0000 (16:40 +0100)]
dnssec-validate: report missing NSEC3 in case whole NSEC3 chain is wrong
Libor Peltan [Fri, 7 Jan 2022 06:55:41 +0000 (07:55 +0100)]
semantic-checks: tiny refactoring
Daniel Salzman [Wed, 25 May 2022 17:21:16 +0000 (19:21 +0200)]
Merge branch 'notify_retry' into 'master'
notify/retry
See merge request knot/knot-dns!1443
Libor Peltan [Thu, 17 Mar 2022 17:36:08 +0000 (18:36 +0100)]
notify/retry: protect notifailed structure with a mutex
Libor Peltan [Thu, 17 Mar 2022 17:06:54 +0000 (18:06 +0100)]
notify/retry: use SOA retry for NOTIFY retry interval
Libor Peltan [Tue, 15 Mar 2022 18:14:36 +0000 (19:14 +0100)]
notify: implemented slave-selective retry
Libor Peltan [Tue, 15 Mar 2022 15:25:49 +0000 (16:25 +0100)]
tests: move dynarray test to libknot...
...as dynarray itself had been moved from contrib
Libor Peltan [Tue, 15 Mar 2022 15:14:54 +0000 (16:14 +0100)]
dynarray: implemented binary search in sorted dynarray
Jan-Piet Mens [Fri, 20 May 2022 09:12:01 +0000 (11:12 +0200)]
doc: slight rephrasing catz section
closes #801
Daniel Salzman [Wed, 18 May 2022 18:11:47 +0000 (20:11 +0200)]
xdp: refactor RING configurations
The number of UMEM frames have been decreased as it doesn't seem it helped the performance.
As a consequence the overall memory consumption decreases.
Also a hint on the fill ring size from the xdpsock_user.c sample has been considered.
Daniel Salzman [Wed, 18 May 2022 15:51:10 +0000 (17:51 +0200)]
Revert "xdp: remove the double UMEM ring sizes, which aren't needed"
After the change the following assert sometimes occured when running
kxdpgun in the emulated XDP mode.
knot_xdp_recv_finish():
const uint32_t reserved = xsk_ring_prod__reserve(fq, count, &idx);
assert(reserved == count);
This reverts commit
f5f4ee9f103dfe7c50b764e0e970858b7add0cb3 .
Daniel Salzman [Wed, 18 May 2022 11:04:12 +0000 (13:04 +0200)]
kxdpgun: sanitize 'global_payload' upon cleanup to avoid memory use after free on errors
Jan-Piet Mens [Tue, 17 May 2022 15:24:44 +0000 (17:24 +0200)]
[PATCH] small rephrasing in reference for unixtime/dateserial
closes #798
Daniel Salzman [Tue, 17 May 2022 09:09:37 +0000 (11:09 +0200)]
doc/synthrecord: remove outdated section with limitations
Daniel Salzman [Tue, 17 May 2022 07:40:38 +0000 (09:40 +0200)]
python/libknot: remove some compatibility for Python2, improve function output
Daniel Salzman [Fri, 13 May 2022 13:51:01 +0000 (15:51 +0200)]
python/libknot: raise various control exceptions to better distinguish the exception source
Daniel Salzman [Mon, 16 May 2022 06:36:10 +0000 (08:36 +0200)]
Merge branch 'bpf-quic'
Daniel Salzman [Wed, 11 May 2022 12:30:40 +0000 (14:30 +0200)]
xdp: remove the double UMEM ring sizes, which aren't needed
If a packet was successfully alloced by knot_xdp_send_alloc(),
there must be a room in the TX ring for it.
Daniel Salzman [Mon, 9 May 2022 14:05:08 +0000 (16:05 +0200)]
knotd,kxdpgun: adapt to new XDP initialization
Daniel Salzman [Fri, 6 May 2022 14:27:21 +0000 (16:27 +0200)]
xdp: add QUIC port configuration
Daniel Salzman [Fri, 6 May 2022 11:55:17 +0000 (13:55 +0200)]
xdp: increase and fix the maximum number of NIC queues to 256
Daniel Salzman [Fri, 6 May 2022 10:36:52 +0000 (12:36 +0200)]
xdp: fix compilation using llc 12.0.0 - replace more arguments with one structure
Daniel Salzman [Fri, 13 May 2022 15:44:04 +0000 (17:44 +0200)]
doc: fix typo and extend semchecks usage
Daniel Salzman [Fri, 13 May 2022 11:42:39 +0000 (13:42 +0200)]
Merge branch 'events_mutex_impr' into 'master'
events: improve mutexing
See merge request knot/knot-dns!1454
Daniel Salzman [Fri, 13 May 2022 11:22:05 +0000 (13:22 +0200)]
events: unify code across public functions
Libor Peltan [Thu, 12 May 2022 14:16:00 +0000 (16:16 +0200)]
events: improve mutexing
This fixes a bug when zone_reload_modules only waits for
an event to be finished, but following reschedule is not
synchronized and might access memory freed by zone_free.
Daniel Salzman [Thu, 12 May 2022 10:47:20 +0000 (12:47 +0200)]
python: tiny control example extension
Libor Peltan [Thu, 12 May 2022 09:25:39 +0000 (11:25 +0200)]
Merge branch 'tests-refactor' into 'master'
tests-extra XFR refactoring
See merge request knot/knot-dns!1453
Daniel Salzman [Thu, 12 May 2022 07:44:42 +0000 (09:44 +0200)]
tests-extra: update valgrind suppressions for Ubuntu 22.04
Daniel Salzman [Tue, 10 May 2022 15:49:49 +0000 (17:49 +0200)]
CI: add missing tags to docker image jobs
Daniel Salzman [Wed, 4 May 2022 15:17:03 +0000 (17:17 +0200)]
tests-extra: refactor catalog configuration
Daniel Salzman [Tue, 3 May 2022 17:34:03 +0000 (19:34 +0200)]
tests-extra/dnsproxy: adapt to new configuration - use one common TSIG key instead of two ones
This is a slight simplification of the test.
Daniel Salzman [Tue, 3 May 2022 14:34:25 +0000 (16:34 +0200)]
tests-extra/ixfr: increase TCP timeouts in some IXFR tests
This is needed even without Valgrind when running massively in parallel
Daniel Salzman [Tue, 3 May 2022 11:04:36 +0000 (13:04 +0200)]
tests-extra: rework and simplify generation of XFR configurations
On slaves one common ACL for all actions has been replaced with a sequence
of ACLs for notify, one rule for one master.
Libor Peltan [Mon, 2 May 2022 15:28:06 +0000 (17:28 +0200)]
Merge branch 'fix_test_cat_generate' into 'master'
the heap-element-replace bug fix
See merge request knot/knot-dns!1452
David Vašek [Sun, 1 May 2022 21:24:09 +0000 (23:24 +0200)]
tests-extra: zone/backup_lock -- provide always enough time for restore under Valgrind
David Vašek [Fri, 29 Apr 2022 13:26:14 +0000 (15:26 +0200)]
tests-extra: catalog/many_zones -- stabilize the test under Valgrind
This avoids the timeouts in master and as a result the "TCP, terminated inactive client"
messages in the master's log are eliminated. Slave seems to be busy for too long when signing
the zones under Valgrind.
David Vašek [Wed, 27 Apr 2022 20:36:40 +0000 (22:36 +0200)]
ucw/heap: adjust coding style
In contrast with Knot coding style, most single line "if" constructions retained.
David Vašek [Thu, 28 Apr 2022 09:54:23 +0000 (11:54 +0200)]
heap: code simplification
Possible as a result of modified heap_replace().
David Vašek [Wed, 27 Apr 2022 20:15:03 +0000 (22:15 +0200)]
heap: in heap_replace(), replace properly even an identical element
Current code as used by evsched_schedule() has led to a corrupted heap
(with its elements out of order), resulting in unpredictable event scheduling
behaviour, including events being processed out of order or already scheduled
events being postponed, sometimes for several days, weeks, or maybe longer.
Solving it by modifying the heap.c library a little -- the new code properly
handles a situation when the original element and the element it's being replaced by
are identical (that is, the same memory object), but already containing a modified
value than what originally was in the heap. Instead of comparing the new element
with the one it replaces, we now start comparing it with its parent.
This commit fixes an old bug introduced in:
https://gitlab.nic.cz/knot/knot-dns/-/commit/
925ad42d43365081ad6add1708f5de46a22c3900
David Vašek [Tue, 26 Apr 2022 14:31:19 +0000 (16:31 +0200)]
zone: remove a useless remainder of code
David Vašek [Mon, 25 Apr 2022 14:34:47 +0000 (16:34 +0200)]
evsched: dont't wake up the scheduler loop when it isn't necessary
David Vašek [Sat, 16 Apr 2022 17:05:35 +0000 (19:05 +0200)]
evsched: fix the broken timercmp() workaround
It's said timercmp() == is broken in the same broken implementations too.
Furthemore, this expression is simpler and faster.
While there, fix some coding style.
Daniel Salzman [Sat, 30 Apr 2022 12:26:27 +0000 (14:26 +0200)]
contrib: use bzero() instead of explicit_bzero() inside memzero() if MSAN detected
MSAN is unable to correctly evaluate explicit_bzero() for memory zeroing in
wire_ctx operations. Then OSS-Fuzz creates false-positive issues. Using bzero()
seems to be a reasonable workaround.
Daniel Salzman [Thu, 28 Apr 2022 09:24:35 +0000 (11:24 +0200)]
doc: fix typo
Daniel Salzman [Thu, 28 Apr 2022 08:12:39 +0000 (10:12 +0200)]
Merge branch 'zonedb_delay_replan' into 'master'
zonedb: replan events for new zone_t instance no sooner...
See merge request knot/knot-dns!1451