]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
6 years agoMerge !838: modules/refuse_nord: refuse queries without RD bit set obs-knot-dns-deve-jq0xxt/deployments/118 obs-knot-dns-deve-jq0xxt/deployments/120 obs-knot-dns-deve-jq0xxt/deployments/122 obs-knot-dns-deve-jq0xxt/deployments/124 obs-knot-dns-deve-jq0xxt/deployments/126 obs-knot-dns-deve-jq0xxt/deployments/128 obs-knot-dns-deve-jq0xxt/deployments/130 obs-knot-dns-deve-jq0xxt/deployments/132 obs-knot-dns-deve-jq0xxt/deployments/135 obs-knot-dns-deve-jq0xxt/deployments/137 obs-knot-dns-deve-jq0xxt/deployments/139 obs-knot-resolver-bs4hbr/deployments/134 obs-knot-resolver-es11k1/deployments/119 obs-knot-resolver-es11k1/deployments/121 obs-knot-resolver-es11k1/deployments/123 obs-knot-resolver-es11k1/deployments/125 obs-knot-resolver-es11k1/deployments/127 obs-knot-resolver-es11k1/deployments/129 obs-knot-resolver-es11k1/deployments/131 obs-knot-resolver-es11k1/deployments/133 obs-knot-resolver-es11k1/deployments/136 obs-knot-resolver-es11k1/deployments/138 obs-knot-resolver-es11k1/deployments/140
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

6 years agomodules/stats: adjust test
Tomas Krizek [Wed, 24 Jul 2019 10:20:24 +0000 (12:20 +0200)] 
modules/stats: adjust test

6 years agodoc/build: clarify documentation about tests
Tomas Krizek [Wed, 24 Jul 2019 10:00:51 +0000 (12:00 +0200)] 
doc/build: clarify documentation about tests

6 years agomodules/refuse_nord: document usage
Tomas Krizek [Wed, 24 Jul 2019 09:47:00 +0000 (11:47 +0200)] 
modules/refuse_nord: document usage

6 years agomodules/refuse_nord: add test
Tomas Krizek [Wed, 24 Jul 2019 08:38:18 +0000 (10:38 +0200)] 
modules/refuse_nord: add test

6 years agomodules/refuse_nord: refuse queries without RD bit set
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.

6 years agoMerge branch 'rebinding_fix' into 'master' obs-knot-dns-deve-jq0xxt/deployments/114 obs-knot-dns-deve-jq0xxt/deployments/116 obs-knot-resolver-es11k1/deployments/115 obs-knot-resolver-es11k1/deployments/117
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

6 years agokr_request: remove ::additional
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.

6 years agolib/resolve answer_finalize: simplify a bit of code
Vladimír Čunát [Wed, 10 Jul 2019 08:25:49 +0000 (10:25 +0200)] 
lib/resolve answer_finalize: simplify a bit of code

6 years agolib/resolve answer_finalize: separate a special case
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)

6 years agoMerge branch 'ci-extract-tar' into 'master'
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

6 years agoci: respdiff - extract multiple archives
Tomas Krizek [Mon, 22 Jul 2019 15:27:04 +0000 (17:27 +0200)] 
ci: respdiff - extract multiple archives

6 years agoMerge !850: daemon/tls: fix handling of GNUTLS_E_AGAIN obs-knot-dns-deve-jq0xxt/deployments/112 obs-knot-resolver-es11k1/deployments/113
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

6 years agodaemon/tls: fix handling of GNUTLS_E_AGAIN
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

6 years agoMerge branch 'mod_api_clarif' into 'master' obs-knot-dns-deve-jq0xxt/deployments/108 obs-knot-dns-deve-jq0xxt/deployments/110 obs-knot-resolver-es11k1/deployments/109 obs-knot-resolver-es11k1/deployments/111
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

6 years agomodules: fix typo in link to upgrading guide
Petr Špaček [Sat, 20 Jul 2019 20:05:17 +0000 (16:05 -0400)] 
modules: fix typo in link to upgrading guide

6 years agoMerge branch 'ci-add-debian10' into 'master' obs-knot-dns-deve-jq0xxt/deployments/106 obs-knot-resolver-es11k1/deployments/107
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

6 years agoci: add distrotest:debian10 obs-knot-resolver-es11k1/deployments/102
Tomas Krizek [Thu, 18 Jul 2019 13:48:58 +0000 (15:48 +0200)] 
ci: add distrotest:debian10

6 years agoMerge branch 'ci-update' into 'master' obs-knot-dns-deve-jq0xxt/deployments/103 obs-knot-resolver-es11k1/deployments/104
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

