]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
8 years agocache: stash packets also if there's no TA at all
Vladimír Čunát [Wed, 22 Nov 2017 12:48:16 +0000 (13:48 +0100)] 
cache: stash packets also if there's no TA at all

8 years agoreview TTL limit handling
Vladimír Čunát [Wed, 22 Nov 2017 12:08:43 +0000 (13:08 +0100)] 
review TTL limit handling

- aggressive cache forgot to apply the maximum TTL bound
- packet cache had a separate ad-hoc limit of 15 minutes;
  this got removed
- cleanups, etc.

8 years agocommit the regenerated lua stuff, finally
Vladimír Čunát [Tue, 21 Nov 2017 18:12:25 +0000 (19:12 +0100)] 
commit the regenerated lua stuff, finally

8 years agomove NSEC1-related stuff into a separate file
Vladimír Čunát [Tue, 21 Nov 2017 18:11:28 +0000 (19:11 +0100)] 
move NSEC1-related stuff into a separate file

Also some minor changes, as usual.

8 years agoWIP: wildcards
Vladimír Čunát [Tue, 21 Nov 2017 14:55:47 +0000 (15:55 +0100)] 
WIP: wildcards

- minor fix
- improved verbose logging
- other nitpicks

Negative NSEC wildcards should be hopefully OK now.
No generation of positive answers from wildcards yet.

8 years agoWIP: wildcards
Vladimír Čunát [Mon, 20 Nov 2017 18:52:06 +0000 (19:52 +0100)] 
WIP: wildcards

8 years agoMerge branch 'deckard_fail_artifacts' into 'master'
Petr Špaček [Mon, 20 Nov 2017 16:45:28 +0000 (17:45 +0100)] 
Merge branch 'deckard_fail_artifacts' into 'master'

CI optimization

Closes #270

See merge request knot/knot-resolver!397

8 years agofix rcode for some negative answers
Vladimír Čunát [Mon, 20 Nov 2017 15:50:02 +0000 (16:50 +0100)] 
fix rcode for some negative answers

Empty non-terminals don't need to have a matching NSEC record.

8 years agoCI: enable QTRACE logging for kresd
Petr Špaček [Mon, 20 Nov 2017 15:35:06 +0000 (16:35 +0100)] 
CI: enable QTRACE logging for kresd

8 years agoCI: run non-interactive kresd to avoid false positives
Petr Špaček [Mon, 20 Nov 2017 15:33:38 +0000 (16:33 +0100)] 
CI: run non-interactive kresd to avoid false positives

See Deckard MR!85 for details.

8 years agoCI: archive Deckard artifacts on failure
Petr Špaček [Mon, 20 Nov 2017 15:31:54 +0000 (16:31 +0100)] 
CI: archive Deckard artifacts on failure

8 years agoCI: optimize Deckard-under-Valgrind
Petr Špaček [Thu, 16 Nov 2017 13:23:56 +0000 (14:23 +0100)] 
CI: optimize Deckard-under-Valgrind

Packages are already present in the image so we do not need to spend
time on package maintenance.

8 years agofix another bug for non-root zones
Vladimír Čunát [Mon, 20 Nov 2017 15:14:22 +0000 (16:14 +0100)] 
fix another bug for non-root zones

Sigh.

8 years agoMerge !396: lua: fixup making the bindings bogus
Vladimír Čunát [Mon, 20 Nov 2017 13:41:15 +0000 (14:41 +0100)] 
Merge !396: lua: fixup making the bindings bogus

8 years agolua: fixup making the bindings bogus
Vladimír Čunát [Mon, 20 Nov 2017 13:23:24 +0000 (14:23 +0100)] 
lua: fixup making the bindings bogus

For now I didn't touch the generator to be correct on this line,
as we will probably want to change it after bumping minimal libknot
version.

8 years agoMerge !395: minor fixes (see commits)
Vladimír Čunát [Mon, 20 Nov 2017 13:12:48 +0000 (14:12 +0100)] 
Merge !395: minor fixes (see commits)

8 years agolua: fix mistakes in bindings (forgotten regeneration)
Vladimír Čunát [Mon, 20 Nov 2017 13:07:46 +0000 (14:07 +0100)] 
lua: fix mistakes in bindings (forgotten regeneration)

