]> git.ipfire.org Git - thirdparty/knot-dns.git/log
thirdparty/knot-dns.git
12 months agobackup: code cleanup
Daniel Salzman [Wed, 26 Feb 2025 11:00:30 +0000 (12:00 +0100)] 
backup: code cleanup

13 months agoMerge branch 'dnskey-flags' into 'master'
Daniel Salzman [Thu, 13 Mar 2025 11:42:52 +0000 (12:42 +0100)] 
Merge branch 'dnskey-flags' into 'master'

libdnssec: ignore reserved bits in DNSKEY flags

See merge request knot/knot-dns!1751

13 months agolibdnssec: ignore reserved bits in DNSKEY flags
Vladimír Čunát [Thu, 13 Mar 2025 11:31:03 +0000 (12:31 +0100)] 
libdnssec: ignore reserved bits in DNSKEY flags

Otherwise Knot Resolver would be breaking a MUST at the very end of
https://datatracker.ietf.org/doc/html/rfc4034#section-2.1.1

Real-life example:
https://mailarchive.ietf.org/arch/msg/dd/W4lOTgd8-3NF0pbjtqP7YUz6Puk/

13 months agoMerge branch 'zonefile_skip' into 'master'
Daniel Salzman [Wed, 12 Mar 2025 11:47:54 +0000 (12:47 +0100)] 
Merge branch 'zonefile_skip' into 'master'

Zonefile skip

See merge request knot/knot-dns!1745

13 months agonotify: fix bsearch in unsorted dynarray
Libor Peltan [Mon, 17 Feb 2025 11:45:01 +0000 (12:45 +0100)] 
notify: fix bsearch in unsorted dynarray

13 months agozone/skip: also applies to zone diff computation
Libor Peltan [Tue, 4 Feb 2025 16:45:42 +0000 (17:45 +0100)] 
zone/skip: also applies to zone diff computation

13 months agoimplemented zonefile-skip option
Libor Peltan [Thu, 30 Jan 2025 15:22:04 +0000 (16:22 +0100)] 
implemented zonefile-skip option

13 months agoMerge branch 'tcp_log' into 'master'
Daniel Salzman [Tue, 25 Feb 2025 14:32:41 +0000 (15:32 +0100)] 
Merge branch 'tcp_log' into 'master'

Consistent TCP timeout logging

See merge request knot/knot-dns!1748

13 months agotcp: add tcp_io_timeout and tcp_idle_timeout server stats counters
Daniel Salzman [Fri, 21 Feb 2025 19:56:54 +0000 (20:56 +0100)] 
tcp: add tcp_io_timeout and tcp_idle_timeout server stats counters

13 months agotcp: change 'terminated inactive client' log level to debug
Daniel Salzman [Fri, 21 Feb 2025 19:34:47 +0000 (20:34 +0100)] 
tcp: change 'terminated inactive client' log level to debug

13 months agoscripts: avoid name collisions in update_ngtcp2.sh
Jan Doskočil [Fri, 21 Feb 2025 15:18:39 +0000 (16:18 +0100)] 
scripts: avoid name collisions in update_ngtcp2.sh

13 months agolibngtcp2: update to v1.11.0
Jan Doskočil [Fri, 21 Feb 2025 12:51:40 +0000 (13:51 +0100)] 
libngtcp2: update to v1.11.0

13 months agoCI: use the latest apkg to fix error on Debian 13
Daniel Salzman [Thu, 20 Feb 2025 12:59:27 +0000 (13:59 +0100)] 
CI: use the latest apkg to fix error on Debian 13

13 months agoCI: add Debian 13 for package testing
Daniel Salzman [Thu, 20 Feb 2025 06:27:47 +0000 (07:27 +0100)] 
CI: add Debian 13 for package testing

13 months agotests-extra: increase robustness of edns/nsid
Daniel Salzman [Fri, 14 Feb 2025 07:25:49 +0000 (08:25 +0100)] 
tests-extra: increase robustness of edns/nsid

13 months agoMerge branch 'knotc_autocomplete_links' into 'master'
Jan Doskočil [Fri, 14 Feb 2025 11:12:57 +0000 (12:12 +0100)] 
Merge branch 'knotc_autocomplete_links' into 'master'

