]> git.ipfire.org Git - thirdparty/knot-dns.git/log
thirdparty/knot-dns.git
8 weeks agoWIP doc/reference: in keystore section, note that OS privileges may need to be set doc_hsm_access
David Vašek [Thu, 16 Oct 2025 13:24:35 +0000 (15:24 +0200)] 
WIP doc/reference: in keystore section, note that OS privileges may need to be set

8 weeks agoredis: fix compilation if hiredis without TLS
Daniel Salzman [Thu, 16 Oct 2025 06:12:42 +0000 (08:12 +0200)] 
redis: fix compilation if hiredis without TLS

8 weeks agoredis: add multi-db and/or sentinel support
Daniel Salzman [Thu, 25 Sep 2025 13:26:57 +0000 (15:26 +0200)] 
redis: add multi-db and/or sentinel support

8 weeks agotests-redis: add --use-aof
Daniel Salzman [Mon, 6 Oct 2025 09:35:42 +0000 (11:35 +0200)] 
tests-redis: add --use-aof

8 weeks agodoc: add default TLS and QUIC ports to reference
Daniel Salzman [Wed, 24 Sep 2025 14:38:13 +0000 (16:38 +0200)] 
doc: add default TLS and QUIC ports to reference

8 weeks agoredis: add support for hostname listen specification
Daniel Salzman [Wed, 24 Sep 2025 14:28:18 +0000 (16:28 +0200)] 
redis: add support for hostname listen specification

8 weeks agoconf: introduce macros for default ports
Daniel Salzman [Wed, 24 Sep 2025 13:46:57 +0000 (15:46 +0200)] 
conf: introduce macros for default ports

8 weeks agoMerge branch 'knotc_zone_serial' into 'master'
Daniel Salzman [Wed, 15 Oct 2025 10:33:04 +0000 (12:33 +0200)] 
Merge branch 'knotc_zone_serial' into 'master'

knotc: implemented zone-serial-set

See merge request knot/knot-dns!1811

8 weeks agoknotc: implemented zone-serial-set
Libor Peltan [Thu, 2 Oct 2025 13:08:30 +0000 (15:08 +0200)] 
knotc: implemented zone-serial-set

8 weeks agokeymgr: remove local-serial command
Daniel Salzman [Mon, 13 Oct 2025 06:21:45 +0000 (08:21 +0200)] 
keymgr: remove local-serial command

8 weeks agokeymgr: deprecate local-serial command
Daniel Salzman [Mon, 13 Oct 2025 06:15:50 +0000 (08:15 +0200)] 
keymgr: deprecate local-serial command

2 months agozone: fix a recent memory leak
David Vašek [Tue, 14 Oct 2025 18:29:42 +0000 (20:29 +0200)] 
zone: fix a recent memory leak

2 months agoMerge branch 'restore_fix' into 'master'
Daniel Salzman [Tue, 14 Oct 2025 12:23:32 +0000 (14:23 +0200)] 
Merge branch 'restore_fix' into 'master'

Fix and improve restore if PKCS #11 is in use

Closes #960

See merge request knot/knot-dns!1813

2 months agodnssec: fix loading from more keystores if the key not in HSM
Daniel Salzman [Mon, 13 Oct 2025 14:13:06 +0000 (16:13 +0200)] 
dnssec: fix loading from more keystores if the key not in HSM

2 months agobackup: fix restore error if only PKCS #11 keystores are configured
Daniel Salzman [Fri, 10 Oct 2025 07:36:04 +0000 (09:36 +0200)] 
backup: fix restore error if only PKCS #11 keystores are configured

2 months agoMerge branch 'up_inc_diff_soarem' into 'master'
Daniel Salzman [Tue, 14 Oct 2025 07:54:11 +0000 (09:54 +0200)] 
Merge branch 'up_inc_diff_soarem' into 'master'

update: incremental without NO_CHSET standalone SOA removal ignored...

See merge request knot/knot-dns!1814

2 months agoupdate: incremental without NO_CHSET standalone SOA removal ignored...
Libor Peltan [Mon, 13 Oct 2025 14:29:23 +0000 (16:29 +0200)] 
update: incremental without NO_CHSET standalone SOA removal ignored...

otherwise for example knotc zone-begin followed by zone-diff shows SOA removal,
which respects the internals but makes no sense