8 years agodaemon: fix a typo in SIGPIPE blocking
Vladimír Čunát [Tue, 14 Nov 2017 13:18:43 +0000 (14:18 +0100)] 
daemon: fix a typo in SIGPIPE blocking

I'm sorry. Buggy commit: 2ba2a5e8

8 years agoNSEC: better verbose logging + nitpicks
Vladimír Čunát [Thu, 16 Nov 2017 17:25:19 +0000 (18:25 +0100)] 
NSEC: better verbose logging + nitpicks

8 years agoMerge !394: util: fix policy.QTRACE for QDCOUNT != 1
Vladimír Čunát [Thu, 16 Nov 2017 16:54:28 +0000 (17:54 +0100)] 
Merge !394: util: fix policy.QTRACE for QDCOUNT != 1

8 years agoutil: fix policy.QTRACE for QDCOUNT != 1
Petr Špaček [Thu, 16 Nov 2017 16:41:32 +0000 (17:41 +0100)] 
util: fix policy.QTRACE for QDCOUNT != 1

8 years agoMerge !393: lua resolve(): make DNSSEC_WANT imply +dnssec
Vladimír Čunát [Thu, 16 Nov 2017 16:04:13 +0000 (17:04 +0100)] 
Merge !393: lua resolve(): make DNSSEC_WANT imply +dnssec

8 years agolua resolve(): make DNSSEC_WANT imply +dnssec
Vladimír Čunát [Thu, 16 Nov 2017 15:32:12 +0000 (16:32 +0100)] 
lua resolve(): make DNSSEC_WANT imply +dnssec

8 years agorename module 'cache_lmdb' -> 'cache'
Vladimír Čunát [Thu, 16 Nov 2017 14:09:59 +0000 (15:09 +0100)] 
rename module 'cache_lmdb' -> 'cache'

The name was weird.  There's no other implementation ATM and the module
will always be only really suitable for *local* caches, but otherwise
it's not neccessarily bound to LMDB.

8 years agofix a bug for non-root zones
Vladimír Čunát [Wed, 15 Nov 2017 10:21:47 +0000 (11:21 +0100)] 
fix a bug for non-root zones

Owner name reconstruction didn't work.

8 years agoMerge !390: utils kr_strcatdup: deal with overflow
Vladimír Čunát [Wed, 15 Nov 2017 09:07:44 +0000 (10:07 +0100)] 
Merge !390: utils kr_strcatdup: deal with overflow

8 years agoutils kr_strcatdup: deal with overflowing size_t
Vladimír Čunát [Wed, 15 Nov 2017 08:48:29 +0000 (09:48 +0100)] 
utils kr_strcatdup: deal with overflowing size_t

It's very unlikely to happen - sum of string lengths overflowing -
even on a 32-bit platform, and the input seems not controllable by
adversaries, but let's fix it anyway.

8 years agominor: cleanups, logging, fixes, comments/docs
Vladimír Čunát [Tue, 14 Nov 2017 17:05:27 +0000 (18:05 +0100)] 
minor: cleanups, logging, fixes, comments/docs

8 years agoMerge branch 'fix-check-config' into 'master'
Petr Špaček [Mon, 13 Nov 2017 13:12:26 +0000 (14:12 +0100)] 
Merge branch 'fix-check-config' into 'master'

Fix check target (check-config requires installed version of kresd)

Closes #272

See merge request knot/knot-resolver!389

8 years agotests: check-config and check-integration require installed version
Petr Špaček [Mon, 13 Nov 2017 12:55:29 +0000 (13:55 +0100)] 
tests: check-config and check-integration require installed version

Path to module directory gets hardcoded into binaries so check-config
and check-integration cannot work prior installation.

To indicate this depedency, the target check-config was moved from
"check" target to "installcheck".

Deckard requires additional libraries so it is not included in
installcheck.

fixes: #272

8 years agounit tests: always use libraries from build directory
Petr Špaček [Mon, 13 Nov 2017 12:43:29 +0000 (13:43 +0100)] 
unit tests: always use libraries from build directory