6 years agoci/README: add --no-cache to docker builds to force pkg update
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

6 years agoci: fix distrotests for testing repo
Tomas Krizek [Thu, 18 Jul 2019 10:59:26 +0000 (12:59 +0200)] 
ci: fix distrotests for testing repo

6 years agoci/debian-buster: add dependencies from knot-resolver-testing OBS 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

6 years agoci/debian-stable: delete old image
Tomas Krizek [Thu, 18 Jul 2019 12:29:29 +0000 (14:29 +0200)] 
ci/debian-stable: delete old image

6 years agoci/debian-buster: add lua-psl optional dependnecy
Tomas Krizek [Thu, 18 Jul 2019 12:28:11 +0000 (14:28 +0200)] 
ci/debian-buster: add lua-psl optional dependnecy

6 years agoci/debian-buster: update to released version
Tomas Krizek [Thu, 18 Jul 2019 12:27:46 +0000 (14:27 +0200)] 
ci/debian-buster: update to released version

6 years agoMerge branch 'perf-sendmmsg-answ' into 'master' obs-knot-dns-deve-jq0xxt/deployments/97 obs-knot-resolver-es11k1/deployments/98
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

6 years agodaemon: use sendmmsg towards UDP clients
Vladimír Čunát [Fri, 12 Jul 2019 14:22:57 +0000 (16:22 +0200)] 
daemon: use sendmmsg towards UDP clients

6 years agomain: better support for profiling
Vladimír Čunát [Wed, 3 Jul 2019 11:30:04 +0000 (13:30 +0200)] 
main: better support for profiling

6 years agoMerge branch 'release-410' into 'master' obs-knot-dns-deve-jq0xxt/deployments/83 obs-knot-dns-deve-jq0xxt/deployments/85 obs-knot-dns-deve-jq0xxt/deployments/87 obs-knot-dns-deve-jq0xxt/deployments/89 obs-knot-dns-deve-jq0xxt/deployments/91 obs-knot-dns-deve-jq0xxt/deployments/93 obs-knot-dns-deve-jq0xxt/deployments/95 obs-knot-resolver-es11k1/deployments/82 obs-knot-resolver-es11k1/deployments/84 obs-knot-resolver-es11k1/deployments/86 obs-knot-resolver-es11k1/deployments/88 obs-knot-resolver-es11k1/deployments/90 obs-knot-resolver-es11k1/deployments/92 obs-knot-resolver-es11k1/deployments/94 obs-knot-resolver-es11k1/deployments/96 v4.1.0
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

6 years agorelease 4.1.0
Petr Špaček [Wed, 10 Jul 2019 12:22:44 +0000 (14:22 +0200)] 
release 4.1.0

6 years agogc: reformat source code to conform to Linux codestyle
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.

6 years agosystemd/kres-cache-gc: make service more robust
Tomas Krizek [Tue, 2 Jul 2019 14:44:38 +0000 (16:44 +0200)] 
systemd/kres-cache-gc: make service more robust

6 years agokr_cache_gc: fix double-free for failed/unifinished txns
Tomas Krizek [Tue, 2 Jul 2019 14:11:43 +0000 (16:11 +0200)] 
kr_cache_gc: fix double-free for failed/unifinished txns

6 years agogc: better approximation of the space to free
Vladimír Čunát [Tue, 2 Jul 2019 09:22:04 +0000 (11:22 +0200)] 
gc: better approximation of the space to free

6 years agogc: adjust DEBUG output
Vladimír Čunát [Tue, 2 Jul 2019 09:21:09 +0000 (11:21 +0200)] 
gc: adjust DEBUG output

6 years agodistro/tests: check kres-cache-gc is started
Tomas Krizek [Mon, 1 Jul 2019 16:08:40 +0000 (18:08 +0200)] 
distro/tests: check kres-cache-gc is started

6 years agokr_cache_gc: update docs
Tomas Krizek [Mon, 1 Jul 2019 16:02:42 +0000 (18:02 +0200)] 
kr_cache_gc: update docs

6 years agosystemd: add kres-cache-gc.service
Tomas Krizek [Mon, 1 Jul 2019 15:32:53 +0000 (17:32 +0200)] 
systemd: add kres-cache-gc.service

6 years agoutils/cache_gc: meson - rename to kres-cache-gc
Tomas Krizek [Mon, 1 Jul 2019 10:28:34 +0000 (12:28 +0200)] 
utils/cache_gc: meson - rename to kres-cache-gc

6 years agogc: fix a lint warning
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)

6 years agogc: 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