knotc: autocomplete symlinked dirs even as subdirectories

See merge request knot/knot-dns!1746

13 months agoknotc: autocomplete symlinked dirs even as subdirectories
David Vašek [Mon, 10 Feb 2025 15:06:41 +0000 (16:06 +0100)] 
knotc: autocomplete symlinked dirs even as subdirectories

13 months agoutils: fix UBSAN 'applying zero offset to null pointer' if empty XFR response
Daniel Salzman [Fri, 14 Feb 2025 06:51:32 +0000 (07:51 +0100)] 
utils: fix UBSAN 'applying zero offset to null pointer' if empty XFR response

13 months agoutils: simplify message section counts reading
Daniel Salzman [Fri, 14 Feb 2025 06:50:05 +0000 (07:50 +0100)] 
utils: simplify message section counts reading

14 months agotests: fixing slow run with all valgrind flags
Libor Peltan [Tue, 11 Feb 2025 11:11:13 +0000 (12:11 +0100)] 
tests: fixing slow run with all valgrind flags

14 months agoknotc: explicitly ignore snprintf() return value -- silence Coverity warning
David Vašek [Sun, 9 Feb 2025 09:50:54 +0000 (10:50 +0100)] 
knotc: explicitly ignore snprintf() return value -- silence Coverity warning

14 months agoMerge branch 'serial_modulo_enh' into 'master'
Daniel Salzman [Sat, 8 Feb 2025 13:07:39 +0000 (14:07 +0100)] 
Merge branch 'serial_modulo_enh' into 'master'

Serial modulo shift

See merge request knot/knot-dns!1735

14 months agodoc: serial modulo/shift enhancements
Libor Peltan [Tue, 28 Jan 2025 13:40:46 +0000 (14:40 +0100)] 
doc: serial modulo/shift enhancements

14 months agoimplemented SOA serial shift for backup-signer op
Libor Peltan [Mon, 9 Dec 2024 17:35:40 +0000 (18:35 +0100)] 
implemented SOA serial shift for backup-signer op

14 months agoMerge branch 'ddns_no_contents' into 'master'
Libor Peltan [Thu, 6 Feb 2025 20:47:13 +0000 (21:47 +0100)] 
Merge branch 'ddns_no_contents' into 'master'

Allow initial DDNS to empty zone

See merge request knot/knot-dns!1744

14 months agoddns: allow initial update to empty zone
Daniel Salzman [Thu, 30 Jan 2025 07:14:02 +0000 (08:14 +0100)] 
ddns: allow initial update to empty zone

14 months agoMerge branch 'knotc_autocomplete' into 'master'
David Vasek [Tue, 4 Feb 2025 16:30:28 +0000 (17:30 +0100)] 
Merge branch 'knotc_autocomplete' into 'master'

knotc: autocomplete improvements

See merge request knot/knot-dns!1737

14 months agodoc/knotc: highlight recently added keywords as others are
David Vašek [Mon, 13 Jan 2025 17:33:40 +0000 (18:33 +0100)] 
doc/knotc: highlight recently added keywords as others are

14 months agoknotc: conf-(import|export) path tab completion
Jan Doskočil [Wed, 8 Jan 2025 11:48:04 +0000 (12:48 +0100)] 
knotc: conf-(import|export) path tab completion

14 months agoknotc: conf-set dont send superfluous LIST_SCHEMA filter
Jan Doskočil [Sun, 29 Dec 2024 18:34:46 +0000 (19:34 +0100)] 
knotc: conf-set dont send superfluous LIST_SCHEMA filter

14 months agoknotc: avoid sending empty FILTERS sections
Jan Doskočil [Sat, 28 Dec 2024 18:56:18 +0000 (19:56 +0100)] 
knotc: avoid sending empty FILTERS sections

14 months agoknotc: zone-key-rollover key type tab completion
Jan Doskočil [Sat, 28 Dec 2024 12:12:48 +0000 (13:12 +0100)] 
knotc: zone-key-rollover key type tab completion

14 months agoctl: define rollover key-type keywords as macros
David Vašek [Wed, 29 Jan 2025 22:43:18 +0000 (23:43 +0100)] 
ctl: define rollover key-type keywords as macros

