]>
git.ipfire.org Git - thirdparty/knot-resolver.git/log
Petr Špaček [Tue, 9 Jul 2019 12:20:05 +0000 (12:20 +0000)]
Merge branch 'zimport' into 'master'
Zone import/prefill
Closes #474
See merge request knot/knot-resolver!840
Ivana Krumlová [Tue, 9 Jul 2019 12:17:54 +0000 (14:17 +0200)]
NEWS: avoid crashing of preffil on empty file
Ivana Krumlová [Mon, 8 Jul 2019 11:29:46 +0000 (13:29 +0200)]
prefill: tests for zone import
Ivana Krumlová [Thu, 4 Jul 2019 15:06:02 +0000 (17:06 +0200)]
prefill: check correct origin attribute
name of SOA record must be "."
Ivana Krumlová [Thu, 4 Jul 2019 13:16:23 +0000 (15:16 +0200)]
zimport: avoid crash on empty zone file
Fixes: #474
Ivana Krumlová [Thu, 4 Jul 2019 12:42:55 +0000 (14:42 +0200)]
zimport: avoid crash on zi_state_parsing() failure
Tomas Krizek [Tue, 9 Jul 2019 09:25:46 +0000 (09:25 +0000)]
Merge branch 'ci-histogram-rcode' into 'master'
ci: collect RCODE histograms from respdiff
See merge request knot/knot-resolver!841
Tomas Krizek [Tue, 9 Jul 2019 07:56:51 +0000 (09:56 +0200)]
ci: collect RCODE histograms from respdiff
Petr Špaček [Wed, 3 Jul 2019 15:36:33 +0000 (15:36 +0000)]
Merge branch 'nitpicks' into 'master'
Nitpicks in Lua binding generation + pkt DO read operation
See merge request knot/knot-resolver!830
Vladimír Čunát [Fri, 17 May 2019 17:06:06 +0000 (19:06 +0200)]
kres-gen: make it work with static libkres as well
Petr Špaček [Fri, 21 Jun 2019 11:30:16 +0000 (13:30 +0200)]
daemon/lua: add ability to read DO bit from packet
Petr Špaček [Fri, 21 Jun 2019 10:57:13 +0000 (12:57 +0200)]
kres-gen: improve debugability in case of missing files or symbols
Petr Špaček [Wed, 3 Jul 2019 13:43:16 +0000 (13:43 +0000)]
Merge branch 'kr_cache_gc' into 'master'
cache garbage collector
Closes #257
See merge request knot/knot-resolver!817
Petr Špaček [Wed, 3 Jul 2019 12:59:44 +0000 (14:59 +0200)]
gc: reformat source code to conform to Linux codestyle
Main motivation is getting rid of tab-space mix.
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:44:35 +0000 (16:44 +0200)]
fixup! gc: handle the NS multi-entries much better
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
Petr Špaček [Thu, 27 Jun 2019 12:12:28 +0000 (14:12 +0200)]
gc: cleanup warnings from GCC 9 compiler
Petr Špaček [Tue, 25 Jun 2019 11:01:06 +0000 (13:01 +0200)]
gc: keep root and TLD data in cache as much as possible
Petr Špaček [Tue, 25 Jun 2019 11:00:22 +0000 (13:00 +0200)]
gc: delete inconsistent entries from cache instead of skipping them
Petr Špaček [Tue, 25 Jun 2019 10:55:28 +0000 (12:55 +0200)]
gc: skip over "VERS" metadata entry in cache
Petr Špaček [Tue, 25 Jun 2019 10:44:42 +0000 (12:44 +0200)]
gc: fix kr_gc_key_consistent to work with root zone NSECs
Vladimír Čunát [Thu, 20 Jun 2019 12:57:52 +0000 (14:57 +0200)]
utils/cache_gc: adapt for faster checking of usage
- don't print a line in every checking cycle
- don't exit when cache isn't found
- reduce recommended interval to 10s (compromise)
- don't increase cache size (but keep the code for now)
Vladimír Čunát [Thu, 20 Jun 2019 12:57:23 +0000 (14:57 +0200)]
fixup! utils/cache_gc: rename daemon to kres_cache_gc
Vladimír Čunát [Mon, 17 Jun 2019 11:31:17 +0000 (13:31 +0200)]
utils/cache_gc: more lint fixes
I can't see any real benefit of floating-point in the amount_tofree
computation; we could use round(), but it doesn't seem significant.
Vladimír Čunát [Mon, 17 Jun 2019 11:11:07 +0000 (13:11 +0200)]
utils/cache_gc lint: stricter parsing of CLI integers
For example, "10foo" will no longer be accepted as number 10.
Tomas Krizek [Mon, 17 Jun 2019 09:51:55 +0000 (11:51 +0200)]
utils/cache_gc: meson - add sources to c_lint
Tomas Krizek [Mon, 17 Jun 2019 09:39:46 +0000 (11:39 +0200)]
utils/cache_gc: rename daemon to kres_cache_gc
Tomas Krizek [Mon, 17 Jun 2019 08:52:56 +0000 (10:52 +0200)]
client: move under utils directory
Vladimír Čunát [Fri, 14 Jun 2019 14:55:15 +0000 (16:55 +0200)]
fixup! lib/cache: make entry_h_consistent() generic
Vladimír Čunát [Fri, 14 Jun 2019 12:59:07 +0000 (14:59 +0200)]
utils/kr_cache_gc: minor nitpicks
It should be no real change, just better readability, hopefully.
Vladimír Čunát [Fri, 14 Jun 2019 12:56:48 +0000 (14:56 +0200)]
utils/kr_cache_gc: support NSEC3 (aggressive) RRs
Vladimír Čunát [Fri, 14 Jun 2019 12:48:21 +0000 (14:48 +0200)]
lib/cache: make entry_h_consistent() generic
Basically all use cases get renamed to *_E(), except one in utils/kr_cache_gc.
It was perhaps confusing that this name only applied to 'E' entries.
Tomas Krizek [Thu, 13 Jun 2019 15:35:58 +0000 (17:35 +0200)]
doc: document cache garbage collector
Tomas Krizek [Thu, 13 Jun 2019 11:53:58 +0000 (13:53 +0200)]
utils/kr_cache_gc: fix lint:pedantic
Tomas Krizek [Thu, 16 May 2019 11:43:33 +0000 (13:43 +0200)]
distro: package kr_cache_gc
Tomas Krizek [Thu, 16 May 2019 10:29:05 +0000 (12:29 +0200)]
utils/kr_cache_gc: add params for configuring cache
Tomas Krizek [Wed, 15 May 2019 16:06:15 +0000 (18:06 +0200)]
utils/kr_cache_gc: set default rw_txn_items to 100
Tomas Krizek [Wed, 15 May 2019 16:05:41 +0000 (18:05 +0200)]
utils/kr_cache_gc: re-initialize lmdb txn in case of error
Tomas Krizek [Wed, 15 May 2019 16:04:58 +0000 (18:04 +0200)]
utils/kr_cache_gc: skip invalid entries during iteration
Tomas Krizek [Wed, 15 May 2019 14:12:51 +0000 (16:12 +0200)]
kr_cache_gc: build with meson
Libor Peltan [Fri, 11 May 2018 14:20:58 +0000 (16:20 +0200)]
kr_cache_gc: randomized deleting of parts of huge categories
Libor Peltan [Fri, 11 May 2018 14:20:28 +0000 (16:20 +0200)]
kr_cache_gc: implemented dry-run (only occupation watching mode)
Libor Peltan [Fri, 4 May 2018 17:06:09 +0000 (19:06 +0200)]
kr_cache_gc: improvements, mostly categories
Libor Peltan [Fri, 4 May 2018 13:27:16 +0000 (15:27 +0200)]
kr_cache_gc: implemented categories, code split and cleanup
categories: different level of what should be deleted based on DB usage
Libor Peltan [Fri, 27 Apr 2018 13:15:11 +0000 (15:15 +0200)]
kr_cache_gc: increasing mapsize if the cache is full
Libor Peltan [Fri, 27 Apr 2018 12:09:39 +0000 (14:09 +0200)]
kr_cache_gc: little improvements
Libor Peltan [Fri, 20 Apr 2018 11:42:54 +0000 (13:42 +0200)]
kr_cache_gc: separated DB transactions to prevent blocking; config; bugfix
Libor Peltan [Fri, 20 Apr 2018 08:44:32 +0000 (10:44 +0200)]
kr_cache_gc: added optional interval of infinite periodic action
Libor Peltan [Fri, 20 Apr 2018 08:21:26 +0000 (10:21 +0200)]
kr_cache_gc: separated main function
Libor Peltan [Sun, 15 Apr 2018 10:47:28 +0000 (12:47 +0200)]
kr_cache_gc: UI improvements
Libor Peltan [Fri, 13 Apr 2018 13:50:32 +0000 (15:50 +0200)]
kr_cache_gc: initial commit
Petr Špaček [Wed, 3 Jul 2019 07:34:51 +0000 (07:34 +0000)]
Merge branch 'systemd-kill' into 'master'
systemd: kill kresd@* service if unresponsive when stopping
See merge request knot/knot-resolver!837
Tomas Krizek [Tue, 2 Jul 2019 15:43:41 +0000 (17:43 +0200)]
systemd: kill kresd@* service if unresponsive when stopping
Vladimír Čunát [Mon, 1 Jul 2019 16:39:53 +0000 (16:39 +0000)]
Merge !836: sandbox: fix missing default class in resolve() function
Petr Špaček [Mon, 1 Jul 2019 16:00:53 +0000 (18:00 +0200)]
sandbox: fix missing default class in resolve() function
Regression in
19ef77d1e (unreleased): Default value IN for qclass
parameter was missing. Also consistently use A as default for qtype.
Tomas Krizek [Thu, 27 Jun 2019 16:09:05 +0000 (16:09 +0000)]
Merge branch 'ci-nitpicks' into 'master'
ci: nitpicks
See merge request knot/knot-resolver!835
Tomas Krizek [Thu, 27 Jun 2019 13:06:51 +0000 (15:06 +0200)]
distro/tests: separate ansible role for repo conf
Tomas Krizek [Thu, 27 Jun 2019 11:43:41 +0000 (13:43 +0200)]
ci: rename log to vagrant.log.txt
Tomas Krizek [Thu, 27 Jun 2019 11:43:17 +0000 (13:43 +0200)]
ci: support tagged version matching in obs:build:all
Petr Špaček [Thu, 27 Jun 2019 11:15:41 +0000 (11:15 +0000)]
Merge branch 'cache-pkt-minimal-ranges' into 'master'
lib/cache: no aggressive caching on minimal NSEC* ranges
See merge request knot/knot-resolver!826
Petr Špaček [Tue, 25 Jun 2019 16:55:41 +0000 (18:55 +0200)]
tests: integration test for minimal NSEC3 range
Vladimír Čunát [Wed, 12 Jun 2019 14:26:39 +0000 (16:26 +0200)]
lib/cache: no aggressive caching on minimal NSEC* ranges
We use packet cache instead. Also do the same on some kinds of weird
RRsets, as even there some caching should be better than none at all.
This "incidentally" works around all known cases of DVE-2018-0003.
Tomas Krizek [Wed, 26 Jun 2019 12:33:48 +0000 (12:33 +0000)]
Merge branch 'ci-nitpicks' into 'master'
ci: nitpicks & minor distrotests fixes
See merge request knot/knot-resolver!834
Tomas Krizek [Wed, 26 Jun 2019 12:10:58 +0000 (14:10 +0200)]
distro/tests: handle deprecation warnings
Tomas Krizek [Wed, 26 Jun 2019 11:57:34 +0000 (13:57 +0200)]
distro/tests: increase memory to 1GB to avoid potential issues
Tomas Krizek [Wed, 26 Jun 2019 11:53:02 +0000 (13:53 +0200)]
distro/tests: fix fedora issue (low memory)
Tomas Krizek [Wed, 26 Jun 2019 10:47:11 +0000 (12:47 +0200)]
ci: improve version mismatch detection for obs:build:all
Tomas Krizek [Tue, 25 Jun 2019 08:54:48 +0000 (10:54 +0200)]
ci/travis: don't hammer API when state is created/started
Tomas Krizek [Tue, 25 Jun 2019 08:02:14 +0000 (10:02 +0200)]
ci: fix concurrent ditrotests
Vladimír Čunát [Tue, 25 Jun 2019 15:27:08 +0000 (15:27 +0000)]
Merge !827: send EDNS with SERVFAILs
e.g. on validation failures. Closes #180
Vladimír Čunát [Mon, 24 Jun 2019 16:51:07 +0000 (18:51 +0200)]
lib/resolve nitpick: fix lint after the parent commit
Returning void isn't allowed, apparently.
Vladimír Čunát [Mon, 24 Jun 2019 16:13:16 +0000 (18:13 +0200)]
lib/resolve: failing states in answer finalization
Mainly reduce duplication of state and request->state,
and slightly reorganize the code.
Vladimír Čunát [Mon, 24 Jun 2019 15:52:26 +0000 (17:52 +0200)]
don't set TC if omitting an ADDITIONAL record
This is a nitpick, basically.
Vladimír Čunát [Tue, 18 Jun 2019 07:52:14 +0000 (09:52 +0200)]
lib/resolve: don't skip EDNS if failed
This was almost all done during the IETF 104 hackathon.
Vladimír Čunát [Mon, 10 Sep 2018 13:19:43 +0000 (15:19 +0200)]
treewide nitpick: more sensitive detection of KR_STATE_FAIL
I don't know any particular case where the bit-test would succeed and
equality wouldn't, but it seems better to take no chances.
Petr Špaček [Tue, 25 Jun 2019 14:01:34 +0000 (14:01 +0000)]
Merge branch 'http_additional_parameters' into 'master'
DoH GET additional parameters + tests
See merge request knot/knot-resolver!832
Ivana Krumlová [Mon, 24 Jun 2019 11:32:41 +0000 (13:32 +0200)]
modules/http: tests for DoH
Ivana Krumlová [Fri, 21 Jun 2019 12:09:07 +0000 (14:09 +0200)]
modules/http: new DOH tests for GET
Ivana Krumlová [Thu, 20 Jun 2019 14:01:32 +0000 (16:01 +0200)]
modules/http: ignorring other GET parameters
Tomas Krizek [Tue, 25 Jun 2019 07:35:18 +0000 (07:35 +0000)]
Merge branch 'ci-travis' into 'master'
ci/travis.py: also wait if in "created" state
See merge request knot/knot-resolver!833
Vladimír Čunát [Mon, 24 Jun 2019 17:03:52 +0000 (19:03 +0200)]
ci/travis.py: also wait if in "created" state
Apparently they added this state; example:
https://gitlab.labs.nic.cz/knot/knot-resolver/-/jobs/275512
Vladimír Čunát [Mon, 24 Jun 2019 14:12:45 +0000 (14:12 +0000)]
Merge !828: add systemd watchdog
Closes #275
Vladimír Čunát [Mon, 24 Jun 2019 12:44:26 +0000 (14:44 +0200)]
modules/sd_watchdog: deinit correctness
and slightly better error reporting.
Vladimír Čunát [Mon, 24 Jun 2019 12:34:17 +0000 (14:34 +0200)]
modules/sd_watchdog nitpicks: simplify
Vladimír Čunát [Thu, 20 Jun 2019 11:45:28 +0000 (13:45 +0200)]
modules/sd_watchdog nitpick: detect more errors
Tomas Krizek [Tue, 18 Jun 2019 17:24:24 +0000 (19:24 +0200)]
modules/sd_watchdog: new module for systemd watchdog support
Tomas Krizek [Tue, 18 Jun 2019 14:53:37 +0000 (16:53 +0200)]
meson: properly detect libsystemd dependency
Tomas Krizek [Mon, 24 Jun 2019 09:30:36 +0000 (09:30 +0000)]
Merge branch 'ci-nitpicks' into 'master'
ci: nitpicks
See merge request knot/knot-resolver!831
Tomas Krizek [Mon, 24 Jun 2019 08:43:37 +0000 (10:43 +0200)]
ci: filter undesired results in obs:build:all
Tomas Krizek [Thu, 20 Jun 2019 08:13:36 +0000 (10:13 +0200)]
ci: enable parallel distrotests for multiple repos
Tomas Krizek [Wed, 19 Jun 2019 15:38:10 +0000 (15:38 +0000)]
Merge branch 'fix-travis-ci' into 'master'
fix travis CI + nitpicks
See merge request knot/knot-resolver!829
Tomas Krizek [Wed, 19 Jun 2019 15:21:48 +0000 (17:21 +0200)]
.tavis.ci: use newer osx image to fix builds
Tomas Krizek [Thu, 13 Jun 2019 12:16:17 +0000 (14:16 +0200)]
doc: improve DNSBL warning for rebinding module
Tomas Krizek [Thu, 13 Jun 2019 12:06:25 +0000 (14:06 +0200)]
.gitlabci: enable distrotests for knot-dns-devel
Tomas Krizek [Tue, 18 Jun 2019 08:08:51 +0000 (08:08 +0000)]
Merge branch 'http-intermediate' into 'master'
modules/http: also send intermediate TLS certificate
See merge request knot/knot-resolver!819
Vladimír Čunát [Mon, 17 Jun 2019 14:58:49 +0000 (16:58 +0200)]
modules/http ephemeral cert: update before expiration
Instead of three days after. This bug was not introduced by the recent
commits moving the code.
Tomas Krizek [Fri, 14 Jun 2019 14:58:40 +0000 (16:58 +0200)]
http/test_tls: add test for chain certificates
Tomas Krizek [Fri, 14 Jun 2019 14:56:30 +0000 (16:56 +0200)]
http/test_tls: add new certificates issued by custom CA
ca.crt is cert from root CA
test.crt is cert issued by intermediate CA
chain.crt contains issued cert and intermediate CA cert
issued for: kr.local, 127.0.0.1