]>
git.ipfire.org Git - thirdparty/knot-resolver.git/log
Vladimír Čunát [Thu, 4 Jun 2026 12:21:43 +0000 (14:21 +0200)]
update IANA's certificate for root trust anchor bootstrapping
The file now contains both old and new certificate, as downloaded from:
https://data.iana.org/root-anchors/icannbundle.pem
The switch of signatures themselves is planned for 2028.
Vladimír Čunát [Mon, 25 May 2026 09:29:46 +0000 (11:29 +0200)]
iterate: fix DNS64 on CNAMEs
It's a bit embarassing that the issue has lasted this long.
Overall the DNS64 module is slightly hacky/prototype-ish.
Vladimír Čunát [Wed, 15 Jul 2026 14:30:10 +0000 (16:30 +0200)]
tests/integration/deckard: pull updates to fix CI
Aleš Mrázek [Tue, 7 Jul 2026 11:55:12 +0000 (13:55 +0200)]
Merge branch 'v5-ci-dockerhub-fix' into 'master-5'
v5: ci: docker:dockerhub: avoid SIGPIPE when determining latest tag
See merge request knot/knot-resolver!1860
Aleš Mrázek [Tue, 7 Jul 2026 11:33:30 +0000 (13:33 +0200)]
.gitlab-ci.yml: docker:dockerhub: avoid SIGPIPE
Replaced the piped 'git tag | head' command with 'git for-each-ref'
to avoid intermittent exit code 141 failures in CI.
Vladimír Čunát [Wed, 3 Jun 2026 06:27:45 +0000 (08:27 +0200)]
Merge !1845: v5: ci: dockerhub automatic deploy from scheduled pipeline
Aleš Mrázek [Tue, 2 Jun 2026 14:49:50 +0000 (16:49 +0200)]
scripts: created Makefile.docker
Aleš Mrázek [Mon, 1 Jun 2026 14:19:38 +0000 (16:19 +0200)]
.gitlab-ci.yml: docker:dockerhub: only auto-deploy on latest5 tag
Aleš Mrázek [Mon, 1 Jun 2026 12:52:11 +0000 (14:52 +0200)]
.gitlab-ci.yml: docker:dockerhub: allow automatic deploy from schedule
Aleš Mrázek [Mon, 1 Jun 2026 12:50:45 +0000 (14:50 +0200)]
.gitlab-ci.yml: docker:dockerhub: added tag with date-stamp
Aleš Mrázek [Mon, 1 Jun 2026 12:23:11 +0000 (14:23 +0200)]
.gitlab-ci.yml: docker:build:cross-platform: unique builder for every build
Vladimír Čunát [Thu, 21 May 2026 11:59:30 +0000 (13:59 +0200)]
Merge !1838: pkg: rpm: package provides user/group
Aleš Mrázek [Thu, 21 May 2026 11:29:23 +0000 (13:29 +0200)]
pkg: rpm: package provides user and group
Return to static user/group creation.
Vladimír Čunát [Wed, 13 May 2026 11:47:05 +0000 (13:47 +0200)]
Merge !1833: v5: support libdnssec merged into libknot, as planned for knot >= 3.6
Vladimír Čunát [Tue, 16 Dec 2025 08:04:45 +0000 (09:04 +0100)]
treewide: avoid DNSSEC_EOK
It was zero anyway, just as KNOT_EOK or kr_ok()
(cherry picked from commit
c8ea4c076a622a724626f79eb3bd0ba4badd1f17 )
Vladimír Čunát [Wed, 22 Oct 2025 07:50:51 +0000 (09:50 +0200)]
libdnssec -->> libknot
(cherry picked from commit
80cf9eb10cef5567feb54fe96a9daf044a82f209 )
Vladimír Čunát [Fri, 24 Oct 2025 15:18:07 +0000 (17:18 +0200)]
treewide: centralize inclusion of libdnssec headers
(cherry picked from commit
d0375933dd0805e77ebe53765c51c8c8afa4a29e )
Vladimír Čunát [Wed, 13 May 2026 10:54:03 +0000 (12:54 +0200)]
Merge !1832: misc v5 backports
Vladimír Čunát [Sun, 4 Jan 2026 12:56:31 +0000 (13:56 +0100)]
distro/pkg: replace retired Jakub's contact by our team alias
(cherry picked from commit
9623ce239317a51362f181363fdae24d06cfe5f1 )
Vladimír Čunát [Mon, 16 Mar 2026 10:00:22 +0000 (11:00 +0100)]
lib/cache: trim TTL of failing stashed packets
In particular, in STUB mode
(i.e. forwarding with dnssec:false + authoritative:false)
if a SERVFAIL packet from upstream contained also records,
this packet could be cached with long TTL.
This issue was reported by Qifan Zhang from Palo Alto Networks.
Additionally, let's apply our TTL limits for caching also
to the `cache-control: max-age=` HTTP header sent in DoH replies.
(cherry picked from commit
e4812f51e385334e051851c839b4a262d6224411 )
Vladimír Čunát [Wed, 13 May 2026 09:08:41 +0000 (11:08 +0200)]
lib/resolve: backport `the_resolver` symbol
It's trivial to add this simple pointer,
and it will tremendously help with the following commit.
Vladimír Čunát [Thu, 26 Mar 2026 11:56:44 +0000 (12:56 +0100)]
daemon/http.c nit: fix const-warnings with C23
Interestingly, with C23, functions like strstr()
return a const-qualified pointer iff one was passed to them.
Right now we ran into this in Arch CI (unreleased gcc 15 version):
https://gitlab.nic.cz/knot/knot-resolver/-/jobs/
1713767
(cherry picked from commit
e6de5ceece8bd5fd91d306a7612f292f643935bd )
Vladimír Čunát [Wed, 13 May 2026 08:40:16 +0000 (10:40 +0200)]
Merge !1831: pkg: rpm sysusers, distro tests and other improvements
Vladimír Čunát [Tue, 4 Feb 2025 14:03:15 +0000 (15:03 +0100)]
daemon/lua: avoid depending on KNOT_EDNS_MAX_OPTION_CODE
We don't need to use the knot_edns_options_t type from lua,
only there's a pointer in knot_pkt_t.
Now libknot increased this length in v3.4.4,
even without bumping SONAME, and it might happen again.
This way we avoid kres-gen-*.lua depending on this length.
(cherry picked from commit
016692b2766ab9225a54ca1c0fda3e660a15a68c )
Aleš Mrázek [Wed, 13 May 2026 07:56:54 +0000 (09:56 +0200)]
.gitlab-ci.yml: use newer knot version 3.5
Aleš Mrázek [Wed, 13 May 2026 07:46:07 +0000 (09:46 +0200)]
.gitlab-ci.yml: removed builds for knot31 and knot32
These knot versions are no longer supported.
Aleš Mrázek [Wed, 13 May 2026 07:29:42 +0000 (09:29 +0200)]
.gitlab-ci.yml: updated IMAGE_TAG
Aleš Mrázek [Tue, 12 May 2026 21:49:43 +0000 (23:49 +0200)]
tests/integration/deckard: updated with fix for pydnstest symlink
Aleš Mrázek [Tue, 12 May 2026 21:39:07 +0000 (23:39 +0200)]
distro/pkg/rpm: removed rhel == 7
Aleš Mrázek [Tue, 12 May 2026 21:35:50 +0000 (23:35 +0200)]
distro/pkg/rpm: added systemd-sysusers
The recommended systemd's sysusers is used to add user and group.
Aleš Mrázek [Tue, 12 May 2026 21:19:38 +0000 (23:19 +0200)]
.gitlab-ci.yml: pkg: removed tests for ubuntu-25.04
Aleš Mrázek [Tue, 12 May 2026 21:16:42 +0000 (23:16 +0200)]
.gitlab-ci.yml: pkg: added tests for fedora-43 and fedora-44
Aleš Mrázek [Tue, 12 May 2026 21:15:37 +0000 (23:15 +0200)]
.gitlab-ci.yml: pkg:make-archive: use ubuntu-26.04 image
Vladimír Čunát [Mon, 9 Feb 2026 08:22:58 +0000 (09:22 +0100)]
Merge !1807: ci: update the list of distros
Vladimír Čunát [Mon, 9 Feb 2026 08:08:36 +0000 (09:08 +0100)]
ci: update the list of distros
Same as
e359cbe190f55
Aleš Mrázek [Fri, 9 Jan 2026 15:48:45 +0000 (16:48 +0100)]
Merge branch 'ci-dockerhub-update' into 'master-5'
v5: ci: update dockerhub deploy job
See merge request knot/knot-resolver!1790
Aleš Mrázek [Fri, 9 Jan 2026 15:44:01 +0000 (16:44 +0100)]
.gitlab-ci.yml: updated dockerhub deploy job
Vladimír Čunát [Fri, 2 Jan 2026 10:51:39 +0000 (11:51 +0100)]
Merge !1781: more backports to 5.x
Vladimír Čunát [Fri, 2 Jan 2026 10:10:36 +0000 (11:10 +0100)]
NEWS entries for the previous two backport commits
menakite [Thu, 29 Aug 2024 03:55:28 +0000 (05:55 +0200)]
resolver: don't set AD if both Answer and Authority are empty.
Fixes #914 (nord module: AD=1 is no good)
Vladimír Čunát [Sun, 21 Dec 2025 12:10:20 +0000 (13:10 +0100)]
cache packet_ttl(): fix wrong TTL in some cases, typically 32768
A notable case is when authoritative server incorrectly sends
a reply without any record but with EDNS.
For the OPT, the TTL field contains extended-error, EDNS version,
DO bit and mandatorily zeroed bits. As extended-error isn't usually
set by authoritative servers outside SERVFAIL, and EDNS version
is just 1 so far, we'd end up with TTL either 32768 (DO=0) or with
a value clamped by maximum TTL (86400 by default).
Vladimír Čunát [Fri, 19 Dec 2025 13:34:33 +0000 (14:34 +0100)]
Merge !1773: various backports to 5.x
Vladimír Čunát [Tue, 16 Dec 2025 14:17:27 +0000 (15:17 +0100)]
tests: migrate off cmocka's deprecated APIs
With cmocka-2.0.0 these broke.
I'm not sure if upstream meant to break them,
but either way we'd better avoid deprecated APIs.
Vladimír Čunát [Wed, 20 Aug 2025 07:11:38 +0000 (09:11 +0200)]
lib/selection: respect 0x20 settings even after TCP issues
Thankfully we can pull it from kr_request,
as policy.FLAGS() also sets it in there.
Hynek Šabacký [Mon, 24 Nov 2025 08:32:11 +0000 (09:32 +0100)]
distro: update apkg to prefer protobuf-compiler, fall back to protobuf-c-compiler
Vladimír Čunát [Tue, 2 Dec 2025 10:14:06 +0000 (11:14 +0100)]
ci: add pkg:ubuntu-25.10
Vladimír Čunát [Mon, 15 Sep 2025 06:28:06 +0000 (08:28 +0200)]
.gitlab-ci.yml: kill Ubuntu 24.10
It won't work anymore:
https://gitlab.nic.cz/knot/knot-resolver/-/jobs/
1482521
Vladimír Čunát [Fri, 1 Aug 2025 16:55:16 +0000 (18:55 +0200)]
Merge !1730: tests/integration/deckard: pull updates
Vladimír Čunát [Fri, 1 Aug 2025 16:29:28 +0000 (18:29 +0200)]
tests/integration/deckard: pull updates
- 224: hack compat with python >= 3.11 + libfaketime
- 225: val_nsec3_cnametocnamewctoposwc.rpl: reinstate NS in an answer
This one finally fixes deckard in CI.
Aleš Mrázek [Thu, 17 Jul 2025 08:32:41 +0000 (10:32 +0200)]
Merge branch 'release-5.7.6' into 'master-5'
Release 5.7.6
See merge request knot/knot-resolver!1723
Aleš Mrázek [Thu, 17 Jul 2025 07:56:28 +0000 (09:56 +0200)]
release 5.7.6
Vladimír Čunát [Thu, 17 Jul 2025 07:20:57 +0000 (09:20 +0200)]
Merge !1721: lib/dnssec: drop incorrect `requirement` and comment
Vladimír Čunát [Wed, 4 Jun 2025 07:32:14 +0000 (09:32 +0200)]
lib/dnssec: drop incorrect `requirement` and comment
I don't think this can happen on correct records,
due to the way that the root zone is. But we've seen
this assertion happen in real life, and attackers
might be able to misuse it to cause crashes.
Vladimír Čunát [Thu, 17 Jul 2025 07:15:16 +0000 (09:15 +0200)]
Merge !1720: lib/cache pkt_renew(): don't keep parts of packet header
Vladimír Čunát [Fri, 13 Jun 2025 13:27:10 +0000 (15:27 +0200)]
lib/cache pkt_renew(): don't keep parts of packet header
No idea why it's been done in this weird way since forever.
Vladimír Čunát [Thu, 17 Jul 2025 06:57:56 +0000 (08:57 +0200)]
Merge !1719: meson: avoid protoc-c, as it's deprecated
Vladimír Čunát [Wed, 4 Jun 2025 07:32:14 +0000 (09:32 +0200)]
meson: avoid protoc-c, as it's (reported as) deprecated
> `protoc-c` is deprecated. Please use `protoc` instead!
Vladimír Čunát [Fri, 13 Jun 2025 13:23:01 +0000 (15:23 +0200)]
Merge !1707: .gitlab-ci.yml: add pkg:alma-10
Vladimír Čunát [Thu, 5 Jun 2025 10:27:47 +0000 (12:27 +0200)]
.gitlab-ci.yml: add pkg:alma-10
Vladimír Čunát [Thu, 22 May 2025 17:13:11 +0000 (19:13 +0200)]
Merge !1692: ci pkg: update the distro list
Vladimír Čunát [Thu, 22 May 2025 17:00:09 +0000 (19:00 +0200)]
ci pkg: make the distro list up to date
Vladimír Čunát [Thu, 22 May 2025 16:10:38 +0000 (18:10 +0200)]
Merge !1690: distro/pkg/deb: use meson through debhelper
Jakub Ružička [Thu, 22 May 2025 12:35:18 +0000 (14:35 +0200)]
distro/pkg/deb: use meson through debhelper
Use standard debhelper as opposed to calling meson and ninja manually.
This mirrors v6 change and it fixes FTBFS on Ubuntu 25.04 in LaunchPad.
Aleš Mrázek [Thu, 24 Apr 2025 09:32:21 +0000 (11:32 +0200)]
Merge branch 'release-5.7.5' into 'master-5'
Release 5.7.5
See merge request knot/knot-resolver!1681
Aleš Mrázek [Thu, 24 Apr 2025 08:56:15 +0000 (10:56 +0200)]
AUTHORS update
Aleš Mrázek [Thu, 24 Apr 2025 08:42:34 +0000 (10:42 +0200)]
release 5.7.5
Vladimír Čunát [Thu, 24 Apr 2025 09:02:52 +0000 (11:02 +0200)]
Merge !1683: DoS: fix crashes unconfirmed on 5.x
Vladimír Čunát [Thu, 24 Apr 2025 08:58:17 +0000 (10:58 +0200)]
NEWS for the possibly DoS issue
It's been confirmed in practice for 6.x only so far.
Vladimír Čunát [Thu, 24 Apr 2025 08:58:16 +0000 (10:58 +0200)]
daemon/session2_tasklist_del(): be more defensive
See the 6.x commit
0646b6c3
Vladimír Čunát [Thu, 24 Apr 2025 08:58:16 +0000 (10:58 +0200)]
daemon/worker send_waiting(): be more defensive
See the 6.x commit
7210f16e
Vladimír Čunát [Thu, 24 Apr 2025 08:24:24 +0000 (10:24 +0200)]
Merge !1679: NEWS: merge duplicate sections
Vladimír Čunát [Thu, 24 Apr 2025 08:22:24 +0000 (10:22 +0200)]
NEWS: merge duplicate sections
Vladimír Čunát [Thu, 24 Apr 2025 08:17:57 +0000 (10:17 +0200)]
Merge !1678: misc 5.x backports
Aleš Mrázek [Thu, 10 Oct 2024 12:36:28 +0000 (14:36 +0200)]
lint: pylint and flake8 removed
(cherry picked from commit
d92fba4d12df38d50cc97daab4a4b81337bb57c5 )
It now fails on 5.x pytest, too:
https://gitlab.nic.cz/knot/knot-resolver/-/jobs/
1340121
Vladimír Čunát [Mon, 14 Apr 2025 09:13:32 +0000 (11:13 +0200)]
modules/stats: further improve latency measurements
libuv's updating the stamp just once per event loop
might be too coarse, as processing multiple packets
(e.g. DNSSEC validation) may take milliseconds together.
Of course we still don't measure e.g. the time when incoming
client requests stay in OS buffers.
(cherry picked from commit
5e6a02b3902ac98b327eca281ae70fa2bb9a9598 )
Vladimír Čunát [Mon, 14 Apr 2025 09:13:32 +0000 (11:13 +0200)]
lib: clarify the doc-comment for struct kr_query::timestamp
(cherry picked from commit
33151c4b5af57a9e51c998169b42ebe7e48af5fc )
Vladimír Čunát [Mon, 14 Apr 2025 09:13:32 +0000 (11:13 +0200)]
modules/stats: fix calculation of request's latency
(cherry picked from commit
b7cd7cbae773fecfca795d7f0ef064fa85aec59c )
Frantisek Tobias [Tue, 1 Apr 2025 12:03:13 +0000 (14:03 +0200)]
Doc: include jquery for sphinx version equal or greater to 2.*
(cherry picked from commit
2378b94d81e069b580eba55958adb1d4309de82c )
Jakub Ružička [Mon, 17 Mar 2025 12:19:59 +0000 (13:19 +0100)]
ci: pkg: add ubuntu 25.04
(cherry picked from commit
7da7083143b764bddab9402212676ac74ea6997b )
Vladimír Čunát [Wed, 26 Feb 2025 08:29:12 +0000 (09:29 +0100)]
validator: accept a confusing NODATA proof with insecure delegation
Honestly, I find it ugly and probably unintended,
but it's correctly signed and other vendors tend to accept it.
Example:
;; ->>HEADER<<- opcode: QUERY; status: NOERROR; id: 24204
;; Flags: qr aa rd; QUERY: 1; ANSWER: 0; AUTHORITY: 4; ADDITIONAL: 1
;; EDNS PSEUDOSECTION:
;; Version: 0; flags: do; UDP size: 4096 B; ext-rcode: NOERROR
;; QUESTION SECTION:
;; _domainkey.mail.cez.cz. TXT
;; AUTHORITY SECTION:
cez.cz. 3600 SOA ns10.cez.cz. netmaster.cez.cz.
2025021801 14400 3600 604800 7200
cez.cz. 3600 RRSIG SOA 10 2 3600
20250302073317 20250223063317 45620 cez.cz. JnAonhCOi234lF2A40lYaHcuKtxACKz8X6UFILSgSaK00xyXDk6gWDWo3nmMjXxBwgfP98Gaj8nLMqRZ7ezAEUfWi+5P4YCQzax5Habu3nKB+XKocIPMCHHMhOMf410w4Taz4N2rKgi1p71QkuujISi3JZWzqG4bqzot2cGL12w=
1vk9lupeivbv7dhsb7udm5da1hkd089j.cez.cz. 7200 NSEC3 1 0 1
ACB298B834ADA5FD 1vk9lupeivbv7dhsb7udm5da1hkd089k A NS HINFO MX AAAA SRV RRSIG CAA
1vk9lupeivbv7dhsb7udm5da1hkd089j.cez.cz. 7200 RRSIG NSEC3 10 3 7200
20250303115912 20250224105912 45620 cez.cz. OBW90lof86IoVsiuKkNEf4useG3fikE+npAVkpbiVsgMZWLHRNzAAlIU9wPMH5S4CWpnwoMVTaNtWJxegsG7cvCDZrjVVNOHE9hLOG2eG9f57vx/tVFTe4/DegO9KOyColOOYt4nt/uj7LTJZbzJY3Ev8I9971LEkFf5IxVwwPU=
(cherry picked from commit
91ca2921d39cc7a3de57a5db872f89974a4e7f39 )
Aleš Mrázek [Mon, 24 Mar 2025 12:36:08 +0000 (13:36 +0100)]
ci: update to new IMAGE_TAG
For 6.x we started using this TAG in commit
a1aa3a51a2ede
but there have been other IMAGE_TAG bumps in the meantime.
Here we'll need it for the deckard update in the next commit,
which is needed due to validator tweaks.
And to fix CI, let's do the tiny bump in the lua bindings
(no practical impact whatsoever due to struct alignment).
Vladimír Čunát [Tue, 25 Feb 2025 10:30:45 +0000 (11:30 +0100)]
tests: disable problematic config.http test
https://gitlab.nic.cz/knot/knot-resolver/-/issues/925
(cherry picked from commit
ff5d5024e5fd00054431349a4bf54acea484891a )
Aleš Mrázek [Wed, 19 Feb 2025 14:29:04 +0000 (15:29 +0100)]
ci: pkg: added debian 13
(cherry picked from commit
c26ada8041d60827887a05977364f5eab7e7fb12 )
Vladimír Čunát [Wed, 23 Apr 2025 14:04:08 +0000 (16:04 +0200)]
Merge !1652: daemon/http: fix stuck HTTP status code
Vladimír Čunát [Wed, 23 Apr 2025 12:48:16 +0000 (14:48 +0200)]
daemon/http: fix stuck HTTP status code
backported from v6.0.2
12f5b8efae82fe013
Two DoH tests fail now on 5.x and got disabled,
but I believe that the issue getting fixed is more serious,
especially when using a reverse proxy.
Aleš Mrázek [Fri, 4 Apr 2025 10:42:42 +0000 (12:42 +0200)]
Merge branch '5-ci-docker-buildx-stop' into 'master-5'
v5.x: ci: docker: stop buildx after cross-platform build
See merge request knot/knot-resolver!1675
Aleš Mrázek [Fri, 4 Apr 2025 10:42:42 +0000 (12:42 +0200)]
v5.x: ci: docker: stop buildx after cross-platform build
Vladimír Čunát [Tue, 19 Nov 2024 13:36:37 +0000 (14:36 +0100)]
Merge !1635: v5.x: ci: docker: specify platform explicitly
Aleš Mrázek [Tue, 19 Nov 2024 11:06:33 +0000 (12:06 +0100)]
.gitlab-ci.yml: docker: specify platform explicitly
Aleš Mrázek [Tue, 19 Nov 2024 11:05:08 +0000 (12:05 +0100)]
DockerFile: update KnotDNS version
Aleš Mrázek [Tue, 19 Nov 2024 11:03:47 +0000 (12:03 +0100)]
DockerFile: update to Debian 12
Vladimír Čunát [Tue, 19 Nov 2024 10:01:54 +0000 (11:01 +0100)]
Merge !1634: v5.x: ci: docker cross-platform build, tests and deploy
Aleš Mrázek [Tue, 19 Nov 2024 10:01:54 +0000 (11:01 +0100)]
v5.x: ci: docker cross-platform build, tests and deploy
Vladimír Čunát [Fri, 16 Aug 2024 12:34:58 +0000 (14:34 +0200)]
Merge !1593: SUSE fixes to fix Leap 15.5 and Tumbleweed in COPR
Vladimír Čunát [Fri, 16 Aug 2024 12:29:19 +0000 (14:29 +0200)]
doc/quickstart-install.rst: port instructions from our homepage
We were updating it just a while ago.
Vladimír Čunát [Fri, 16 Aug 2024 12:29:19 +0000 (14:29 +0200)]
Merge master-5 into suse-fixes-v5
It's good to keep these based on the last release tag
(as that's what we use in packages) but for CI we need to sync.
Jakub Ružička [Thu, 15 Aug 2024 14:36:42 +0000 (16:36 +0200)]
distro/pkg/rpm: disable docs build on openSUSE
Improve macros handling docs build.
Jakub Ružička [Thu, 15 Aug 2024 16:41:46 +0000 (18:41 +0200)]
distro/pkg/rpm: provide knot-resolver user and group on openSUSE
Jakub Ružička [Thu, 15 Aug 2024 14:39:48 +0000 (16:39 +0200)]
scripts/upstream-version.sh: check latest 5.x version
Also bump apkg compat to latest 4 (no changes needed).
Vladimír Čunát [Fri, 2 Aug 2024 19:16:18 +0000 (21:16 +0200)]
Merge !1582: bench/bench_lru: make it build again, and check it in CI (v5)