14 months agoknotc: avoid sending empty FLAGS fields
Jan Doskočil [Mon, 9 Dec 2024 14:59:16 +0000 (15:59 +0100)] 
knotc: avoid sending empty FLAGS fields

14 months agoknotc: prevent segfault upon invalid filter
Jan Doskočil [Sat, 28 Dec 2024 00:34:25 +0000 (01:34 +0100)] 
knotc: prevent segfault upon invalid filter

Previously `knotc zone-flush example. +example` would segfault.

14 months agoknotc: filters tab completion
Jan Doskočil [Fri, 27 Dec 2024 22:40:16 +0000 (23:40 +0100)] 
knotc: filters tab completion

14 months agoknotc: make knotc command macros available in other knotc modules
David Vašek [Tue, 4 Feb 2025 14:01:09 +0000 (15:01 +0100)] 
knotc: make knotc command macros available in other knotc modules

14 months agoknotc: status detail tab completion
Jan Doskočil [Thu, 26 Dec 2024 18:51:15 +0000 (19:51 +0100)] 
knotc: status detail tab completion

14 months agoctl: define status detail keywords as macros
David Vašek [Tue, 28 Jan 2025 11:19:32 +0000 (12:19 +0100)] 
ctl: define status detail keywords as macros

14 months agoknotc: make filter_desc_t available in other modules
Daniel Salzman [Fri, 24 Jan 2025 11:05:35 +0000 (12:05 +0100)] 
knotc: make filter_desc_t available in other modules

14 months agoknotc: use filter_desc_t for conf-import and conf-export filters
Daniel Salzman [Fri, 24 Jan 2025 10:54:16 +0000 (11:54 +0100)] 
knotc: use filter_desc_t for conf-import and conf-export filters

14 months agodoc: update features
Daniel Salzman [Tue, 4 Feb 2025 12:12:38 +0000 (13:12 +0100)] 
doc: update features

14 months agoMerge branch 'ctl_commands_fixes' into 'master'
Daniel Salzman [Tue, 4 Feb 2025 10:08:34 +0000 (11:08 +0100)] 
Merge branch 'ctl_commands_fixes' into 'master'

zone-backup/zone-restore and zone-flush related fixes and improvements

See merge request knot/knot-dns!1743

14 months agoctl/flush: check params and the output directory once before actual flushing
David Vašek [Wed, 29 Jan 2025 16:38:34 +0000 (17:38 +0100)] 
ctl/flush: check params and the output directory once before actual flushing

14 months agoctl/backup: make common failure report reusable
David Vašek [Wed, 29 Jan 2025 15:52:00 +0000 (16:52 +0100)] 
ctl/backup: make common failure report reusable

14 months agoctl/flush: report missing outdir value as missing rather than invalid
David Vašek [Tue, 28 Jan 2025 14:47:20 +0000 (15:47 +0100)] 
ctl/flush: report missing outdir value as missing rather than invalid

14 months agoctl/backup: check that a backup/restore directory has been provided from ctl
David Vašek [Tue, 28 Jan 2025 14:16:10 +0000 (15:16 +0100)] 
ctl/backup: check that a backup/restore directory has been provided from ctl

14 months agoxdp: fix vlan_map size calculation
Daniel Salzman [Fri, 31 Jan 2025 15:07:06 +0000 (16:07 +0100)] 
xdp: fix vlan_map size calculation

All indexes must be considered to avoid out-of-bound array access.

14 months agocontrib: list ISC license as such, not as 0BSD license
David Vašek [Mon, 27 Jan 2025 09:49:50 +0000 (10:49 +0100)] 
contrib: list ISC license as such, not as 0BSD license

These two licenses are different.

14 months agocontrib/ucw: clarify source licenses
Daniel Salzman [Fri, 24 Jan 2025 16:52:47 +0000 (17:52 +0100)] 
contrib/ucw: clarify source licenses

14 months agoucw/heap: unify the license header
Daniel Salzman [Fri, 24 Jan 2025 07:38:07 +0000 (08:38 +0100)] 
ucw/heap: unify the license header