2 months agozonedb-load: fix zone loading which were included by conf-set include
Daniel Salzman [Wed, 8 Oct 2025 16:06:00 +0000 (18:06 +0200)] 
zonedb-load: fix zone loading which were included by conf-set include

2 months agoconf: remove improper flags at 'reverse-generate' and 'include-from'
Daniel Salzman [Wed, 8 Oct 2025 15:41:48 +0000 (17:41 +0200)] 
conf: remove improper flags at 'reverse-generate' and 'include-from'

2 months agozonedb-load: remove redundant ZONE_EVENT_LOAD schedulings
Daniel Salzman [Wed, 8 Oct 2025 15:04:54 +0000 (17:04 +0200)] 
zonedb-load: remove redundant ZONE_EVENT_LOAD schedulings

2 months agoreplan: move zone_notifailed_clear() to zonedb-load for consistency
Daniel Salzman [Wed, 8 Oct 2025 12:45:55 +0000 (14:45 +0200)] 
replan: move zone_notifailed_clear() to zonedb-load for consistency

2 months agozonedb-load: move common code to get_zone()
Daniel Salzman [Sun, 5 Oct 2025 16:42:51 +0000 (18:42 +0200)] 
zonedb-load: move common code to get_zone()

2 months agoddns: fix assert if TLS communication and no QUIC available
Daniel Salzman [Tue, 7 Oct 2025 17:43:21 +0000 (19:43 +0200)] 
ddns: fix assert if TLS communication and no QUIC available

2 months agoMerge branch 'zonefile_write_fix' into 'master'
Daniel Salzman [Tue, 7 Oct 2025 15:06:27 +0000 (17:06 +0200)] 
Merge branch 'zonefile_write_fix' into 'master'

check fprintf() and fclose() return values

See merge request knot/knot-dns!1812

2 months agoproperly check fprintf() and fclose() return value
David Vašek [Thu, 25 Sep 2025 09:04:52 +0000 (11:04 +0200)] 
properly check fprintf() and fclose() return value

JSON functions, tests, and debug functions, where it isn't vital, remain without checking.
Checking and reporting for log and stats files will be solved separately.

2 months agofix a comment typo
David Vašek [Tue, 30 Sep 2025 10:56:02 +0000 (12:56 +0200)] 
fix a comment typo

2 months agodbus: add serial to external_verify event
Jan Hák [Fri, 3 Oct 2025 08:29:09 +0000 (10:29 +0200)] 
dbus: add serial to external_verify event

2 months agodistro: rename redis-knot to redis-module-knot or valkey-module-knot
Daniel Salzman [Tue, 30 Sep 2025 05:52:49 +0000 (07:52 +0200)] 
distro: rename redis-knot to redis-module-knot or valkey-module-knot

Install the module to:
- /usr/lib/x86_64-linux-gnu/redis/modules/ for DEB
- /usr/lib64/valkey/modules/ for RPM

2 months agoconfigure: add --with-redisdir parameter
Daniel Salzman [Fri, 3 Oct 2025 13:52:28 +0000 (15:52 +0200)] 
configure: add --with-redisdir parameter

2 months agopython: remove deprecated license classifier and some others
Daniel Salzman [Tue, 30 Sep 2025 07:52:34 +0000 (09:52 +0200)] 
python: remove deprecated license classifier and some others

2 months agodistro/deb: remove obsolete if from rules
Daniel Salzman [Tue, 30 Sep 2025 06:45:00 +0000 (08:45 +0200)] 
distro/deb: remove obsolete if from rules

2 months agodistro/deb: fix lintian issue debian-rules-uses-as-needed-linker-flag
Daniel Salzman [Tue, 30 Sep 2025 06:16:12 +0000 (08:16 +0200)] 
distro/deb: fix lintian issue debian-rules-uses-as-needed-linker-flag

2 months agodistro/deb: fix lintian issue not-binnmuable-all-depends-any
Daniel Salzman [Tue, 30 Sep 2025 05:50:30 +0000 (07:50 +0200)] 
distro/deb: fix lintian issue not-binnmuable-all-depends-any

E: knot source: not-binnmuable-all-depends-any python3-libknot -> libknot16