6 years agogc: clean warnings with -DDEBUG
Vladimír Čunát [Thu, 27 Jun 2019 13:51:49 +0000 (15:51 +0200)] 
gc: clean warnings with -DDEBUG

6 years agogc: cleanup warnings from GCC 9 compiler
Petr Špaček [Thu, 27 Jun 2019 12:12:28 +0000 (14:12 +0200)] 
gc: cleanup warnings from GCC 9 compiler

6 years agogc: keep root and TLD data in cache as much as possible
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

6 years agogc: delete inconsistent entries from cache instead of skipping them
Petr Špaček [Tue, 25 Jun 2019 11:00:22 +0000 (13:00 +0200)] 
gc: delete inconsistent entries from cache instead of skipping them

6 years agogc: skip over "VERS" metadata entry in cache
Petr Špaček [Tue, 25 Jun 2019 10:55:28 +0000 (12:55 +0200)] 
gc: skip over "VERS" metadata entry in cache

6 years agogc: fix kr_gc_key_consistent to work with root zone NSECs
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

6 years agoutils/cache_gc: adapt for faster checking of usage
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)

6 years agoutils/cache_gc: more lint fixes
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.

6 years agoutils/cache_gc lint: stricter parsing of CLI integers
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.

6 years agoutils/cache_gc: meson - add sources to c_lint
Tomas Krizek [Mon, 17 Jun 2019 09:51:55 +0000 (11:51 +0200)] 
utils/cache_gc: meson - add sources to c_lint

6 years agoutils/cache_gc: rename daemon to kres_cache_gc
Tomas Krizek [Mon, 17 Jun 2019 09:39:46 +0000 (11:39 +0200)] 
utils/cache_gc: rename daemon to kres_cache_gc

6 years agoclient: move under utils directory
Tomas Krizek [Mon, 17 Jun 2019 08:52:56 +0000 (10:52 +0200)] 
client: move under utils directory

6 years agoutils/kr_cache_gc: minor nitpicks
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.

6 years agoutils/kr_cache_gc: support NSEC3 (aggressive) RRs
Vladimír Čunát [Fri, 14 Jun 2019 12:56:48 +0000 (14:56 +0200)] 
utils/kr_cache_gc: support NSEC3 (aggressive) RRs

6 years agolib/cache: make entry_h_consistent() generic
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.

6 years agodoc: document cache garbage collector
Tomas Krizek [Thu, 13 Jun 2019 15:35:58 +0000 (17:35 +0200)] 
doc: document cache garbage collector

6 years agoutils/kr_cache_gc: fix lint:pedantic
Tomas Krizek [Thu, 13 Jun 2019 11:53:58 +0000 (13:53 +0200)] 
utils/kr_cache_gc: fix lint:pedantic

6 years agodistro: package kr_cache_gc
Tomas Krizek [Thu, 16 May 2019 11:43:33 +0000 (13:43 +0200)] 
distro: package kr_cache_gc

6 years agoutils/kr_cache_gc: add params for configuring cache
Tomas Krizek [Thu, 16 May 2019 10:29:05 +0000 (12:29 +0200)] 
utils/kr_cache_gc: add params for configuring cache

6 years agoutils/kr_cache_gc: set default rw_txn_items to 100
Tomas Krizek [Wed, 15 May 2019 16:06:15 +0000 (18:06 +0200)] 
utils/kr_cache_gc: set default rw_txn_items to 100

6 years agoutils/kr_cache_gc: re-initialize lmdb txn in case of error
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

6 years agoutils/kr_cache_gc: skip invalid entries during iteration
Tomas Krizek [Wed, 15 May 2019 16:04:58 +0000 (18:04 +0200)] 
utils/kr_cache_gc: skip invalid entries during iteration

6 years agokr_cache_gc: build with meson
Tomas Krizek [Wed, 15 May 2019 14:12:51 +0000 (16:12 +0200)] 
kr_cache_gc: build with meson

6 years agokr_cache_gc: randomized deleting of parts of huge categories
Libor Peltan [Fri, 11 May 2018 14:20:58 +0000 (16:20 +0200)] 
kr_cache_gc: randomized deleting of parts of huge categories

6 years agokr_cache_gc: implemented dry-run (only occupation watching mode)
Libor Peltan [Fri, 11 May 2018 14:20:28 +0000 (16:20 +0200)] 
kr_cache_gc: implemented dry-run (only occupation watching mode)

6 years agokr_cache_gc: improvements, mostly categories
Libor Peltan [Fri, 4 May 2018 17:06:09 +0000 (19:06 +0200)] 
kr_cache_gc: improvements, mostly categories

6 years agokr_cache_gc: implemented categories, code split and cleanup
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