Previously it might happen that installed libraries
had higher priority over libraries in build directory.

8 years agoMerge !388: minor fixes
Vladimír Čunát [Mon, 13 Nov 2017 09:50:46 +0000 (10:50 +0100)] 
Merge !388: minor fixes

8 years agotests_cache: give it more space
Vladimír Čunát [Mon, 13 Nov 2017 09:41:25 +0000 (10:41 +0100)] 
tests_cache: give it more space

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=878976
In general, platforms with page size other than 4k might better compile
with -DCPU_PAGE_SIZE=nnnnn but real impact should only be this test and
better alignment in the mempool allocator.

8 years agodaemon: block SIGPIPE
Vladimír Čunát [Mon, 13 Nov 2017 09:24:53 +0000 (10:24 +0100)] 
daemon: block SIGPIPE

We can ignore the signal, as the affected libuv calls report error
by returning EPIPE anyway.
Fixes https://gitlab.labs.nic.cz/knot/knot-resolver/issues/271

8 years agominor cleanups, reduce verbosity
Vladimír Čunát [Fri, 10 Nov 2017 16:52:17 +0000 (17:52 +0100)] 
minor cleanups, reduce verbosity

8 years agoremove some old code
Vladimír Čunát [Fri, 10 Nov 2017 16:31:35 +0000 (17:31 +0100)] 
remove some old code

8 years agomemcached, redis: disable as they won't work ATM
Vladimír Čunát [Fri, 10 Nov 2017 15:38:22 +0000 (16:38 +0100)] 
memcached, redis: disable as they won't work ATM

8 years agoRR-stashing nitpicks
Vladimír Čunát [Fri, 10 Nov 2017 15:20:25 +0000 (16:20 +0100)] 
RR-stashing nitpicks

8 years agopreparing knot_pkt_t: move to a separate file
Vladimír Čunát [Fri, 10 Nov 2017 15:04:38 +0000 (16:04 +0100)] 
preparing knot_pkt_t: move to a separate file

8 years agoRR (de)serialization: move to a separate file
Vladimír Čunát [Fri, 10 Nov 2017 14:41:39 +0000 (15:41 +0100)] 
RR (de)serialization: move to a separate file

8 years agocache entry lists: move to a separate file
Vladimír Čunát [Fri, 10 Nov 2017 14:05:16 +0000 (15:05 +0100)] 
cache entry lists: move to a separate file

8 years agofix clang warnings
Vladimír Čunát [Fri, 10 Nov 2017 10:14:53 +0000 (11:14 +0100)] 
fix clang warnings

8 years agopacket cache: move into a separate file, describe API
Vladimír Čunát [Fri, 10 Nov 2017 10:12:01 +0000 (11:12 +0100)] 
packet cache: move into a separate file, describe API

8 years agominor improvements, readability, clang compatibility
Vladimír Čunát [Fri, 10 Nov 2017 09:02:42 +0000 (10:02 +0100)] 
minor improvements, readability, clang compatibility

It doesn't accept `abs(10)` as a constant for `case` labels.

8 years agoadd packet cache - only direct NAME+TYPE hit ATM
Vladimír Čunát [Thu, 9 Nov 2017 16:32:40 +0000 (17:32 +0100)] 
add packet cache - only direct NAME+TYPE hit ATM

Used for queries that are BOGUS or
(negative and either insecure or unvalidated).

FIXME: review, opt-out, etc.

8 years agocache API: for `read/write` the key is const, really
Vladimír Čunát [Thu, 9 Nov 2017 09:29:56 +0000 (10:29 +0100)] 
cache API: for `read/write` the key is const, really

It might better be passed by value, but let me keep the way for now.

8 years agoMerge tag 'v1.5.0' into cache-aggr-wip
Vladimír Čunát [Wed, 8 Nov 2017 09:10:07 +0000 (10:10 +0100)] 
Merge tag 'v1.5.0' into cache-aggr-wip

8 years agoMerge branch 'build-docs-submodules' into 'master'
Petr Špaček [Mon, 6 Nov 2017 15:08:13 +0000 (16:08 +0100)] 
Merge branch 'build-docs-submodules' into 'master'

