]> git.ipfire.org Git - thirdparty/knot-dns.git/log
thirdparty/knot-dns.git
12 months agolibngtcp2: update embedded library to v1.14.0
Jan Doskočil [Fri, 25 Jul 2025 15:31:21 +0000 (17:31 +0200)] 
libngtcp2: update embedded library to v1.14.0

12 months agoctl: allow zone-reload on expired zone
Daniel Salzman [Fri, 25 Jul 2025 11:34:24 +0000 (13:34 +0200)] 
ctl: allow zone-reload on expired zone

This operation is useful for resolving issues such as journal inconsistencies.

12 months agodoc: improve description of reverse-generate
Daniel Salzman [Fri, 25 Jul 2025 11:32:20 +0000 (13:32 +0200)] 
doc: improve description of reverse-generate

12 months agoserver: fix possible use after free if member zone is reused when full reload
Daniel Salzman [Fri, 25 Jul 2025 06:19:50 +0000 (08:19 +0200)] 
server: fix possible use after free if member zone is reused when full reload

12 months agoMerge branch 'key_for_auto_use' into 'master'
Daniel Salzman [Mon, 21 Jul 2025 12:33:57 +0000 (14:33 +0200)] 
Merge branch 'key_for_auto_use' into 'master'

keymgr: implement key for-auto pregeneration

See merge request knot/knot-dns!1788

12 months agokeymgr: make log message more general
Daniel Salzman [Mon, 21 Jul 2025 07:03:18 +0000 (09:03 +0200)] 
keymgr: make log message more general

12 months agokeymgr: support colon separators in keyid
Daniel Salzman [Mon, 21 Jul 2025 06:43:36 +0000 (08:43 +0200)] 
keymgr: support colon separators in keyid

12 months agokeymgr: refactoring
Daniel Salzman [Sat, 19 Jul 2025 17:48:04 +0000 (19:48 +0200)] 
keymgr: refactoring

12 months agokeymgr: update help and documentation
Daniel Salzman [Sat, 19 Jul 2025 18:43:47 +0000 (20:43 +0200)] 
keymgr: update help and documentation

12 months agokeymgr: interpret omitted bool argument as true
Daniel Salzman [Sat, 19 Jul 2025 18:17:42 +0000 (20:17 +0200)] 
keymgr: interpret omitted bool argument as true

12 months agokeymgr: implement key for-auto key pregeneration
Libor Peltan [Tue, 8 Jul 2025 09:30:17 +0000 (11:30 +0200)] 
keymgr: implement key for-auto key pregeneration

12 months agoMerge branch 'pkg_keymgr'
Daniel Salzman [Sat, 19 Jul 2025 17:00:29 +0000 (19:00 +0200)] 
Merge branch 'pkg_keymgr'

12 months agodistro/deb: add explicit libdnssec9 for libknot15
Daniel Salzman [Sat, 19 Jul 2025 16:33:01 +0000 (18:33 +0200)] 
distro/deb: add explicit libdnssec9 for libknot15

12 months agodistro/rpm: split keymgr into knot-keymgr package
Jakub Ružička [Fri, 18 Jul 2025 11:48:33 +0000 (13:48 +0200)] 
distro/rpm: split keymgr into knot-keymgr package

12 months agodistro/deb: split keymgr into knot-keymgr package
Jakub Ružička [Wed, 16 Jul 2025 14:28:06 +0000 (16:28 +0200)] 
distro/deb: split keymgr into knot-keymgr package

12 months agoMerge branch 'ctl_before_udp_tcp_v3' into 'master'
Libor Peltan [Fri, 18 Jul 2025 06:28:10 +0000 (08:28 +0200)] 
Merge branch 'ctl_before_udp_tcp_v3' into 'master'

Start knotd control interface before query answering

See merge request knot/knot-dns!1792

12 months agosystemd: remove no longer needed systemd_tasks_status_notify()
Daniel Salzman [Wed, 16 Jul 2025 14:45:55 +0000 (16:45 +0200)] 
systemd: remove no longer needed systemd_tasks_status_notify()

12 months agoknotd: cycle the interrupt-processing/start-detection loop faster
David Vašek [Thu, 26 Jun 2025 19:47:23 +0000 (21:47 +0200)] 
knotd: cycle the interrupt-processing/start-detection loop faster