6 years agokr_cache_gc: increasing mapsize if the cache is full
Libor Peltan [Fri, 27 Apr 2018 13:15:11 +0000 (15:15 +0200)] 
kr_cache_gc: increasing mapsize if the cache is full

6 years agokr_cache_gc: little improvements
Libor Peltan [Fri, 27 Apr 2018 12:09:39 +0000 (14:09 +0200)] 
kr_cache_gc: little improvements

6 years agokr_cache_gc: separated DB transactions to prevent blocking; config; bugfix
Libor Peltan [Fri, 20 Apr 2018 11:42:54 +0000 (13:42 +0200)] 
kr_cache_gc: separated DB transactions to prevent blocking; config; bugfix

6 years agokr_cache_gc: added optional interval of infinite periodic action
Libor Peltan [Fri, 20 Apr 2018 08:44:32 +0000 (10:44 +0200)] 
kr_cache_gc: added optional interval of infinite periodic action

6 years agokr_cache_gc: separated main function
Libor Peltan [Fri, 20 Apr 2018 08:21:26 +0000 (10:21 +0200)] 
kr_cache_gc: separated main function

6 years agokr_cache_gc: UI improvements
Libor Peltan [Sun, 15 Apr 2018 10:47:28 +0000 (12:47 +0200)] 
kr_cache_gc: UI improvements

6 years agokr_cache_gc: initial commit
Libor Peltan [Fri, 13 Apr 2018 13:50:32 +0000 (15:50 +0200)] 
kr_cache_gc: initial commit

6 years agoRevert "Merge branch 'kr_cache_gc' into 'master'"
Petr Špaček [Wed, 10 Jul 2019 12:58:35 +0000 (14:58 +0200)] 
Revert "Merge branch 'kr_cache_gc' into 'master'"

This reverts commit c3a754dd295fe5349840f988bfa5f11da790aa88, reversing
changes made to 06d01bf00a8a0ab64941bbee617ac434296adae8.

I've have accidentally merged incorrect branch, let's try to fix that by
reverting incorrect version of GC and merging the correct one.

6 years agoNEWS: add merge request numbers for security fixes
Petr Špaček [Mon, 8 Jul 2019 10:56:51 +0000 (12:56 +0200)] 
NEWS: add merge request numbers for security fixes

6 years agodistro/rpm: handle systemd files update in Fedora
Tomas Krizek [Wed, 29 May 2019 14:20:17 +0000 (16:20 +0200)] 
distro/rpm: handle systemd files update in Fedora

6 years agoNEWS for 4.1.0
Petr Špaček [Thu, 4 Jul 2019 13:46:24 +0000 (15:46 +0200)] 
NEWS for 4.1.0

6 years agoMerge branch 'v410-news' into 'master'
Petr Špaček [Wed, 10 Jul 2019 12:18:47 +0000 (12:18 +0000)] 
Merge branch 'v410-news' into 'master'

Security fix CVE-2019-10191

See merge request knot/knot-resolver!839

6 years agonitpicks related to the CVE fix in parent commit
Vladimír Čunát [Tue, 25 Jun 2019 14:34:24 +0000 (16:34 +0200)] 
nitpicks related to the CVE fix in parent commit

6 years agolib/cache: fix CVE-2019-10191
Vladimír Čunát [Tue, 25 Jun 2019 14:33:31 +0000 (16:33 +0200)] 
lib/cache: fix CVE-2019-10191

Don't stash a packet with mismatching QNAME+QTYPE.
When receiving an NXDOMAIN or NODATA packet in an insecure zone,
it would get cached with KR_RANK_INSECURE regardless of mismatch
in QNAME.  If the 0x20 pattern was preserved in the fake QNAME,
such packet would then be used to answer queries with matching QNAME,
even if there's no proof that this QNAME is insecure.

6 years agolib/cache: don't stash packets with zeros in QNAME
Vladimír Čunát [Tue, 25 Jun 2019 13:55:20 +0000 (15:55 +0200)] 
lib/cache: don't stash packets with zeros in QNAME

Cache uses dname_lf for keys, i.e. zero bytes serve as separators
between labels.  Therefore having a zero inside label could masquerade
for QNAME that does have label separators instead of these zeros.
That doesn't seem really exploitable in practice, as standard registries
won't allow such labels, so I can't see any possible attack that would
"cross border" of these registries, e.g. attacking anything inside
example.org without any cooperation from its owner (or org or root).

6 years agoMerge branch 'doc-google-public-dns' into 'master'
Tomas Krizek [Wed, 10 Jul 2019 12:12:17 +0000 (12:12 +0000)] 
Merge branch 'doc-google-public-dns' into 'master'