14 months agocontrib: remove unused ucw/binsearch.h
Daniel Salzman [Thu, 23 Jan 2025 16:15:51 +0000 (17:15 +0100)] 
contrib: remove unused ucw/binsearch.h

14 months agobugfix/serial modulo: detect uint32 overflow
Libor Peltan [Mon, 9 Dec 2024 15:33:08 +0000 (16:33 +0100)] 
bugfix/serial modulo: detect uint32 overflow

14 months agoMerge branch 'zoneversion' into 'master'
Daniel Salzman [Tue, 21 Jan 2025 09:59:38 +0000 (10:59 +0100)] 
Merge branch 'zoneversion' into 'master'

Support for EDNS ZONEVERSION

See merge request knot/knot-dns!1741

14 months agokdig: add +[no]zoneversion support
Daniel Salzman [Sun, 19 Jan 2025 18:14:14 +0000 (19:14 +0100)] 
kdig: add +[no]zoneversion support

14 months agonameserver: add EDNS ZONEVERSION support
Daniel Salzman [Sun, 19 Jan 2025 18:16:41 +0000 (19:16 +0100)] 
nameserver: add EDNS ZONEVERSION support

14 months agolibknot: add EDNS ZONEVERSION support
Daniel Salzman [Sat, 18 Jan 2025 18:07:49 +0000 (19:07 +0100)] 
libknot: add EDNS ZONEVERSION support

14 months agodoc: update network adapters in XDP pre-requisities
Hynek Šabacký [Fri, 17 Jan 2025 09:34:00 +0000 (10:34 +0100)] 
doc: update network adapters in XDP pre-requisities

14 months agoMerge branch 'dname_apex' into 'master'
Libor Peltan [Thu, 16 Jan 2025 15:04:23 +0000 (16:04 +0100)] 
Merge branch 'dname_apex' into 'master'

Fix DNAME at the zone apex check if active NSEC3

See merge request knot/knot-dns!1740

14 months agoadjust: refactor structure initializations to be more descriptive
Daniel Salzman [Thu, 16 Jan 2025 07:29:48 +0000 (08:29 +0100)] 
adjust: refactor structure initializations to be more descriptive

14 months agosem-checks: fix DNAME at the zone apex check if active NSEC3
Daniel Salzman [Thu, 16 Jan 2025 07:18:43 +0000 (08:18 +0100)] 
sem-checks: fix DNAME at the zone apex check if active NSEC3

15 months agodoc: update year to 2025
Daniel Salzman [Wed, 8 Jan 2025 12:36:53 +0000 (13:36 +0100)] 
doc: update year to 2025

15 months agoMerge branch 'ctl_dummy_abort_nostuck' into 'master'
Daniel Salzman [Wed, 8 Jan 2025 13:21:52 +0000 (14:21 +0100)] 
Merge branch 'ctl_dummy_abort_nostuck' into 'master'

ctl: fix ctl stuck when abort sent to nonexisting conf txn...

See merge request knot/knot-dns!1739

15 months agoctl: improve error detection and send an error message to the client
Daniel Salzman [Wed, 8 Jan 2025 11:36:54 +0000 (12:36 +0100)] 
ctl: improve error detection and send an error message to the client

15 months agoctl: fix ctl stuck when abort sent to nonexisting conf txn...
Libor Peltan [Wed, 8 Jan 2025 08:05:44 +0000 (09:05 +0100)] 
ctl: fix ctl stuck when abort sent to nonexisting conf txn...

...this appeared as a regression when implementing concurrent CTL

15 months agopython: expanded CTL documentation
Jan Doskočil [Wed, 11 Dec 2024 14:06:23 +0000 (15:06 +0100)] 
python: expanded CTL documentation

15 months agoMerge branch 'xdp_filter_impr' into 'master'
Daniel Salzman [Sun, 5 Jan 2025 17:36:48 +0000 (18:36 +0100)] 
Merge branch 'xdp_filter_impr' into 'master'

XDP filter improvements

Closes #948

See merge request knot/knot-dns!1738

15 months agoxdp: update filter binary using Clang 18
Daniel Salzman [Tue, 31 Dec 2024 19:12:20 +0000 (20:12 +0100)] 
xdp: update filter binary using Clang 18