12 months agoknotd: update the wording of logs regarding server start
David Vašek [Wed, 25 Jun 2025 13:48:35 +0000 (15:48 +0200)] 
knotd: update the wording of logs regarding server start

12 months agoknotd: don't log "starting server" berfore the server can answer queries
David Vašek [Wed, 4 Jun 2025 15:08:46 +0000 (17:08 +0200)] 
knotd: don't log "starting server" berfore the server can answer queries

12 months agoknotd: start ctl early in server bootstrap
David Vašek [Thu, 5 Jun 2025 16:22:01 +0000 (18:22 +0200)] 
knotd: start ctl early in server bootstrap

12 months agoserver: allow separate start of answering
David Vašek [Wed, 4 Jun 2025 13:51:53 +0000 (15:51 +0200)] 
server: allow separate start of answering

12 months agoserver: discriminate between server running and answering (add the ServerAnswering...
David Vašek [Mon, 14 Jul 2025 12:49:03 +0000 (14:49 +0200)] 
server: discriminate between server running and answering (add the ServerAnswering state)

12 months agozone: optimize preferred_master allocation
David Vašek [Wed, 4 Jun 2025 11:44:36 +0000 (13:44 +0200)] 
zone: optimize preferred_master allocation

12 months agoMerge branch 'optional_timers' into 'master'
Libor Peltan [Thu, 17 Jul 2025 12:33:05 +0000 (14:33 +0200)] 
Merge branch 'optional_timers' into 'master'

Skip empty timers when storing

See merge request knot/knot-dns!1791

12 months agoknot: skip empty timers at lmdb key
Jan Hák [Thu, 17 Jul 2025 09:19:51 +0000 (11:19 +0200)] 
knot: skip empty timers at lmdb key

12 months agoMerge branch 'notify-delay-new' into 'master'
Libor Peltan [Wed, 16 Jul 2025 18:51:02 +0000 (20:51 +0200)] 
Merge branch 'notify-delay-new' into 'master'

Rework notify-delay to be more practical and consistent with Bind

See merge request knot/knot-dns!1789

12 months agotests-extra: dnssec/dnskey_sync -- avoid infinite loop
David Vašek [Mon, 14 Jul 2025 16:37:37 +0000 (18:37 +0200)] 
tests-extra: dnssec/dnskey_sync -- avoid infinite loop

12 months agoconf: rework notify-delay to be more practical and consistent with Bind
Daniel Salzman [Thu, 26 Jun 2025 16:18:37 +0000 (18:18 +0200)] 
conf: rework notify-delay to be more practical and consistent with Bind

12 months agodoc/operation: update the XDP section to TCP and QUIC protocols
David Vašek [Mon, 7 Jul 2025 09:29:26 +0000 (11:29 +0200)] 
doc/operation: update the XDP section to TCP and QUIC protocols

13 months agotests-extra: improve stability of dnssec/keystores
Daniel Salzman [Wed, 2 Jul 2025 10:06:45 +0000 (12:06 +0200)] 
tests-extra: improve stability of dnssec/keystores

13 months agoMerge branch 'keystore_multi' into 'master'
Daniel Salzman [Tue, 1 Jul 2025 08:59:43 +0000 (10:59 +0200)] 
Merge branch 'keystore_multi' into 'master'

dnssec: implemented multi-keystore option...

See merge request knot/knot-dns!1787

13 months agokeymgr: print keystore name and its type when listing keys
Daniel Salzman [Tue, 1 Jul 2025 06:10:13 +0000 (08:10 +0200)] 
keymgr: print keystore name and its type when listing keys

13 months agodnssec/multi-keystore: implemented ksk-only keystore...
Libor Peltan [Wed, 28 May 2025 12:57:19 +0000 (14:57 +0200)] 
dnssec/multi-keystore: implemented ksk-only keystore...

...so that KSKs and ZSKs can be in distinct keystores

13 months agodnssec: implemented multi-keystore option...
Libor Peltan [Tue, 27 May 2025 11:34:03 +0000 (13:34 +0200)] 
dnssec: implemented multi-keystore option...

...useful e.g. for hsm-to-pem migration

13 months agoconf: support default values for multivalued items
Daniel Salzman [Tue, 27 May 2025 19:56:22 +0000 (21:56 +0200)] 
conf: support default values for multivalued items

13 months agorequestor: avoid calling close(-1) (Coverity)
Daniel Salzman [Mon, 30 Jun 2025 04:52:46 +0000 (06:52 +0200)] 
requestor: avoid calling close(-1) (Coverity)

13 months agolibknot: avoid calling close(-1) (Coverity)
Daniel Salzman [Sun, 29 Jun 2025 18:55:21 +0000 (20:55 +0200)] 
libknot: avoid calling close(-1) (Coverity)

13 months agorefresh: establish a new TCP connection for XFR if no-edns is set
Daniel Salzman [Wed, 25 Jun 2025 12:51:16 +0000 (14:51 +0200)] 
refresh: establish a new TCP connection for XFR if no-edns is set

13 months agotests-extra: attempt to fix tls/quic xfr tests
Daniel Salzman [Thu, 26 Jun 2025 11:32:58 +0000 (13:32 +0200)] 
tests-extra: attempt to fix tls/quic xfr tests

13 months agoMerge branch 'stop_in_multi_ctl' into 'master'
Daniel Salzman [Tue, 24 Jun 2025 09:26:16 +0000 (11:26 +0200)] 
Merge branch 'stop_in_multi_ctl' into 'master'

fix and improve server shutdown in multi-ctl

See merge request knot/knot-dns!1781

13 months agoserver: coding style
David Vašek [Tue, 24 Jun 2025 08:18:12 +0000 (10:18 +0200)] 
server: coding style

13 months agoctl: after receiving the 'stop' command, interrupt the socket ctl thread immediately
David Vašek [Tue, 27 May 2025 09:13:15 +0000 (11:13 +0200)] 
ctl: after receiving the 'stop' command, interrupt the socket ctl thread immediately

This enables quick shutdown without waiting for timeouts in the socket ctl thread.

13 months agoctl: link concurrent_ctl_ctx_t to the main socket control thread
David Vašek [Fri, 20 Jun 2025 16:11:10 +0000 (18:11 +0200)] 
ctl: link concurrent_ctl_ctx_t to the main socket control thread

13 months agoctl: don't assign to a cctx thread that carries the 'stop' information
David Vašek [Thu, 15 May 2025 09:35:17 +0000 (11:35 +0200)] 
ctl: don't assign to a cctx thread that carries the 'stop' information

Otherwise the 'stop' information (KNOT_CTL_ESTOP) would be overwritten.

13 months agotests-extra: improve stability of quic/xfr under Valgrind
Daniel Salzman [Tue, 24 Jun 2025 07:43:38 +0000 (09:43 +0200)] 
tests-extra: improve stability of quic/xfr under Valgrind

13 months agoMerge branch 'knotd-cert-ca' into 'master'
Daniel Salzman [Mon, 23 Jun 2025 16:19:04 +0000 (18:19 +0200)] 
Merge branch 'knotd-cert-ca' into 'master'

remote/acl TLS certificate validation

See merge request knot/knot-dns!1779

13 months agoserver: decrease SESSION_TICKET_POOL_TIMEOUT to 1200 seconds
Daniel Salzman [Mon, 23 Jun 2025 16:02:17 +0000 (18:02 +0200)] 
server: decrease SESSION_TICKET_POOL_TIMEOUT to 1200 seconds

13 months agoserver: purge sessticket_pool on server reload if creds changed
Daniel Salzman [Mon, 23 Jun 2025 12:40:58 +0000 (14:40 +0200)] 
server: purge sessticket_pool on server reload if creds changed

13 months agoconf: implemented certificate hostname validation
Jan Doskočil [Wed, 14 May 2025 11:03:39 +0000 (13:03 +0200)] 
conf: implemented certificate hostname validation

13 months agoMerge branch 'chaos_to_str_ext' into 'master'
Daniel Salzman [Sat, 14 Jun 2025 18:56:42 +0000 (20:56 +0200)] 
Merge branch 'chaos_to_str_ext' into 'master'

Add class aliases INTERNET and CHAOS

See merge request knot/knot-dns!1785

13 months agokdig: add an example for RFC4892 to documentation
Daniel Salzman [Fri, 13 Jun 2025 05:48:03 +0000 (07:48 +0200)] 
kdig: add an example for RFC4892 to documentation

13 months agoutils: add class aliases INTERNET and CHAOS
Daniel Salzman [Fri, 13 Jun 2025 05:29:04 +0000 (07:29 +0200)] 
utils: add class aliases INTERNET and CHAOS

13 months agoMerge branch 'pkg-python' into 'master'
Daniel Salzman [Fri, 13 Jun 2025 17:46:22 +0000 (19:46 +0200)] 
Merge branch 'pkg-python' into 'master'

distro: fix new RPM subpackages and add packaging test

See merge request knot/knot-dns!1786

13 months agodistro/tests: new python-libknot test
Jakub Ružička [Fri, 13 Jun 2025 10:58:06 +0000 (12:58 +0200)] 
distro/tests: new python-libknot test

13 months agodistro/tests: fix apkg test Depends
Jakub Ružička [Fri, 13 Jun 2025 11:22:37 +0000 (13:22 +0200)] 
distro/tests: fix apkg test Depends

It's not possible to distro.match() against pkgstyles such as `rpm` or
`deb` with current apkg.

13 months agodistro/rpm: remove %{_isa} from noarch packages' Requires
Jakub Ružička [Fri, 13 Jun 2025 11:29:49 +0000 (13:29 +0200)] 
distro/rpm: remove %{_isa} from noarch packages' Requires

noarch packages shouldn't depend on specific architectures.

13 months agosrc: relicense omitted files to GPL-2.0-or-later
Daniel Salzman [Thu, 12 Jun 2025 12:46:16 +0000 (14:46 +0200)] 
src: relicense omitted files to GPL-2.0-or-later

14 months agotls: avoid passing NULL to strlen() when generating a certificate
Daniel Salzman [Tue, 3 Jun 2025 13:45:13 +0000 (15:45 +0200)] 
tls: avoid passing NULL to strlen() when generating a certificate

14 months agoctl: add 'parser failed,' prefix to zone-(un)set error messages
Daniel Salzman [Tue, 3 Jun 2025 11:35:18 +0000 (13:35 +0200)] 
ctl: add 'parser failed,' prefix to zone-(un)set error messages

14 months agoMerge branch 'pkg_rpm_python' into 'master'
Daniel Salzman [Tue, 3 Jun 2025 11:00:05 +0000 (13:00 +0200)] 
Merge branch 'pkg_rpm_python' into 'master'

distro/rpm: use modern %pyproject_* macros

See merge request knot/knot-dns!1784

14 months agodistro/rpm: use modern %pyproject_* macros
Jakub Ružička [Mon, 12 May 2025 11:38:56 +0000 (13:38 +0200)] 
distro/rpm: use modern %pyproject_* macros

Support new %pyproject_* macros where they're supported, otherwise use
older %py3_* macros which work everywhere.

Introduce new %{PYPROJECT} var which is only set on distros supporting
new macros - Fedora >= 40 and EL >= 9.

14 months agodistro/rpm: add knot-exporter and python3-libknot RPM subpackages
Jakub Ružička [Mon, 28 Apr 2025 16:13:58 +0000 (18:13 +0200)] 
distro/rpm: add knot-exporter and python3-libknot RPM subpackages

14 months agozonefile: add libgen.h for basename(), cleanup
Daniel Salzman [Mon, 2 Jun 2025 14:33:17 +0000 (16:33 +0200)] 
zonefile: add libgen.h for basename(), cleanup

14 months agoMerge branch 'pkt-trailing' into 'master'
Daniel Salzman [Mon, 2 Jun 2025 14:10:08 +0000 (16:10 +0200)] 
Merge branch 'pkt-trailing' into 'master'

pkt: fix our check for trailing rdata when parsing

See merge request knot/knot-dns!1783

14 months agopkt: fix our check for trailing rdata when parsing
Vladimír Čunát [Mon, 2 Jun 2025 13:57:23 +0000 (15:57 +0200)] 
pkt: fix our check for trailing rdata when parsing

- in case the \0 terminator got "compressed", we would get
  a spurious KNOT_EMALF
- if real compression happened, we could miss the fact
  that there are trailing data

14 months agoMerge branch 'zonemd_dbus' into 'master'
Libor Peltan [Mon, 2 Jun 2025 13:55:43 +0000 (15:55 +0200)] 
Merge branch 'zonemd_dbus' into 'master'

zonemd: emit 'dnssec-invalid' dbus event when validation fails

See merge request knot/knot-dns!1782

14 months agoMerge branch 'temp-cert-sanonly' into 'master'
Daniel Salzman [Mon, 2 Jun 2025 10:33:59 +0000 (12:33 +0200)] 
Merge branch 'temp-cert-sanonly' into 'master'

self-signed cert SANonly

See merge request knot/knot-dns!1778

14 months agokdig: support certificates missing Subject field
Jan Doskočil [Fri, 23 May 2025 12:05:52 +0000 (14:05 +0200)] 
kdig: support certificates missing Subject field

14 months agoknotd: self-signed cert with SAN instead of Subject: CN
Jan Doskočil [Fri, 23 May 2025 12:05:29 +0000 (14:05 +0200)] 
knotd: self-signed cert with SAN instead of Subject: CN

14 months agoctl: don't log zone-(un)set parser failed, send details to the client instead
Daniel Salzman [Mon, 2 Jun 2025 06:30:28 +0000 (08:30 +0200)] 
ctl: don't log zone-(un)set parser failed, send details to the client instead

14 months agoquic-handler: add check for empty conn to prevent assert
Daniel Salzman [Sun, 1 Jun 2025 07:06:44 +0000 (09:06 +0200)] 
quic-handler: add check for empty conn to prevent assert

14 months agozonefile: fix possible memory leak (Coverity)
Daniel Salzman [Sun, 1 Jun 2025 06:56:59 +0000 (08:56 +0200)] 
zonefile: fix possible memory leak (Coverity)

14 months agozonemd: emit 'dnssec-invalid' dbus event when validation fails
Daniel Salzman [Fri, 30 May 2025 11:50:19 +0000 (13:50 +0200)] 
zonemd: emit 'dnssec-invalid' dbus event when validation fails

14 months agokzonecheck: consider zone file name with origin auto-detection
Daniel Salzman [Thu, 29 May 2025 08:53:57 +0000 (10:53 +0200)] 
kzonecheck: consider zone file name with origin auto-detection

Partially revert 38f65806dd9b7af15ecd17ae3f2e71d2569a1dee

14 months agodnskey-sync: use deterministic jitter always if keytag-modulo is configured
Daniel Salzman [Fri, 30 May 2025 10:44:26 +0000 (12:44 +0200)] 
dnskey-sync: use deterministic jitter always if keytag-modulo is configured

14 months agoMerge branch 'ngtcp2-update' into 'master'
Daniel Salzman [Mon, 26 May 2025 16:10:03 +0000 (18:10 +0200)] 
Merge branch 'ngtcp2-update' into 'master'

libngtcp2 update

See merge request knot/knot-dns!1780

14 months agolibngtcp2: update to v1.13.0
Jan Doskočil [Mon, 26 May 2025 15:59:37 +0000 (17:59 +0200)] 
libngtcp2: update to v1.13.0

14 months agoscripts: more robust update_ngtcp2.sh script
Jan Doskočil [Mon, 26 May 2025 15:41:36 +0000 (17:41 +0200)] 
scripts: more robust update_ngtcp2.sh script

14 months agoMerge branch 'cat_tpl_check' into 'master'
Libor Peltan [Mon, 26 May 2025 11:19:54 +0000 (13:19 +0200)] 
Merge branch 'cat_tpl_check' into 'master'

conf: call zone checks for catalog-templates

See merge request knot/knot-dns!1772

14 months agoconf: call zone checks for catalog-templates
Daniel Salzman [Wed, 14 May 2025 15:52:53 +0000 (17:52 +0200)] 
conf: call zone checks for catalog-templates

Note that these checks cannot be called for normal templates as templates
can be combined with zone-specific options (i.e. a template itself can be
invalid)!

14 months agoconf: move checks to more context-logical places
Daniel Salzman [Wed, 14 May 2025 15:50:03 +0000 (17:50 +0200)] 
conf: move checks to more context-logical places

14 months agoMerge branch 'dnskey_sync_keytag' into 'master'
Daniel Salzman [Mon, 26 May 2025 08:45:29 +0000 (10:45 +0200)] 
Merge branch 'dnskey_sync_keytag' into 'master'

DNSKEY sync keytag

See merge request knot/knot-dns!1777

14 months agodnskey-sync: add jitter to scheduled event to minimize race condition
Daniel Salzman [Fri, 16 May 2025 07:56:27 +0000 (09:56 +0200)] 
dnskey-sync: add jitter to scheduled event to minimize race condition

14 months agologging: alg/ksk roll: inform about pre-scheduled retirement after DS TTL
Libor Peltan [Thu, 22 May 2025 11:38:44 +0000 (13:38 +0200)] 
logging: alg/ksk roll: inform about pre-scheduled retirement after DS TTL

14 months agodnskey sync: skip rrs with different keytag modulo
Libor Peltan [Thu, 22 May 2025 11:02:37 +0000 (13:02 +0200)] 
dnskey sync: skip rrs with different keytag modulo

14 months agobenevolent IXFR: bugfix: when ignoring rem/add, dont skip whole rrset
Libor Peltan [Thu, 22 May 2025 11:01:11 +0000 (13:01 +0200)] 
benevolent IXFR: bugfix: when ignoring rem/add, dont skip whole rrset

14 months agoutils: mute Coverity (invalid type)
Daniel Salzman [Sun, 25 May 2025 08:59:38 +0000 (10:59 +0200)] 
utils: mute Coverity (invalid type)

14 months agodistro: adapt authoritative-server test for kzonecheck to autodetection
Daniel Salzman [Fri, 23 May 2025 14:50:29 +0000 (16:50 +0200)] 
distro: adapt authoritative-server test for kzonecheck to autodetection

14 months agopython3-libknot: improve README example
Daniel Salzman [Fri, 23 May 2025 11:31:50 +0000 (13:31 +0200)] 
python3-libknot: improve README example

14 months agoknot-exporter: remove return within a finally block
Daniel Salzman [Fri, 23 May 2025 11:30:13 +0000 (13:30 +0200)] 
knot-exporter: remove return within a finally block

fixes #957

14 months agoCI: add fedora-42 and alma-10
Daniel Salzman [Thu, 22 May 2025 16:17:50 +0000 (18:17 +0200)] 
CI: add fedora-42 and alma-10

14 months agoMerge branch 'tests_fix_startup' into 'master'
Daniel Salzman [Thu, 22 May 2025 11:15:55 +0000 (13:15 +0200)] 
Merge branch 'tests_fix_startup' into 'master'

fix tests-extra server startup routines

See merge request knot/knot-dns!1774

14 months agoMerge branch 'notify-delay' into 'master'
Daniel Salzman [Thu, 22 May 2025 06:57:57 +0000 (08:57 +0200)] 
Merge branch 'notify-delay' into 'master'

Notify delay

See merge request knot/knot-dns!1776

14 months agoconf: implement notify-delay option
Jan Doskočil [Wed, 21 May 2025 12:58:42 +0000 (14:58 +0200)] 
conf: implement notify-delay option

14 months agotests-extra: allow lower number of server start retries for recoverable start failures
David Vašek [Sat, 17 May 2025 10:34:27 +0000 (12:34 +0200)] 
tests-extra: allow lower number of server start retries for recoverable start failures

14 months agotests-extra: when ports are busy, really allow a retry with a different configuration
David Vašek [Sat, 17 May 2025 10:34:15 +0000 (12:34 +0200)] 
tests-extra: when ports are busy, really allow a retry with a different configuration

14 months agotests-extra: if a servers doesn't start during test startup, restart the startup...
David Vašek [Mon, 19 May 2025 09:26:42 +0000 (11:26 +0200)] 
tests-extra: if a servers doesn't start during test startup, restart the startup process

In the past, knotd server continued running even after binding of some ports failed.
This is no longer true for some time. The tests didn't reflect it.

14 months agotests-extra: fix the repeated server startup
David Vašek [Fri, 16 May 2025 12:42:27 +0000 (14:42 +0200)] 
tests-extra: fix the repeated server startup

A workaround of already fixed flaw doesn't apply anymore.

14 months agoMerge branch 'slavesign_serial_indep' into 'master'
Daniel Salzman [Wed, 21 May 2025 12:14:33 +0000 (14:14 +0200)] 
Merge branch 'slavesign_serial_indep' into 'master'

xfr/slave-sign: independent SOA serial series on slave-side

See merge request knot/knot-dns!1775