doc: document TLS_FORWARD issues with some public DNS providers

See merge request knot/knot-resolver!843

6 years agodoc: document TLS_FORWARD issues with some public DNS providers
Tomas Krizek [Wed, 10 Jul 2019 08:50:42 +0000 (10:50 +0200)] 
doc: document TLS_FORWARD issues with some public DNS providers

6 years agoMerge branch 'cache-stale-reader-locks' into 'master'
Petr Špaček [Wed, 10 Jul 2019 12:10:48 +0000 (12:10 +0000)] 
Merge branch 'cache-stale-reader-locks' into 'master'

cache: clear stale reader locks

See merge request knot/knot-resolver!844

6 years agolib/cache: handle MDB_READERS_FULL
Vladimír Čunát [Wed, 10 Jul 2019 10:34:11 +0000 (12:34 +0200)] 
lib/cache: handle MDB_READERS_FULL

Abnormally terminated processes might leave stale reader locks,
and this is required to clear them.

6 years agoMerge branch 'rebinding_fix' into 'master'
Petr Špaček [Wed, 10 Jul 2019 10:52:51 +0000 (10:52 +0000)] 
Merge branch 'rebinding_fix' into 'master'

rebinding: fix crash

See merge request knot/knot-resolver!842

6 years agorebinding: clarify comment about *_selected arrays
Petr Špaček [Wed, 10 Jul 2019 07:06:41 +0000 (09:06 +0200)] 
rebinding: clarify comment about *_selected arrays

6 years agorebinding: log each blocked request only in verbose mode
Petr Špaček [Wed, 10 Jul 2019 06:59:48 +0000 (08:59 +0200)] 
rebinding: log each blocked request only in verbose mode

Also the log now uses the same format query UID format as elsewhere.

6 years agorebinding: stop iteration after encountering a filtered address
Petr Špaček [Wed, 10 Jul 2019 06:40:25 +0000 (08:40 +0200)] 
rebinding: stop iteration after encountering a filtered address

State FAIL does not stop iteration because kr_resolve_consume() resets
RESOLVED flag on failed attempts. This causes excessive attempts,
basically forcing kresd to try all authoritative servers before giving
up.

This excessive iteration also caused crash on assert in answer_fail
function.

6 years agoMerge branch 'zimport' into 'master' obs-knot-dns-deve-jq0xxt/deployments/77 obs-knot-resolver-es11k1/deployments/78
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

6 years agoNEWS: avoid crashing of preffil on empty file
Ivana Krumlová [Tue, 9 Jul 2019 12:17:54 +0000 (14:17 +0200)] 
NEWS: avoid crashing of preffil on empty file

6 years agoprefill: tests for zone import
Ivana Krumlová [Mon, 8 Jul 2019 11:29:46 +0000 (13:29 +0200)] 
prefill: tests for zone import

6 years agoprefill: check correct origin attribute
Ivana Krumlová [Thu, 4 Jul 2019 15:06:02 +0000 (17:06 +0200)] 
prefill: check correct origin attribute

name of SOA record must be "."

6 years agozimport: avoid crash on empty zone file
Ivana Krumlová [Thu, 4 Jul 2019 13:16:23 +0000 (15:16 +0200)] 
zimport: avoid crash on empty zone file

Fixes: #474
6 years agozimport: avoid crash on zi_state_parsing() failure
Ivana Krumlová [Thu, 4 Jul 2019 12:42:55 +0000 (14:42 +0200)] 
zimport: avoid crash on zi_state_parsing() failure

6 years agoMerge branch 'ci-histogram-rcode' into 'master' obs-knot-resolver-bs4hbr/deployments/76
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

6 years agoci: collect RCODE histograms from respdiff
Tomas Krizek [Tue, 9 Jul 2019 07:56:51 +0000 (09:56 +0200)] 
ci: collect RCODE histograms from respdiff

6 years agoMerge branch 'nitpicks' into 'master' obs-knot-dns-deve-jq0xxt/deployments/64 obs-knot-dns-deve-jq0xxt/deployments/66 obs-knot-dns-deve-jq0xxt/deployments/68 obs-knot-dns-deve-jq0xxt/deployments/70 obs-knot-dns-deve-jq0xxt/deployments/72 obs-knot-dns-deve-jq0xxt/deployments/74 obs-knot-resolver-es11k1/deployments/65 obs-knot-resolver-es11k1/deployments/67 obs-knot-resolver-es11k1/deployments/69 obs-knot-resolver-es11k1/deployments/71 obs-knot-resolver-es11k1/deployments/73 obs-knot-resolver-es11k1/deployments/75
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