Add note about initializing submodules needed to build successfully.

See merge request knot/knot-resolver!387

8 years agoAdd note about initializing submodules needed to build successfully.
Stepan Balazik [Mon, 6 Nov 2017 14:55:08 +0000 (15:55 +0100)] 
Add note about initializing submodules needed to build successfully.

8 years agoMerge !385: release 1.5.0 v1.5.0
Vladimír Čunát [Thu, 2 Nov 2017 11:37:43 +0000 (12:37 +0100)] 
Merge !385: release 1.5.0

8 years agorelease 1.5.0
Vladimír Čunát [Thu, 2 Nov 2017 11:22:16 +0000 (12:22 +0100)] 
release 1.5.0

8 years agoMerge !384: add KR_RANK_TRY
Vladimír Čunát [Thu, 2 Nov 2017 11:19:16 +0000 (12:19 +0100)] 
Merge !384: add KR_RANK_TRY

attempt validation for more records but require it for fewer of them
(e.g. avoids SERVFAIL when server adds extra records but omits RRSIGs)

8 years agoadd KR_RANK_TRY
Vladimír Čunát [Wed, 1 Nov 2017 15:36:34 +0000 (16:36 +0100)] 
add KR_RANK_TRY

attempt validation for more records but require it for fewer of them
(e.g. avoids SERVFAIL when server adds extra records but omits RRSIGs)

8 years agoMerge !383: rfc8145: DNSSEC Key Tag Signaling (by default)
Vladimír Čunát [Thu, 2 Nov 2017 11:07:57 +0000 (12:07 +0100)] 
Merge !383: rfc8145: DNSSEC Key Tag Signaling (by default)

8 years agoSignaling trust anchor is enabled by default
Vítězslav Kříž [Wed, 1 Nov 2017 17:52:40 +0000 (18:52 +0100)] 
Signaling trust anchor is enabled by default

8 years agoSignaling Trust Anchor Knowledge in DNSSEC using Key Tag Query
Vítězslav Kříž [Mon, 30 Oct 2017 15:59:37 +0000 (16:59 +0100)] 
Signaling Trust Anchor Knowledge in DNSSEC using Key Tag Query

Implementation of RFC 8145 section 5 as module.

Fixes: #383
fixup! Signaling Trust Anchor Knowledge in DNSSEC using Key Tag Query

8 years agodaemon: add ability to load modules with _ in name
Petr Špaček [Wed, 1 Nov 2017 16:52:12 +0000 (17:52 +0100)] 
daemon: add ability to load modules with _ in name

8 years agorelease 1.99.1-alpha: WIP on aggressive cache v1.99.1-alpha
Vladimír Čunát [Thu, 26 Oct 2017 15:55:15 +0000 (17:55 +0200)] 
release 1.99.1-alpha: WIP on aggressive cache

8 years agoNEWS for 1.99.1-alpha
Vladimír Čunát [Thu, 26 Oct 2017 15:48:53 +0000 (17:48 +0200)] 
NEWS for 1.99.1-alpha

8 years agofix CNAMEs and some details
Vladimír Čunát [Thu, 26 Oct 2017 15:32:28 +0000 (17:32 +0200)] 
fix CNAMEs and some details

8 years agostash xNAME RRs (not utilizing them yet)
Vladimír Čunát [Thu, 26 Oct 2017 13:13:07 +0000 (15:13 +0200)] 
stash xNAME RRs (not utilizing them yet)

and some smaller fixes

8 years agonegative wildcarded answers should be OK now
Vladimír Čunát [Wed, 25 Oct 2017 18:44:04 +0000 (20:44 +0200)] 
negative wildcarded answers should be OK now

8 years agokwz_between: fix a bug when one key is a prefix of another
Vladimír Čunát [Wed, 25 Oct 2017 17:48:56 +0000 (19:48 +0200)] 
kwz_between: fix a bug when one key is a prefix of another

8 years agoWIP on wildcards
Vladimír Čunát [Tue, 24 Oct 2017 16:08:50 +0000 (18:08 +0200)] 
WIP on wildcards

including quite some refactoring of the new cache code