2 months agoutils/knotc: add a workaround for missing PATH_MAX macro, needed on GNU Hurd
David Vašek [Wed, 1 Oct 2025 08:12:51 +0000 (10:12 +0200)] 
utils/knotc: add a workaround for missing PATH_MAX macro, needed on GNU Hurd

For details see:
https://www.gnu.org/software/hurd/community/gsoc/project_ideas/maxpath.html
https://www.gnu.org/software/hurd/hurd/porting/guidelines.html#PATH_MAX_tt_MAX_PATH_tt_MAXPATHL

Added a lower limit of 1024, just to be sure.

2 months agodoc: improve knsec3hash description
Daniel Salzman [Sat, 27 Sep 2025 19:03:04 +0000 (21:03 +0200)] 
doc: improve knsec3hash description

2 months agodistro/deb: package descriptions cleanup
Daniel Salzman [Sat, 27 Sep 2025 18:53:42 +0000 (20:53 +0200)] 
distro/deb: package descriptions cleanup

2 months agodistro/deb: add knot-keymgr to Depends for tests
Daniel Salzman [Sat, 27 Sep 2025 18:34:16 +0000 (20:34 +0200)] 
distro/deb: add knot-keymgr to Depends for tests

2 months agodistro/deb: Update Standards-Version to latest 4.7.2 (no changes)
Daniel Salzman [Sat, 27 Sep 2025 16:49:49 +0000 (18:49 +0200)] 
distro/deb: Update Standards-Version to latest 4.7.2 (no changes)

2 months agodistro/deb: Remove redundant Rules-Requires-Root: no
Daniel Salzman [Sat, 27 Sep 2025 16:48:50 +0000 (18:48 +0200)] 
distro/deb: Remove redundant Rules-Requires-Root: no

2 months agoconfigure: fix linking with libhiredis if --disable-redis
Daniel Salzman [Fri, 26 Sep 2025 12:43:52 +0000 (14:43 +0200)] 
configure: fix linking with libhiredis if --disable-redis

2 months agoscripts: misc improvements to update_ngtcp2.sh
Jan Doskočil [Wed, 24 Sep 2025 11:03:53 +0000 (13:03 +0200)] 
scripts: misc improvements to update_ngtcp2.sh

If new files were added between libngtcp2 versions, the script will now
store the files in a "NEWFILES" directory for operator's convenience.

2 months agolibngtcp2: update embedded library to v1.16.0
Jan Doskočil [Wed, 24 Sep 2025 10:53:58 +0000 (12:53 +0200)] 
libngtcp2: update embedded library to v1.16.0

2 months agoctl/purge: remove an obsolete comment
David Vašek [Fri, 22 Nov 2024 18:55:10 +0000 (19:55 +0100)] 
ctl/purge: remove an obsolete comment

2 months agodoc/operation: add a note about backup/restore of generated catalog zone unique-id's
David Vašek [Fri, 22 Nov 2024 18:43:58 +0000 (19:43 +0100)] 
doc/operation: add a note about backup/restore of generated catalog zone unique-id's

2 months agocontrib/files: fix stream error handling (clang analyzer)
Jan Hák [Thu, 18 Sep 2025 09:01:11 +0000 (11:01 +0200)] 
contrib/files: fix stream error handling (clang analyzer)

POSIX / fread():
The file position indicator for the stream (if defined) shall be advanced by the
number of bytes successfully read. If an error occurs, the resulting value of
the file position indicator for the stream is unspecified. If a partial element
is read, its value is unspecified.

2 months agofix: failing build of knot/common/stats.c on PowerPC and MIPS
Jan Hák [Tue, 23 Sep 2025 10:52:25 +0000 (12:52 +0200)] 
fix: failing build of knot/common/stats.c on PowerPC and MIPS

2 months agoMerge branch 'opt_redis' into 'master'
Daniel Salzman [Fri, 19 Sep 2025 10:58:02 +0000 (12:58 +0200)] 
Merge branch 'opt_redis' into 'master'

Make redis fully optional

See merge request knot/knot-dns!1808

2 months agoMake redis fully optional
Nicolas PARLANT [Fri, 19 Sep 2025 08:36:55 +0000 (10:36 +0200)] 
Make redis fully optional

Add options :
*client (only) for a knot package
*module (only) for a redis-knot package

2 months agoBump version 3.6.dev
Daniel Salzman [Thu, 18 Sep 2025 05:23:03 +0000 (07:23 +0200)] 
Bump version 3.6.dev