15 months agoxdp: add IPv6 extended headers parsing support with some filtering
Daniel Salzman [Fri, 3 Jan 2025 15:31:51 +0000 (16:31 +0100)] 
xdp: add IPv6 extended headers parsing support with some filtering

- Any packet with more than 3 IPv6 headers is dropped.
- Any packet with an IPPROTO_NONE or a reserved header (253 and 253) is dropped.
- A DNS-related packet is dropped if it contains any extended header.

15 months agoxdp: unify used byte-order conversion functions
Daniel Salzman [Wed, 1 Jan 2025 20:37:22 +0000 (21:37 +0100)] 
xdp: unify used byte-order conversion functions

Note that functions like bpf_htons() internally disinguish whether the argument
is a constant.

15 months agoxdp: drop DNS messages shorter than DNS header length
Daniel Salzman [Mon, 30 Dec 2024 10:51:52 +0000 (11:51 +0100)] 
xdp: drop DNS messages shorter than DNS header length

15 months agoxdp: add check for IP payload length and udp->len equality
Daniel Salzman [Tue, 31 Dec 2024 19:03:04 +0000 (20:03 +0100)] 
xdp: add check for IP payload length and udp->len equality

15 months agoxdp: refactor access checks to be uniform with the other checks
Daniel Salzman [Tue, 31 Dec 2024 19:01:25 +0000 (20:01 +0100)] 
xdp: refactor access checks to be uniform with the other checks

15 months agotls: call gnutls_bye() when closing a TLS connection
Daniel Salzman [Fri, 20 Dec 2024 14:50:46 +0000 (15:50 +0100)] 
tls: call gnutls_bye() when closing a TLS connection

15 months agoknotd: avoid crash on crafted CTL payload
Jan Doskočil [Thu, 2 Jan 2025 17:20:01 +0000 (18:20 +0100)] 
knotd: avoid crash on crafted CTL payload

There was an incorrect assumption in zones_apply() that the next DATA
unit carries zonename data.

15 months agodoc: knotc: describe the force option for zone-flush
Jan Doskočil [Thu, 2 Jan 2025 12:44:59 +0000 (13:44 +0100)] 
doc: knotc: describe the force option for zone-flush

15 months agoMerge branch 'tests_socket_starting' into 'master'
Daniel Salzman [Sat, 28 Dec 2024 09:18:55 +0000 (10:18 +0100)] 
Merge branch 'tests_socket_starting' into 'master'

Fix the servers startup in the functional tests.

See merge request knot/knot-dns!1736

15 months agotests-extra: remove superfluous C-style semicolons from Python code
David Vašek [Wed, 18 Dec 2024 11:51:03 +0000 (12:51 +0100)] 
tests-extra: remove superfluous C-style semicolons from Python code

15 months agotests-extra: fix the all-servers startup method
David Vašek [Wed, 25 Dec 2024 22:42:07 +0000 (23:42 +0100)] 
tests-extra: fix the all-servers startup method

When all servers are already running, don't start some of them again.

15 months agotests-extra: fix Knot server starting when it listens on a socket
David Vašek [Mon, 9 Dec 2024 16:50:31 +0000 (17:50 +0100)] 
tests-extra: fix Knot server starting when it listens on a socket

15 months agolibngtcp2: update embedded libngtcp2 to v1.10.0
Jan Doskočil [Fri, 20 Dec 2024 14:15:37 +0000 (15:15 +0100)] 
libngtcp2: update embedded libngtcp2 to v1.10.0

15 months agoMerge branch 'max_ttl_rrsig_bck' into 'master'
Daniel Salzman [Fri, 20 Dec 2024 13:24:19 +0000 (14:24 +0100)] 
Merge branch 'max_ttl_rrsig_bck' into 'master'

RRSIGs/TTL: set rrsig->ttl to zero...

See merge request knot/knot-dns!1734

15 months agoRRSIGs/TTL: set rrsig->ttl to zero...
Libor Peltan [Tue, 17 Dec 2024 13:11:51 +0000 (14:11 +0100)] 
RRSIGs/TTL: set rrsig->ttl to zero...

...instead of random relict from the past,
anyway should not be used anywhere