8 years agoMerge !381: etc/root.hints: B's IPv4 updated today
Vladimír Čunát [Tue, 24 Oct 2017 14:47:49 +0000 (16:47 +0200)] 
Merge !381: etc/root.hints: B's IPv4 updated today

8 years agoetc/root.hints: B's IPv4 updated today
Vladimír Čunát [Tue, 24 Oct 2017 14:40:32 +0000 (16:40 +0200)] 
etc/root.hints: B's IPv4 updated today

8 years agoMerge branch 'systemd-cleanup' into 'master'
Petr Špaček [Tue, 24 Oct 2017 10:27:21 +0000 (12:27 +0200)] 
Merge branch 'systemd-cleanup' into 'master'

systemd: drop RefuseManualStart=true, disable kresd.service by default

See merge request knot/knot-resolver!380

8 years agoskip zero-containing names
Vladimír Čunát [Tue, 24 Oct 2017 09:36:21 +0000 (11:36 +0200)] 
skip zero-containing names

8 years agofix some bugs around key->dname conversion
Vladimír Čunát [Mon, 23 Oct 2017 13:19:42 +0000 (15:19 +0200)] 
fix some bugs around key->dname conversion

e.g. in _lf2wire

8 years agoremove unused code
Vladimír Čunát [Fri, 20 Oct 2017 17:27:30 +0000 (19:27 +0200)] 
remove unused code

8 years agoremove the old cache modules from git
Vladimír Čunát [Fri, 20 Oct 2017 17:00:49 +0000 (19:00 +0200)] 
remove the old cache modules from git

8 years ago.
Vladimír Čunát [Fri, 20 Oct 2017 16:59:48 +0000 (18:59 +0200)] 
.

Root zone features seem usable now.

8 years agodocument how to make kresd listen on public ports in this configuration.
Daniel Kahn Gillmor [Fri, 20 Oct 2017 14:48:59 +0000 (10:48 -0400)] 
document how to make kresd listen on public ports in this configuration.

8 years agosystemd: Add FreeBind=true to kresd.socket
Daniel Kahn Gillmor [Fri, 20 Oct 2017 14:43:21 +0000 (10:43 -0400)] 
systemd: Add FreeBind=true to kresd.socket

This allows the socket to be bound before the network interface comes
up, which is preferable to having a race between the interface coming
up and the socket being bound.

8 years agosystemd: drop RefuseManualStart=true, disable kresd.service by default
Daniel Kahn Gillmor [Thu, 19 Oct 2017 19:32:20 +0000 (15:32 -0400)] 
systemd: drop RefuseManualStart=true, disable kresd.service by default

I introduced RefuseManualStart=true last year when writing the initial
systemd unit file for kresd.  I did this because i didn't want to
start running the daemon if no one was going to talk to it.

I'm no longer convinced that this directive has a good justification.
While i think that there is no need to activate the service without
socket activation, i think preventing manual invocation is actively
harmful (admins will reflexively do "systemctl restart kresd" just
like they do "systemctl restart apache2" and it's jarring to have it
rejected).

A distributor who wants to (by default) delay kresd startup until it
is accessed can ship the preset file included here, but leave the
*.socket units enabled by default.

8 years ago.
Vladimír Čunát [Wed, 18 Oct 2017 16:10:27 +0000 (18:10 +0200)] 
.

8 years ago.
Vladimír Čunát [Tue, 17 Oct 2017 11:35:58 +0000 (13:35 +0200)] 
.

Positive caching seems usable now. (No xNAME, wildcards, etc.)
Problem around zone cuts:
 - clear cache
 - kdig fubar
 - kdig DNSKEY cz

8 years ago.
Vladimír Čunát [Mon, 16 Oct 2017 14:16:14 +0000 (16:16 +0200)] 
.

8 years ago.
Vladimír Čunát [Fri, 13 Oct 2017 15:13:50 +0000 (17:13 +0200)] 
.

8 years agoMerge branch 'roothints-tests' into 'master'
Petr Špaček [Fri, 13 Oct 2017 13:52:38 +0000 (15:52 +0200)] 
Merge branch 'roothints-tests' into 'master'

roothints: fix segfault with hints.root_file, added test

See merge request knot/knot-resolver!378