2 months agokeymgr: fix possible NULL dereference when parsing import-key params (clang analyzer)
Daniel Salzman [Wed, 17 Sep 2025 06:44:21 +0000 (08:44 +0200)] 
keymgr: fix possible NULL dereference when parsing import-key params (clang analyzer)

2 months agodigest: avoid freeing a local variable (clang analyzer)
Daniel Salzman [Wed, 17 Sep 2025 06:29:16 +0000 (08:29 +0200)] 
digest: avoid freeing a local variable (clang analyzer)

2 months agoreverse: add assert for clang analyzer
Daniel Salzman [Wed, 17 Sep 2025 06:24:51 +0000 (08:24 +0200)] 
reverse: add assert for clang analyzer

2 months agoNEWS: add version 3.5.0
Daniel Salzman [Mon, 8 Sep 2025 07:06:58 +0000 (09:06 +0200)] 
NEWS: add version 3.5.0

2 months agodoc: add migration from 3.4.x to 3.5.x
Daniel Salzman [Mon, 8 Sep 2025 06:06:12 +0000 (08:06 +0200)] 
doc: add migration from 3.4.x to 3.5.x

2 months agoDockerfile: fix protocol in EXPOSE instruction should be lowercase
Daniel Salzman [Wed, 17 Sep 2025 05:17:41 +0000 (07:17 +0200)] 
Dockerfile: fix protocol in EXPOSE instruction should be lowercase

2 months agoexporter: distinguish global and zone stats + fixes and improvements
Daniel Salzman [Wed, 10 Sep 2025 17:53:02 +0000 (19:53 +0200)] 
exporter: distinguish global and zone stats + fixes and improvements

Thanks to Guillaume Cornet <cornet.guillaume.pierre@gmail.com>

2 months agoMerge branch 'update_delay' into 'master'
Daniel Salzman [Tue, 16 Sep 2025 13:06:52 +0000 (15:06 +0200)] 
Merge branch 'update_delay' into 'master'

implemented update-delay

See merge request knot/knot-dns!1807

2 months agoknotd: implement update-delay
Libor Peltan [Tue, 16 Sep 2025 08:52:47 +0000 (10:52 +0200)] 
knotd: implement update-delay

2 months agoredis: fix misaligned metadata access (UBSAN)
Jan Hák [Mon, 15 Sep 2025 09:59:00 +0000 (11:59 +0200)] 
redis: fix misaligned metadata access (UBSAN)

2 months agoMerge branch 'include_from_into_axfr' into 'master'
Daniel Salzman [Mon, 15 Sep 2025 12:52:32 +0000 (14:52 +0200)] 
Merge branch 'include_from_into_axfr' into 'master'

reverse+include-from: allow at slave, forcing ixfr-from-axfr

See merge request knot/knot-dns!1806

2 months agoreverse+include-from: allow at slave, forcing ixfr-from-axfr
Libor Peltan [Fri, 12 Sep 2025 13:01:09 +0000 (15:01 +0200)] 
reverse+include-from: allow at slave, forcing ixfr-from-axfr

3 months agoMerge branch 'redis'
Daniel Salzman [Fri, 12 Sep 2025 15:02:04 +0000 (17:02 +0200)] 
Merge branch 'redis'

3 months agodoc: extend introduction requirements, configuration, and operation with database...
Daniel Salzman [Tue, 9 Sep 2025 13:54:56 +0000 (15:54 +0200)] 
doc: extend introduction requirements, configuration, and operation with database zone backend

3 months agodoc: add reference for redis-related options
Libor Peltan [Mon, 28 Jul 2025 15:03:16 +0000 (17:03 +0200)] 
doc: add reference for redis-related options

3 months agoredis: write RRsets in batches to reduce processing overhead
Daniel Salzman [Thu, 4 Sep 2025 08:15:10 +0000 (10:15 +0200)] 
redis: write RRsets in batches to reduce processing overhead

3 months agoredis: keep DB conns open and stored in conn_pool
Libor Peltan [Mon, 11 Aug 2025 13:45:13 +0000 (15:45 +0200)] 
redis: keep DB conns open and stored in conn_pool