15 months agostats: fix duplicate XDP counter names in YAML dump
Daniel Salzman [Wed, 18 Dec 2024 15:09:08 +0000 (16:09 +0100)] 
stats: fix duplicate XDP counter names in YAML dump

fixes #947

15 months agoMerge branch 'max_ttl_rrsig' into 'master'
Daniel Salzman [Thu, 19 Dec 2024 09:06:37 +0000 (10:06 +0100)] 
Merge branch 'max_ttl_rrsig' into 'master'

Max TTL of RRSIG

See merge request knot/knot-dns!1733

15 months agomax_ttl: in case of RRSIG consider orig_ttl and NOT rrsig->ttl
Libor Peltan [Tue, 17 Dec 2024 12:42:33 +0000 (13:42 +0100)] 
max_ttl: in case of RRSIG consider orig_ttl and NOT rrsig->ttl

15 months agotests: added max TTL test with signing and incremental realod
Libor Peltan [Tue, 17 Dec 2024 12:20:44 +0000 (13:20 +0100)] 
tests: added max TTL test with signing and incremental realod

15 months agomod-dnstap: distinguish between AUTH and UPDATE query/response
Jan Hák [Wed, 18 Dec 2024 10:03:54 +0000 (11:03 +0100)] 
mod-dnstap: distinguish between AUTH and UPDATE query/response

15 months agoutils: use knsupdate style of output when printing UPDATE message
Jan Hák [Wed, 18 Dec 2024 09:54:19 +0000 (10:54 +0100)] 
utils: use knsupdate style of output when printing UPDATE message

15 months agotests-extra: zone/expire -- fix a typo
David Vašek [Tue, 17 Dec 2024 09:29:57 +0000 (10:29 +0100)] 
tests-extra: zone/expire -- fix a typo

15 months agofix: zone hang if last zone-reload oom
solidcc2 [Thu, 12 Dec 2024 09:32:50 +0000 (17:32 +0800)] 
fix: zone hang if last zone-reload oom

15 months agoquery_module: fix statistics counters cleanup if allocation fails
Daniel Salzman [Sun, 15 Dec 2024 20:39:38 +0000 (21:39 +0100)] 
query_module: fix statistics counters cleanup if allocation fails

16 months agotests/atomic: lower the iteration counts with spinlock-emulated atomics
David Vašek [Thu, 12 Dec 2024 13:29:04 +0000 (14:29 +0100)] 
tests/atomic: lower the iteration counts with spinlock-emulated atomics

16 months agoMerge branch 'custom_atomic'
Daniel Salzman [Wed, 11 Dec 2024 16:44:01 +0000 (17:44 +0100)] 
Merge branch 'custom_atomic'

16 months agomodules/cookies: fix usage of new atomic in code (variable secret->variable)
Jan Hák [Tue, 26 Nov 2024 11:56:51 +0000 (12:56 +0100)] 
modules/cookies: fix usage of new atomic in code (variable secret->variable)

16 months agolibknot/quic: fix usage of new atomic in code (variable cert_creds)
Jan Hák [Tue, 26 Nov 2024 11:56:51 +0000 (12:56 +0100)] 
libknot/quic: fix usage of new atomic in code (variable cert_creds)

16 months agolibknot/quic: fix usage of new atomic in code (variable obufs_size)
Jan Hák [Tue, 26 Nov 2024 11:56:51 +0000 (12:56 +0100)] 
libknot/quic: fix usage of new atomic in code (variable obufs_size)

16 months agokxdpgun: fix usage of new atomic in code (variables stats_trigger and stats_switch)
Jan Hák [Tue, 26 Nov 2024 11:56:51 +0000 (12:56 +0100)] 
kxdpgun: fix usage of new atomic in code (variables stats_trigger and stats_switch)

16 months agostats: fix usage of new atomic in code (variable stats_vals)
Jan Hák [Tue, 26 Nov 2024 11:56:51 +0000 (12:56 +0100)] 
stats: fix usage of new atomic in code (variable stats_vals)

16 months agomodules/probe: fix usage of new atomic in code (variable last_times)
Jan Hák [Tue, 26 Nov 2024 11:56:51 +0000 (12:56 +0100)] 
modules/probe: fix usage of new atomic in code (variable last_times)