8 years agoroothints: fix segfault with hints.root_file, added test
Vítězslav Kříž [Fri, 13 Oct 2017 08:31:18 +0000 (10:31 +0200)] 
roothints: fix segfault with hints.root_file, added test

8 years ago.
Vladimír Čunát [Thu, 12 Oct 2017 16:45:37 +0000 (18:45 +0200)] 
.

8 years ago.
Vladimír Čunát [Wed, 11 Oct 2017 15:52:53 +0000 (17:52 +0200)] 
.

8 years agoMerge branch 'ci-deckard-valgrind' into 'master'
Petr Špaček [Wed, 11 Oct 2017 14:09:28 +0000 (16:09 +0200)] 
Merge branch 'ci-deckard-valgrind' into 'master'

Check deckard with valgrind during CI

See merge request knot/knot-resolver!365

8 years agoCheck deckard with valgrind during CI
Štěpán Kotek [Mon, 18 Sep 2017 13:23:35 +0000 (15:23 +0200)] 
Check deckard with valgrind during CI

refs #227

8 years agoMerge branch 'basic-dockerfile' into 'master'
Petr Špaček [Wed, 11 Oct 2017 09:24:52 +0000 (11:24 +0200)] 
Merge branch 'basic-dockerfile' into 'master'

CI: new Dockerfile

See merge request knot/knot-resolver!375

8 years agoRun respdiff CI in new docker image
Štěpán Kotek [Wed, 11 Oct 2017 07:53:35 +0000 (09:53 +0200)] 
Run respdiff CI in new docker image

8 years agoRun pylint and pep8 CI with new dockerfile.
Štěpán Kotek [Wed, 11 Oct 2017 07:51:24 +0000 (09:51 +0200)] 
Run pylint and pep8 CI with new dockerfile.

8 years agoRun deckard CI checks in new docker image
Štěpán Kotek [Wed, 27 Sep 2017 12:39:26 +0000 (14:39 +0200)] 
Run deckard CI checks in new docker image

8 years agoRun valgrind CI checks with new docker image
Štěpán Kotek [Wed, 11 Oct 2017 07:31:48 +0000 (09:31 +0200)] 
Run valgrind CI checks with new docker image

8 years agoAdd new Dockerfile for CI based on debian.
Štěpán Kotek [Wed, 11 Oct 2017 06:49:22 +0000 (08:49 +0200)] 
Add new Dockerfile for CI based on debian.

8 years ago. (last week)
Vladimír Čunát [Mon, 9 Oct 2017 10:56:26 +0000 (12:56 +0200)] 
. (last week)

8 years agoMerge !377: package fixes, primarily for Darwin
Vladimír Čunát [Fri, 29 Sep 2017 21:51:09 +0000 (23:51 +0200)] 
Merge !377: package fixes, primarily for Darwin

8 years agoNEWS: document Darwin fixes
Vladimír Čunát [Fri, 29 Sep 2017 21:46:55 +0000 (23:46 +0200)] 
NEWS: document Darwin fixes

8 years agomake: fix date command on Darwin
Vladimír Čunát [Fri, 29 Sep 2017 21:35:49 +0000 (23:35 +0200)] 
make: fix date command on Darwin

The -r has two different meanings, apparently :-D

8 years agomodules: use LIBEXT to fix Darwin
Vladimír Čunát [Fri, 29 Sep 2017 21:00:43 +0000 (23:00 +0200)] 
modules: use LIBEXT to fix Darwin

8 years agoroot hints: improve error message
Vladimír Čunát [Fri, 29 Sep 2017 20:56:38 +0000 (22:56 +0200)] 
root hints: improve error message

... when the installed root.hints isn't found

8 years ago.
Vladimír Čunát [Fri, 29 Sep 2017 16:51:59 +0000 (18:51 +0200)] 
.

8 years ago.
Vladimír Čunát [Wed, 27 Sep 2017 16:44:15 +0000 (18:44 +0200)] 
.

8 years agoMerge !376: misc nitpicks
Vladimír Čunát [Wed, 27 Sep 2017 16:31:36 +0000 (18:31 +0200)] 
Merge !376: misc nitpicks