3 months agoredis: load from DB within zone loading
Libor Peltan [Mon, 28 Jul 2025 15:03:37 +0000 (17:03 +0200)] 
redis: load from DB within zone loading

3 months agoredis: write to DB from zone_update_commit()
Libor Peltan [Sun, 27 Jul 2025 14:59:48 +0000 (16:59 +0200)] 
redis: write to DB from zone_update_commit()

3 months agoknot: prepare for integration of the Redis backend
Daniel Salzman [Tue, 28 Jan 2025 13:34:34 +0000 (14:34 +0100)] 
knot: prepare for integration of the Redis backend

3 months agoredis: initial implementation of a Knot module for Redis
Jan Hák [Fri, 17 Jan 2025 07:28:15 +0000 (08:28 +0100)] 
redis: initial implementation of a Knot module for Redis

3 months agotests-extra: initial support for testing Knot with Redis backend
Libor Peltan [Sun, 27 Jul 2025 08:56:38 +0000 (10:56 +0200)] 
tests-extra: initial support for testing Knot with Redis backend

3 months agotests-redis: introduce redis module unit tests
Jan Hák [Fri, 18 Jul 2025 13:03:11 +0000 (15:03 +0200)] 
tests-redis: introduce redis module unit tests

3 months agoDockerfile: enable Redis
Daniel Salzman [Tue, 29 Jul 2025 15:51:01 +0000 (17:51 +0200)] 
Dockerfile: enable Redis

3 months agodistro/rpm: add redis-knot subpackage
Jakub Ružička [Mon, 11 Aug 2025 10:55:16 +0000 (12:55 +0200)] 
distro/rpm: add redis-knot subpackage

3 months agodistro/deb: add redis-knot subpackage
Daniel Salzman [Thu, 12 Jun 2025 13:06:49 +0000 (15:06 +0200)] 
distro/deb: add redis-knot subpackage

3 months agoconfigure: prepare for Redis
Daniel Salzman [Fri, 24 Jan 2025 07:31:43 +0000 (08:31 +0100)] 
configure: prepare for Redis

3 months agoredis: fix a few compile warnings in the module API
Daniel Salzman [Fri, 25 Jul 2025 09:14:11 +0000 (11:14 +0200)] 
redis: fix a few compile warnings in the module API

3 months agocontrib: add redismodule.h version 7.0
Daniel Salzman [Thu, 16 Jan 2025 09:56:53 +0000 (10:56 +0100)] 
contrib: add redismodule.h version 7.0

From https://github.com/RedisLabsModules/RedisModulesSDK/blob/master/7.0/redismodule.h

3 months agobase32hex: rename MAX_BIN_DATA_LEN to avoid name collision
Daniel Salzman [Sun, 8 Jun 2025 17:02:55 +0000 (19:02 +0200)] 
base32hex: rename MAX_BIN_DATA_LEN to avoid name collision

3 months agobase64: rename PD and MAX_BIN_DATA_LEN to avoid name collisions
Daniel Salzman [Sun, 8 Jun 2025 16:57:54 +0000 (18:57 +0200)] 
base64: rename PD and MAX_BIN_DATA_LEN to avoid name collisions

3 months agozscanner: rename wire_dname_to_str() to dname_to_str() to avoid name collision
Daniel Salzman [Sun, 8 Jun 2025 16:53:21 +0000 (18:53 +0200)] 
zscanner: rename wire_dname_to_str() to dname_to_str() to avoid name collision

3 months agolibknot: add knot_rdata_to_canonical()
Daniel Salzman [Sat, 7 Jun 2025 15:13:33 +0000 (17:13 +0200)] 
libknot: add knot_rdata_to_canonical()

3 months agoMerge branch 'flatten' into 'master'
Daniel Salzman [Fri, 12 Sep 2025 07:50:58 +0000 (09:50 +0200)] 
Merge branch 'flatten' into 'master'

Subzone inclusion

See merge request knot/knot-dns!1805

3 months agotests-extra: fix response.check() to check both rdata and nordata
Daniel Salzman [Fri, 12 Sep 2025 07:28:15 +0000 (09:28 +0200)] 
tests-extra: fix response.check() to check both rdata and nordata

3 months agoconf: fix knotd_conf_check_args_t.id value when calling from file parsing
Daniel Salzman [Thu, 11 Sep 2025 14:53:20 +0000 (16:53 +0200)] 
conf: fix knotd_conf_check_args_t.id value when calling from file parsing

