]>
git.ipfire.org Git - thirdparty/knot-resolver.git/log
Vladimír Čunát [Mon, 7 Oct 2019 16:15:50 +0000 (18:15 +0200)]
daemon/main: engine: static -> malloc()
Tomas Krizek [Mon, 7 Oct 2019 12:28:42 +0000 (12:28 +0000)]
Merge branch 'release-4-2-2' into 'master'
release 4.2.2
See merge request knot/knot-resolver!875
Tomas Krizek [Mon, 7 Oct 2019 11:21:30 +0000 (13:21 +0200)]
ci: remove pkg:epel-7 pkg:fedora-29 jobs
These jobs started to suddenly fail inexplicably. They also
require privileged mode and are a mess in general
Build and packaging for these distros is handled by nightly OBS builds
nowadays, so let's remove these.
Perhaps in the future, it might make sense ot bring back some sensible
CentOS 7 build (without the packaging part) to make sure we keep
compatibility with older GnuTLS on every commit / MR, instead of
nightly.
Petr Špaček [Fri, 4 Oct 2019 06:56:02 +0000 (08:56 +0200)]
release 4.2.2
Petr Špaček [Fri, 4 Oct 2019 06:52:05 +0000 (06:52 +0000)]
Merge branch 'lua-libknot-regression' into 'master'
lua bindings: fix a regression from
b42195a2
Closes #514
See merge request knot/knot-resolver!873
Vladimír Čunát [Mon, 30 Sep 2019 11:20:43 +0000 (13:20 +0200)]
lua bindings: fix a regression from
b42195a2
I'm really sorry; I didn't notice and it only hit parts that
*apparently* aren't tested normally. Only 32-bit systems would be
affected, due to the structure only changing ABI on 32-bit systems.
Vladimír Čunát [Wed, 2 Oct 2019 13:13:22 +0000 (15:13 +0200)]
modules/sd_watchdog nitpick: fix printf on some systems
The integer length didn't match on normal 32-bit linux.
Tomas Krizek [Mon, 30 Sep 2019 11:26:31 +0000 (11:26 +0000)]
Merge branch 'packaging-updates' into 'master'
distro/arch: add lua51-cqueues optional dependency
See merge request knot/knot-resolver!871
Tomas Krizek [Mon, 30 Sep 2019 08:20:27 +0000 (10:20 +0200)]
distro/arch: add lua51-cqueues optional dependency
Tomas Krizek [Thu, 26 Sep 2019 15:01:17 +0000 (15:01 +0000)]
Merge branch 'minor-fixes' into 'master'
minor fixes
See merge request knot/knot-resolver!870
Tomas Krizek [Thu, 26 Sep 2019 13:42:36 +0000 (15:42 +0200)]
docker: use latest Knot DNS
Tomas Krizek [Thu, 26 Sep 2019 13:42:15 +0000 (15:42 +0200)]
ci: keep OBS_REPO default value for distrotest jobs
Tomas Krizek [Thu, 26 Sep 2019 12:12:57 +0000 (12:12 +0000)]
Merge branch 'release-4-2-1' into 'master'
release 4.2.1
See merge request knot/knot-resolver!869
Tomas Krizek [Wed, 25 Sep 2019 12:11:56 +0000 (14:11 +0200)]
release 4.2.1
Tomas Krizek [Thu, 26 Sep 2019 11:55:37 +0000 (13:55 +0200)]
doc/upgrading: add note about knot-resolver-dbg
Petr Špaček [Wed, 25 Sep 2019 12:02:05 +0000 (12:02 +0000)]
Merge branch 'nsrep-fixes' into 'master'
nsrep fixes
Closes #497
See merge request knot/knot-resolver!868
Vladimír Čunát [Tue, 24 Sep 2019 13:17:41 +0000 (15:17 +0200)]
lib/nsrep: randomize the order of NS names
... as input into the *unchanged* algorithm (which is ugly).
This partially addresses the problem attempted by reverted commit,
and it also improves some other properties of the algorithm.
Vladimír Čunát [Tue, 24 Sep 2019 12:51:49 +0000 (14:51 +0200)]
Revert "nsrep: allow inclusion of good nameservers if there's space in selection"
This reverts commit
196ebd4f0b3a55830b1e313fa82abfd8c290eedd .
It was buggy, and I can't simply recover the intended effect.
Petr Špaček [Mon, 23 Sep 2019 15:03:41 +0000 (15:03 +0000)]
Merge branch 'validate-trim-ttls' into 'master'
validator: trim TTLs by RRSIG's expiration and original TTL
Closes #319
See merge request knot/knot-resolver!866
Vladimír Čunát [Tue, 3 Sep 2019 14:33:50 +0000 (16:33 +0200)]
validator: trim TTLs by RRSIG's expiration and original TTL
A down-side is that validation can now modify the validated RRset
on success. I checked all transitive call sites that it's OK.
The change is pretty simple; I just hand-tested it a bit with faketime.
Tomas Krizek [Fri, 20 Sep 2019 14:12:20 +0000 (14:12 +0000)]
Merge branch 'policy-special-use-dnames' into 'master'
modules/policy: DENY forgotten special-use domains
See merge request knot/knot-resolver!855
Vladimír Čunát [Tue, 17 Sep 2019 15:42:05 +0000 (17:42 +0200)]
modules/policy: DENY home.arpa. and local. domains
- home.arpa.: 4. from https://tools.ietf.org/html/rfc8375#section-4
- local.: 4. from https://tools.ietf.org/html/rfc6762#section-22.1
Well, it's just an approximation... if the user specifies a forwarding
policy, any special names will also get forwarded, even though the RFC
says not to. And this code will also reply NXDOMAIN to home.arpa. DS.
Some of these DENY rules are perhaps unnecessary, but for now we keep
the same approach. For arguments see the MR 855 thread and linked ML.
Tomas Krizek [Fri, 20 Sep 2019 12:10:45 +0000 (12:10 +0000)]
Merge branch 'libknot-2.9' into 'master'
add compatibility with libknot 2.9
See merge request knot/knot-resolver!864
Vladimír Čunát [Fri, 6 Sep 2019 12:33:02 +0000 (14:33 +0200)]
libknot compatibility: knot_edns_get_option()
Vladimír Čunát [Fri, 6 Sep 2019 10:10:12 +0000 (12:10 +0200)]
lua bindings: compatibility with both libknot versions
Vladimír Čunát [Fri, 6 Sep 2019 07:56:36 +0000 (09:56 +0200)]
meson: block compilation with future knot releases
I think it's safer to block it by default. For developer convenience,
let's allow pre-release variants of one further minor version.
Vladimír Čunát [Fri, 6 Sep 2019 07:54:32 +0000 (09:54 +0200)]
add compatibility with libknot 2.9
It's fairly easy to keep keep compatible with both 2.8 and 2.9,
so I'd go for that for now, as it may be practical.
Tomas Krizek [Fri, 20 Sep 2019 08:12:43 +0000 (08:12 +0000)]
Merge branch 'prefill-config' into 'master'
prefill module: allow a different module-loading style
Closes #506
See merge request knot/knot-resolver!863
Vladimír Čunát [Thu, 5 Sep 2019 14:38:59 +0000 (16:38 +0200)]
prefill module: allow a different module-loading style
Otherwise plain `modules = { 'prefill' }` will error out,
which is surprising wrt. to style used/allowed by other modules.
Tomas Krizek [Mon, 9 Sep 2019 14:16:38 +0000 (14:16 +0000)]
Merge branch 'ci-updates' into 'master'
ci updates
See merge request knot/knot-resolver!865
Tomas Krizek [Mon, 9 Sep 2019 13:17:55 +0000 (15:17 +0200)]
ci: refuse respdiff jobs when reference is unstable
Tomas Krizek [Mon, 9 Sep 2019 12:48:21 +0000 (14:48 +0200)]
distro/tests: use upstream leap15 box
Leap15 box was (allegedly temporarily) removed from vagrantcloud.
This is official upstream box generated by openSUSE that should be the
same as the one that used to be available on vagrantcloud.
Vladimír Čunát [Fri, 23 Aug 2019 09:12:09 +0000 (09:12 +0000)]
Merge !861: modules/prefill: resigned expired RRSIGS in test zones
Fixes #496
Ivana Krumlova [Thu, 22 Aug 2019 14:18:54 +0000 (16:18 +0200)]
modules/prefill: resigned expired RRSIGS in test zones
Fixes: #496
Petr Špaček [Fri, 16 Aug 2019 08:27:20 +0000 (08:27 +0000)]
Merge branch 'cd-servfail' into 'master'
lib/resolve answer_finalize: don't SERVFAIL bogus +cd
See merge request knot/knot-resolver!860
Vladimír Čunát [Wed, 14 Aug 2019 08:48:46 +0000 (10:48 +0200)]
lib/resolve answer_finalize: don't SERVFAIL bogus +cd
As kresd works now, typically we do not know whether these records are
bogus, as with +cd we do not attempt validation. Still, it's possible
that we have those records in cache from an occasion without +cd, in
which case we know they're bogus and this regression happened.
The potential impact of this issue seems minimal.
Tomas Krizek [Mon, 12 Aug 2019 10:25:42 +0000 (10:25 +0000)]
Merge branch 'rebinding-fixes' into 'master'
Rebinding fixes
See merge request knot/knot-resolver!859
Vladimír Čunát [Fri, 9 Aug 2019 13:21:03 +0000 (15:21 +0200)]
rebinding NEWS
Vladimír Čunát [Fri, 9 Aug 2019 10:05:51 +0000 (12:05 +0200)]
rebinding: change/fix when triggered inside sub-query
This avoids getting into an inconsistent state of the request (assert),
and it also allows some real-life cases to succeed without using
a forbidden address in any way (even though they *are* weird).
I can still imagine weird setups where a request gets failed even
though it would be resolvable without *using* a forbidden address,
but none of these seem reasonable anyway (or common in practice).
Vladimír Čunát [Fri, 9 Aug 2019 10:04:29 +0000 (12:04 +0200)]
rebinding nitpick: respect ALLOW_LOCAL flag
Some people might want the rebinding module generally but still use
policy to allow local addresses in some specific cases.
Tomas Krizek [Mon, 12 Aug 2019 08:01:28 +0000 (08:01 +0000)]
Merge branch 'ubuntu-dbg' into 'master'
distro/deb: generate *-dbg symbols package explicitly
See merge request knot/knot-resolver!858
Tomas Krizek [Fri, 9 Aug 2019 11:12:45 +0000 (13:12 +0200)]
modules/prefill: temporarily disable prefill tests
Related #496
Tomas Krizek [Thu, 8 Aug 2019 08:27:25 +0000 (10:27 +0200)]
distro/deb: generate *-dbg symbols package explicitly
Tomas Krizek [Mon, 5 Aug 2019 16:31:59 +0000 (16:31 +0000)]
Merge branch 'ci-obs-release' into 'master'
ci: fix obs:release job
See merge request knot/knot-resolver!857
Tomas Krizek [Mon, 5 Aug 2019 16:18:52 +0000 (18:18 +0200)]
ci: fix obs:release job
Tomas Krizek [Mon, 5 Aug 2019 14:46:23 +0000 (14:46 +0000)]
Merge branch 'release-4.2.0' into 'master'
Release 4.2.0
See merge request knot/knot-resolver!856
Tomas Krizek [Mon, 5 Aug 2019 13:57:33 +0000 (15:57 +0200)]
bump version to 4.2.0
Tomas Krizek [Mon, 5 Aug 2019 13:52:35 +0000 (15:52 +0200)]
ci: create proper release tarball in archive job
Vladimír Čunát [Mon, 5 Aug 2019 13:22:07 +0000 (15:22 +0200)]
daemon/udp_queue: appease the linker if not optimized
Vladimír Čunát [Mon, 5 Aug 2019 11:58:41 +0000 (13:58 +0200)]
tweak NEWS for tomorrow release
Vladimír Čunát [Mon, 5 Aug 2019 11:52:01 +0000 (13:52 +0200)]
meson.build: disable sendmmsg by default for now
Most users probably aren't much interested in slight reduction of CPU
usage, and we want to give it some more testing before enabling.
Vladimír Čunát [Mon, 5 Aug 2019 13:00:36 +0000 (13:00 +0000)]
Merge !825: policy: support forwarding to multiple targets
Tomas Krizek [Mon, 8 Jul 2019 15:33:10 +0000 (17:33 +0200)]
doc: add Quick Reference section to User guide
Tomas Krizek [Tue, 16 Jul 2019 10:05:03 +0000 (12:05 +0200)]
distro/*: add lua-psl dependency
Tomas Krizek [Mon, 15 Jul 2019 17:26:12 +0000 (19:26 +0200)]
modules/policy: add slice_randomize_psl() test
Tomas Krizek [Mon, 15 Jul 2019 15:53:50 +0000 (17:53 +0200)]
modules/policy: basic test_slice test
Tomas Krizek [Mon, 15 Jul 2019 15:44:36 +0000 (17:44 +0200)]
modules/policy: document policy.slice()
Tomas Krizek [Mon, 15 Jul 2019 15:44:28 +0000 (17:44 +0200)]
modules/policy: add policy.slice() function
Vladimír Čunát [Thu, 25 Jul 2019 09:57:12 +0000 (09:57 +0000)]
Merge !838: modules/refuse_nord: refuse queries without RD bit set
Tomas Krizek [Wed, 24 Jul 2019 10:20:24 +0000 (12:20 +0200)]
modules/stats: adjust test
Tomas Krizek [Wed, 24 Jul 2019 10:00:51 +0000 (12:00 +0200)]
doc/build: clarify documentation about tests
Tomas Krizek [Wed, 24 Jul 2019 09:47:00 +0000 (11:47 +0200)]
modules/refuse_nord: document usage
Tomas Krizek [Wed, 24 Jul 2019 08:38:18 +0000 (10:38 +0200)]
modules/refuse_nord: add test
Tomas Krizek [Sun, 7 Jul 2019 10:53:01 +0000 (12:53 +0200)]
modules/refuse_nord: refuse queries without RD bit set
Refusing to answer queries without RD bit makes it harder
to read what data is present in resolver's cache.
Tomas Krizek [Tue, 23 Jul 2019 13:22:45 +0000 (13:22 +0000)]
Merge branch 'rebinding_fix' into 'master'
avoid a false-positive assert from rebinding module
See merge request knot/knot-resolver!851
Vladimír Čunát [Mon, 27 Aug 2018 15:10:50 +0000 (17:10 +0200)]
kr_request: remove ::additional
Somehow I didn't notice this field when adding ::add_selected.
We probably never put anything into answer's ADDITIONAL,
so noone's noticed a problem until now.
Vladimír Čunát [Wed, 10 Jul 2019 08:25:49 +0000 (10:25 +0200)]
lib/resolve answer_finalize: simplify a bit of code
Vladimír Čunát [Wed, 10 Jul 2019 08:17:05 +0000 (10:17 +0200)]
lib/resolve answer_finalize: separate a special case
We currently allow modules to produce a packet beforehand,
but the possibility was rather implicit in this part of code.
In particular, we might possible trigger a false alarm in
assert(answer->current <= KNOT_ANSWER)
Tomas Krizek [Tue, 23 Jul 2019 07:54:24 +0000 (07:54 +0000)]
Merge branch 'ci-extract-tar' into 'master'
ci: respdiff - extract multiple archives
See merge request knot/knot-resolver!853
Tomas Krizek [Mon, 22 Jul 2019 15:27:04 +0000 (17:27 +0200)]
ci: respdiff - extract multiple archives
Vladimír Čunát [Mon, 22 Jul 2019 10:22:10 +0000 (10:22 +0000)]
Merge !850: daemon/tls: fix handling of GNUTLS_E_AGAIN
Closes #489
Tomas Krizek [Fri, 19 Jul 2019 13:25:38 +0000 (15:25 +0200)]
daemon/tls: fix handling of GNUTLS_E_AGAIN
The code incorrectly assumes GNUTLS_E_AGAIN can only be caused
by reading the entire libuv buffer. Legitime causes of GNUTLS_E_AGAIN
wouldn't be processed correctly. These could be caused by a new
session ticket sent by the server.
Fixes #489
Petr Špaček [Sat, 20 Jul 2019 20:04:38 +0000 (20:04 +0000)]
Merge branch 'mod_api_clarif' into 'master'
modules: fix typo in link to upgrading guide
See merge request knot/knot-resolver!852
Petr Špaček [Sat, 20 Jul 2019 20:05:17 +0000 (16:05 -0400)]
modules: fix typo in link to upgrading guide
Tomas Krizek [Fri, 19 Jul 2019 07:53:58 +0000 (07:53 +0000)]
Merge branch 'ci-add-debian10' into 'master'
ci: add distrotest:debian10
See merge request knot/knot-resolver!848
Tomas Krizek [Thu, 18 Jul 2019 13:48:58 +0000 (15:48 +0200)]
ci: add distrotest:debian10
Tomas Krizek [Thu, 18 Jul 2019 13:24:46 +0000 (13:24 +0000)]
Merge branch 'ci-update' into 'master'
ci: update
See merge request knot/knot-resolver!847
Tomas Krizek [Thu, 18 Jul 2019 12:45:18 +0000 (14:45 +0200)]
ci/README: add --no-cache to docker builds to force pkg update
Tomas Krizek [Thu, 18 Jul 2019 10:59:26 +0000 (12:59 +0200)]
ci: fix distrotests for testing repo
Tomas Krizek [Thu, 18 Jul 2019 12:43:03 +0000 (14:43 +0200)]
ci/debian-buster: add dependencies from knot-resolver-testing OBS repo
Tomas Krizek [Thu, 18 Jul 2019 12:29:29 +0000 (14:29 +0200)]
ci/debian-stable: delete old image
Tomas Krizek [Thu, 18 Jul 2019 12:28:11 +0000 (14:28 +0200)]
ci/debian-buster: add lua-psl optional dependnecy
Tomas Krizek [Thu, 18 Jul 2019 12:27:46 +0000 (14:27 +0200)]
ci/debian-buster: update to released version
Petr Špaček [Wed, 17 Jul 2019 09:03:57 +0000 (09:03 +0000)]
Merge branch 'perf-sendmmsg-answ' into 'master'
use sendmmsg syscall towards UDP clients
See merge request knot/knot-resolver!846
Vladimír Čunát [Fri, 12 Jul 2019 14:22:57 +0000 (16:22 +0200)]
daemon: use sendmmsg towards UDP clients
Vladimír Čunát [Wed, 3 Jul 2019 11:30:04 +0000 (13:30 +0200)]
main: better support for profiling
Petr Špaček [Wed, 10 Jul 2019 14:06:44 +0000 (14:06 +0000)]
Merge branch 'release-410' into 'master'
Release 4.1.0
See merge request knot/knot-resolver!845
Petr Špaček [Wed, 10 Jul 2019 12:22:44 +0000 (14:22 +0200)]
release 4.1.0
Petr Špaček [Wed, 10 Jul 2019 13:30:51 +0000 (15:30 +0200)]
gc: reformat source code to conform to Linux codestyle
Main motivation is getting rid of tab-space mix.
Reformated using github/torvalds/linux/master/scripts/Lindent.
Tomas Krizek [Tue, 2 Jul 2019 14:44:38 +0000 (16:44 +0200)]
systemd/kres-cache-gc: make service more robust
Tomas Krizek [Tue, 2 Jul 2019 14:11:43 +0000 (16:11 +0200)]
kr_cache_gc: fix double-free for failed/unifinished txns
Vladimír Čunát [Tue, 2 Jul 2019 09:22:04 +0000 (11:22 +0200)]
gc: better approximation of the space to free
Vladimír Čunát [Tue, 2 Jul 2019 09:21:09 +0000 (11:21 +0200)]
gc: adjust DEBUG output
Tomas Krizek [Mon, 1 Jul 2019 16:08:40 +0000 (18:08 +0200)]
distro/tests: check kres-cache-gc is started
Tomas Krizek [Mon, 1 Jul 2019 16:02:42 +0000 (18:02 +0200)]
kr_cache_gc: update docs
Tomas Krizek [Mon, 1 Jul 2019 15:32:53 +0000 (17:32 +0200)]
systemd: add kres-cache-gc.service
Tomas Krizek [Mon, 1 Jul 2019 10:28:34 +0000 (12:28 +0200)]
utils/cache_gc: meson - rename to kres-cache-gc
Vladimír Čunát [Thu, 27 Jun 2019 14:50:13 +0000 (16:50 +0200)]
gc: fix a lint warning
I think the condition is still quite well readable even though much
shorter than my original !(kd[i - 1] == 0 && kd[i - 2] == 0)
Vladimír Čunát [Thu, 27 Jun 2019 14:23:46 +0000 (16:23 +0200)]
gc: handle the NS multi-entries much better
Vladimír Čunát [Thu, 27 Jun 2019 13:51:49 +0000 (15:51 +0200)]
gc: clean warnings with -DDEBUG