3 months agozone: implemented including records from subzone(s)
Libor Peltan [Thu, 11 Sep 2025 14:54:42 +0000 (16:54 +0200)] 
zone: implemented including records from subzone(s)

3 months agozone/reverse: refactoring: pointer at reversed zone is a structure
Libor Peltan [Wed, 10 Sep 2025 15:48:32 +0000 (17:48 +0200)] 
zone/reverse: refactoring: pointer at reversed zone is a structure

3 months agoMerge branch 'event_loop_speed' into 'master'
David Vasek [Thu, 11 Sep 2025 16:23:31 +0000 (18:23 +0200)] 
Merge branch 'event_loop_speed' into 'master'

Tune the start-detection/loaded-detection loop in knotd.

See merge request knot/knot-dns!1803

3 months agoknotd/check_loaded: refactoring: all computations in milliseconds
Libor Peltan [Tue, 9 Sep 2025 07:08:11 +0000 (09:08 +0200)] 
knotd/check_loaded: refactoring: all computations in milliseconds

3 months agocontrib/time: add millisecond time functions
Libor Peltan [Tue, 9 Sep 2025 07:08:11 +0000 (09:08 +0200)] 
contrib/time: add millisecond time functions

3 months agocontrib/macros: allow mutually nested MIN(MAX(...))
Libor Peltan [Tue, 9 Sep 2025 07:07:44 +0000 (09:07 +0200)] 
contrib/macros: allow mutually nested MIN(MAX(...))

3 months agoknotd: tune the start-detection/loaded-detection loop
David Vašek [Tue, 5 Aug 2025 10:47:56 +0000 (12:47 +0200)] 
knotd: tune the start-detection/loaded-detection loop

Tune the start-detection loop to be dependent on the system performance and the zonedb size.
The sleep time is set to be double of the time to walk through whole zonedb, with upper and
lower limits.

Sleep time in the loaded-detection loop is constant for one minute, then starts to grow
exponentially. It starts at 1 second or at the start-detection sleep time, whichever is higher,
and stops at an upper limit.

3 months agoexporter: add missing connection close
Daniel Salzman [Wed, 10 Sep 2025 11:13:55 +0000 (13:13 +0200)] 
exporter: add missing connection close

3 months agoMerge branch 'quic_retry_readpkt' into 'master'
Daniel Salzman [Tue, 9 Sep 2025 13:23:03 +0000 (15:23 +0200)] 
Merge branch 'quic_retry_readpkt' into 'master'

libknot/QUIC: send RETRY packet if indicated also by ngtcp2_conn_read_pkt

See merge request knot/knot-dns!1804

3 months agolibknot/QUIC: send RETRY packet if indicated also by ngtcp2_conn_read_pkt
Libor Peltan [Tue, 9 Sep 2025 08:16:55 +0000 (10:16 +0200)] 
libknot/QUIC: send RETRY packet if indicated also by ngtcp2_conn_read_pkt

3 months agoconf: fix check for allowed empty reference
Daniel Salzman [Fri, 5 Sep 2025 18:41:21 +0000 (20:41 +0200)] 
conf: fix check for allowed empty reference

Fixes 4784c4c60199afa85daec96c70fa04daf0705efe

3 months agodoc: add a warning to zone-begin and improve other related parts
Daniel Salzman [Fri, 5 Sep 2025 08:30:49 +0000 (10:30 +0200)] 
doc: add a warning to zone-begin and improve other related parts

3 months agodoc: rework mod-cookies examples
Daniel Salzman [Tue, 2 Sep 2025 14:02:13 +0000 (16:02 +0200)] 
doc: rework mod-cookies examples

3 months agoMerge branch 'masters_mult_notify' into 'master'
Daniel Salzman [Fri, 5 Sep 2025 05:53:42 +0000 (07:53 +0200)] 
Merge branch 'masters_mult_notify' into 'master'

XFR/master-selection: try all masters if more than one sent NOTIFY

See merge request knot/knot-dns!1801

3 months agoXFR/master-selection: try all masters if more than one sent NOTIFY
Libor Peltan [Wed, 20 Aug 2025 14:02:53 +0000 (16:02 +0200)] 
XFR/master-selection: try all masters if more than one sent NOTIFY