]>
git.ipfire.org Git - thirdparty/knot-resolver.git/log
Vitezslav Kriz [Thu, 7 Sep 2017 14:29:18 +0000 (16:29 +0200)]
roothints: load from zonefile
Petr Špaček [Thu, 31 Aug 2017 11:32:53 +0000 (13:32 +0200)]
Merge branch 'ci-valgrind' into 'master'
Run unittests in CI under Valgrind memcheck
See merge request !353
Štěpán Kotek [Wed, 30 Aug 2017 09:06:11 +0000 (11:06 +0200)]
Check for memory leaks during unittest CI using valgrind
New ci task has been added that checks for possible memory leaks when running unittests. Messages from valgrind are displayed only when leak is detected.
refs #227
Štěpán Kotek [Tue, 29 Aug 2017 11:31:39 +0000 (13:31 +0200)]
Add dockerfile for valgrind ci tests.
Petr Špaček [Wed, 23 Aug 2017 15:07:52 +0000 (17:07 +0200)]
Merge branch 'ci-clone-workaround' into 'master'
Gitlab bug workaround: use git:// protocol for submodules
See merge request !360
Petr Špaček [Wed, 23 Aug 2017 14:18:02 +0000 (16:18 +0200)]
ci: update Deckard to use newest resolver test suite
Besides other things, this version of Deckard has new DNSSEC tests and
includes workaround for Gitlab CI submodule checkout.
Petr Špaček [Wed, 23 Aug 2017 13:39:23 +0000 (15:39 +0200)]
ci: use git:// protocol for external submodules
This is workaround for
https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/issues/2148
Given the fact we only read it, and the fact that commit ID is stored
inside our repo, it should not bring any new security problems.
Petr Špaček [Wed, 23 Aug 2017 11:45:21 +0000 (13:45 +0200)]
Merge branch 'cache_error_reporting' into 'master'
daemon: improve error reporting related to cache configuration
See merge request !359
Petr Špaček [Tue, 22 Aug 2017 16:20:21 +0000 (18:20 +0200)]
daemon: improve error reporting related to cache configuration
Confusion related to wrong cache configuration is more frequent than it
should be. Hopefully this will enable users to help themselves.
Vladimír Čunát [Fri, 18 Aug 2017 09:26:35 +0000 (11:26 +0200)]
Merge !356: doc: fix default for net.tcp_pipeline
Vladimír Čunát [Fri, 18 Aug 2017 09:21:12 +0000 (11:21 +0200)]
doc: fix default for net.tcp_pipeline
Vladimír Čunát [Tue, 15 Aug 2017 15:21:01 +0000 (17:21 +0200)]
Merge !355: CI fixes
Vladimír Čunát [Tue, 15 Aug 2017 14:55:47 +0000 (16:55 +0200)]
gitlab-ci: employ GIT_SUBMODULE_STRATEGY: recursive
Vladimír Čunát [Tue, 15 Aug 2017 14:39:13 +0000 (16:39 +0200)]
gitlab-ci: fallout from !352
- don't have pyyaml twice
- don't install for python3 (for now), just as with other modules
Vladimír Čunát [Tue, 15 Aug 2017 14:37:47 +0000 (16:37 +0200)]
deckard: update, mainly to fix outdated RRSIG
Vladimír Čunát [Tue, 15 Aug 2017 14:21:43 +0000 (16:21 +0200)]
Merge !337: policy.suffix: update the aho-corasick code
Close https://gitlab.labs.nic.cz/knot/knot-resolver/issues/200.
Vladimír Čunát [Tue, 15 Aug 2017 14:12:12 +0000 (16:12 +0200)]
Merge branch 'master' into aho-corasick
... to resolve some simple conflicts.
Petr Špaček [Tue, 15 Aug 2017 12:09:31 +0000 (14:09 +0200)]
Merge branch 'fix-deckard-ci' into 'master'
Install yaml for deckard CI.
See merge request !352
Štěpán Kotek [Tue, 15 Aug 2017 12:04:48 +0000 (14:04 +0200)]
Install yaml for deckard CI.
Petr Špaček [Thu, 10 Aug 2017 09:58:23 +0000 (11:58 +0200)]
Merge branch 'flags-refactor' into 'master'
refactor query flags
See merge request !341
Vladimír Čunát [Wed, 9 Aug 2017 16:32:23 +0000 (18:32 +0200)]
Merge !351: Dockerfile: try fixing the build
Vladimír Čunát [Wed, 9 Aug 2017 15:28:26 +0000 (17:28 +0200)]
bootstrap-depends.sh: update packages
Vladimír Čunát [Wed, 9 Aug 2017 15:19:29 +0000 (17:19 +0200)]
Dockerfile: try fixing the build
The bad xxd didn't happen to me locally :-/
Vladimír Čunát [Wed, 9 Aug 2017 14:28:36 +0000 (16:28 +0200)]
Merge branch 'master' into flags-refactor
There were just simple conflicts in NEWS and docs.
Vladimír Čunát [Wed, 9 Aug 2017 12:19:39 +0000 (14:19 +0200)]
Merge !350: Release 1.3.3
Vladimír Čunát [Wed, 9 Aug 2017 09:27:53 +0000 (11:27 +0200)]
gitlab CI: try to fix it
Vladimír Čunát [Wed, 9 Aug 2017 08:23:47 +0000 (10:23 +0200)]
release 1.3.3
Vladimír Čunát [Wed, 9 Aug 2017 08:23:06 +0000 (10:23 +0200)]
doc: fix a RST syntax error
Vladimír Čunát [Wed, 9 Aug 2017 08:38:10 +0000 (10:38 +0200)]
Merge a critical security fix
Vladimír Čunát [Tue, 8 Aug 2017 08:26:02 +0000 (10:26 +0200)]
Merge !349: modules/http: fix compatibility with Prometheus
https://github.com/CZ-NIC/knot-resolver/pull/48
Vladimír Čunát [Tue, 8 Aug 2017 08:20:57 +0000 (10:20 +0200)]
NEWS: add parent commit
Marek Vavruša [Tue, 8 Aug 2017 05:00:32 +0000 (22:00 -0700)]
modules/http: fix compatibility with the Prometheus text format
The Prometheus text format requires histogram parameters to be quoted,
and the result to end with an empty newline characted.
Vladimír Čunát [Mon, 7 Aug 2017 08:36:02 +0000 (10:36 +0200)]
Merge !348: utils: silence a coverity warning
Vladimír Čunát [Mon, 7 Aug 2017 08:26:18 +0000 (10:26 +0200)]
utils: silence a coverity warning
There's no real change, as the function is documented to possibly
return only zero or one in this case.
Vladimír Čunát [Fri, 4 Aug 2017 12:15:30 +0000 (14:15 +0200)]
Merge !347: utils: fix seeding of the random generator
Vladimír Čunát [Fri, 4 Aug 2017 06:22:51 +0000 (08:22 +0200)]
utils: fix seeding of the random generator
If the fread didn't read all in one go, the buffer was being repeatedly
overwritten from the start instead of continuing the read :-/
I also changed the overall approach in some respects.
Vladimír Čunát [Thu, 3 Aug 2017 12:39:50 +0000 (14:39 +0200)]
dnssec: make a function static (unused outside)
Vladimír Čunát [Thu, 3 Aug 2017 11:55:04 +0000 (13:55 +0200)]
dnssec: guard against out-of-bailiwick signatures
Vladimír Čunát [Thu, 3 Aug 2017 13:23:43 +0000 (15:23 +0200)]
Merge !346: kr_rand_uint: nitpicks
Vladimír Čunát [Thu, 3 Aug 2017 12:59:48 +0000 (14:59 +0200)]
kr_rand_uint: nitpicks
- the returned value is up to max-1 and not max (tiny bias)
- improve efficiency slightly
- unsigned -> uint32_t, as that's the range it supports (mostly equal)
Vladimír Čunát [Thu, 3 Aug 2017 08:41:35 +0000 (10:41 +0200)]
Merge !343: iterate: remove counter-productive validation
Grigorii Demidov [Wed, 2 Aug 2017 16:13:49 +0000 (18:13 +0200)]
layer/iterate: remove counter-productive validation
... functionality from iterator: don't fail immediately if actual number
of labels in owner name exceeds number in label field of RRSIG rrset
Petr Špaček [Wed, 2 Aug 2017 18:45:00 +0000 (20:45 +0200)]
Merge branch 'ci-respdiff' into 'master'
CI: integrate respdiff v2 into gitlab-ci
See merge request !345
Stepan Kotek [Wed, 2 Aug 2017 10:42:01 +0000 (12:42 +0200)]
CI: migrate to respdiff v2
All resolvers are configured as recursors (no forwarding).
We should extend testing so we can test recursion and forwarding at the
same time.
List of queries is taken dynamically from
https://gitlab.labs.nic.cz/knot/knot-resolver/snippets/69
This will likely change in future.
The test will fail if mismatch rate >= 1 %.
This is error margin for network instability and few possibly broken upstreams
in the test list.
Petr Špaček [Wed, 2 Aug 2017 17:25:22 +0000 (19:25 +0200)]
Merge branch 'ci-deckard' into 'master'
CI: update Deckard to use newest resolver test suite
See merge request !344
Petr Špaček [Wed, 2 Aug 2017 17:17:42 +0000 (19:17 +0200)]
CI: update Deckard to use newest resolver test suite
Vladimír Čunát [Wed, 2 Aug 2017 15:41:51 +0000 (17:41 +0200)]
Merge !325: policy: more/better special-use domain names
Vladimír Čunát [Wed, 2 Aug 2017 14:59:14 +0000 (16:59 +0200)]
NEWS: changes in this branch
Vladimír Čunát [Wed, 2 Aug 2017 14:48:21 +0000 (16:48 +0200)]
Merge branch 'master' into policy-reserved-domains
Vladimír Čunát [Wed, 2 Aug 2017 14:29:21 +0000 (16:29 +0200)]
Merge !342: make: revert adding -rpath by default
Vladimír Čunát [Wed, 2 Aug 2017 14:23:19 +0000 (16:23 +0200)]
make: revert adding -rpath by default
This reverts commits
89ebf5293 and
1d8b5706cd .
I didn't realize that setting rpath is considered bad practice by most
distributions. I'm really "spoiled" by nix(pkgs/os).
Vladimír Čunát [Wed, 2 Aug 2017 09:31:12 +0000 (11:31 +0200)]
policy docs: rework it all
- greatly reduce duplication - mainly actions and filters that were
described on two separate places
- try to improve readability etc.
Vladimír Čunát [Wed, 2 Aug 2017 08:31:04 +0000 (10:31 +0200)]
hints docs: clean a bit, note interaction with policies
Vladimír Čunát [Tue, 1 Aug 2017 16:38:42 +0000 (18:38 +0200)]
lua: remove :nslist from kr_query_t
It was rather low-level anyway.
Vladimír Čunát [Tue, 1 Aug 2017 16:35:30 +0000 (18:35 +0200)]
lua: remove :final from kr_query_t
Vladimír Čunát [Tue, 1 Aug 2017 16:15:52 +0000 (18:15 +0200)]
lua: remove some compatibility code
Vladimír Čunát [Wed, 26 Apr 2017 10:59:26 +0000 (12:59 +0200)]
qflags refactor: NEWS entry, ABI bump
Vladimír Čunát [Wed, 26 Apr 2017 09:39:23 +0000 (11:39 +0200)]
kr_qflags: don't use X-macros anymore
We no longer need it and it's just confusing,
e.g. the bit assignments were ignored now.
Vladimír Čunát [Tue, 25 Apr 2017 19:00:53 +0000 (21:00 +0200)]
qflags: WIP refactor - lua-related fixups
Vladimír Čunát [Tue, 25 Apr 2017 15:59:49 +0000 (17:59 +0200)]
qflags: WIP refactor - reimplement option() in lua
Vladimír Čunát [Tue, 25 Apr 2017 12:56:48 +0000 (14:56 +0200)]
qflags: WIP refactor - hand-replace complex cases
Vladimír Čunát [Tue, 1 Aug 2017 13:23:57 +0000 (15:23 +0200)]
qflags: WIP refactor - regex replacements
sed -e 's/flags |= QUERY_\([A-Z0-9_]*\);/flags.\1 = true;/g' \
-e 's/flags &= ~QUERY_\([A-Z0-9_]*\);/flags.\1 = false;/g' \
-e 's/\(flags\|options\|opts\) & QUERY_\([A-Z0-9_]*\)\()\| ||\)/\1.\2\3/g' \
-i $(git grep -l QUERY_)
Vladimír Čunát [Tue, 25 Apr 2017 11:34:35 +0000 (13:34 +0200)]
qflags: WIP refactor
Vladimír Čunát [Tue, 1 Aug 2017 14:50:29 +0000 (16:50 +0200)]
Merge !340: make: add -rpath only on non-Darwin POSIX
Vladimír Čunát [Tue, 1 Aug 2017 11:47:10 +0000 (13:47 +0200)]
make: add -rpath only on non-Darwin POSIX
I didn't recall this doesn't work on Darwin.
Vladimír Čunát [Tue, 1 Aug 2017 11:28:28 +0000 (13:28 +0200)]
Merge !338: make: add -rpath when linking to find libkres
Vladimír Čunát [Tue, 1 Aug 2017 11:23:38 +0000 (13:23 +0200)]
make: add -rpath when linking to find libkres
... even if LIBDIR isn't on a standard place.
Vladimír Čunát [Tue, 1 Aug 2017 09:36:09 +0000 (11:36 +0200)]
NEWS + docs: the aho-corasick update
Fixes https://gitlab.labs.nic.cz/knot/knot-resolver/issues/200
Vladimír Čunát [Tue, 1 Aug 2017 09:06:13 +0000 (11:06 +0200)]
add scripts/make-archive.sh
as 'git archive' won't include the submodule with aho-corasick code
Vladimír Čunát [Mon, 31 Jul 2017 16:51:14 +0000 (18:51 +0200)]
policy aho-corasick: makefile tweaks
- install the library with executable bit
- use native library extension (i.e. .dylib on Macs)
- kill their fancy CFLAGS to get better portability (e.g. -msse4.1)
- gitlab-ci: this submodule is needed before building already
- actually remove aho-corasick.lua
Vladimír Čunát [Mon, 31 Jul 2017 13:08:01 +0000 (15:08 +0200)]
Merge branch 'master' into aho-corasick
Vladimír Čunát [Fri, 28 Jul 2017 09:03:01 +0000 (11:03 +0200)]
Merge !336: release 1.3.2
Vladimír Čunát [Fri, 28 Jul 2017 08:59:56 +0000 (10:59 +0200)]
release 1.3.2
Vladimír Čunát [Thu, 27 Jul 2017 11:51:12 +0000 (13:51 +0200)]
Merge !335: predict: fixes for refreshing expiring RRs
Vladimír Čunát [Thu, 27 Jul 2017 11:38:03 +0000 (13:38 +0200)]
predict docs: fix the description of expiring records
The description didn't match the reality. Change docs for now,
even though 1% seems a bit too little to me personally.
Vladimír Čunát [Thu, 27 Jul 2017 09:25:59 +0000 (11:25 +0200)]
predict: refresh expiring records immediately
It seemed a bit strange to have 'stats' module collect expiring records
in an LRU, then once a few minutes convert that via JSON to a lua table,
and put those records into prefetching queue. Apart from complexity,
it wouldn't work well with short TTLs typical for today's CDNs, e.g. 30
or 60 seconds.
Vladimír Čunát [Wed, 26 Jul 2017 16:21:01 +0000 (18:21 +0200)]
rrcache: fix prefetching of expiring insecure RRs
Our security policy prevented those from reaching cache,
crippling the feature.
Vladimír Čunát [Thu, 27 Jul 2017 10:54:03 +0000 (12:54 +0200)]
Merge !334: bootstrap-depends.sh: fixup travis
Vladimír Čunát [Thu, 27 Jul 2017 08:36:53 +0000 (10:36 +0200)]
bootstrap-depends.sh: try to fix travis
Vladimír Čunát [Wed, 26 Jul 2017 10:29:44 +0000 (12:29 +0200)]
Merge !330: predict: fix enqueuing from predict log
Closes #154.
Vladimír Čunát [Wed, 26 Jul 2017 10:21:44 +0000 (12:21 +0200)]
update NEWS
Fixes https://gitlab.labs.nic.cz/knot/knot-resolver/issues/154
I'm sorry I broke the module in
06b0d3d4bf6c . Thaks Vita!
Vladimír Čunát [Wed, 26 Jul 2017 10:18:57 +0000 (12:18 +0200)]
Merge branch 'master' into predict-fix
... to allow NEWS update
Vladimír Čunát [Wed, 26 Jul 2017 10:15:06 +0000 (12:15 +0200)]
predict.generate: fix modular arithmetic
The epoch indices are from [1..period].
Vladimír Čunát [Mon, 24 Jul 2017 14:20:14 +0000 (16:20 +0200)]
Merge !333: dnssec: handle unknown DNSKEY/DS algorithms
Vladimír Čunát [Mon, 26 Jun 2017 09:49:49 +0000 (11:49 +0200)]
layer/validate: handle unknown algorithms
i.e. downgrade a zone to insecure when *all* DNSKEYs of the apex are
unverifiable due to unimplemented DNSKEY or DS algorithms.
Fixes https://gitlab.labs.nic.cz/knot/resolver/issues/210
Vladimír Čunát [Thu, 29 Jun 2017 09:55:29 +0000 (11:55 +0200)]
Makefile refactoring: abstract knot version
Vladimír Čunát [Mon, 24 Jul 2017 09:13:22 +0000 (11:13 +0200)]
Merge !309: hints: improve interpretation of hosts-like files
Closes #204.
Vladimír Čunát [Mon, 24 Jul 2017 09:09:15 +0000 (11:09 +0200)]
Merge branch 'master' into hints-name-order
... to fix conflict in NEWS.
Vladimír Čunát [Mon, 24 Jul 2017 09:06:17 +0000 (11:06 +0200)]
Merge !332: fixup old gitlab URLs
Vitezslav Kriz [Wed, 19 Jul 2017 14:41:01 +0000 (16:41 +0200)]
policy: update aho-corasick code
Library lua-aho-corasick is provided as git submodule. Library
build is triggered with kresd build. ahocorasick.so is copied into
modules directory.
Vladimír Čunát [Mon, 17 Jul 2017 16:39:33 +0000 (18:39 +0200)]
hints.add_hosts: error out if a bad entry is encountered
Vladimír Čunát [Mon, 17 Jul 2017 16:21:44 +0000 (18:21 +0200)]
hints: add (shadowed) PTR records for non-canonical names
Which semantically reverses part of
fbe88ccd2 .
I would personally prefer not to, but I guess it would be less consistent.
Also make the error messages a little better.
Vladimír Čunát [Mon, 17 Jul 2017 15:57:57 +0000 (17:57 +0200)]
fixup old gitlab URLs
Almost all of them were getting redirected correctly, but why keep the
old ones. Also update a couple nitpicks directly around.
Vladimír Čunát [Mon, 17 Jul 2017 15:46:06 +0000 (17:46 +0200)]
Merge !331: Dockerfile: fix repo URL
Vladimír Čunát [Mon, 17 Jul 2017 15:44:42 +0000 (17:44 +0200)]
Dockerfile: fix repo URL
Vladimír Čunát [Mon, 17 Jul 2017 12:26:23 +0000 (14:26 +0200)]
Merge !329: rrcache: mangle TTL in first answer already
Vladimír Čunát [Mon, 17 Jul 2017 10:27:23 +0000 (12:27 +0200)]
hints: fix removal of PTR records
I broke this in
3da1535ece when changing stuff around addr2reverse;
now it should be OK, after partially reversing that commit.
I'm sorry. Thanks to Vita for noticing the breakage.
Vladimír Čunát [Mon, 17 Jul 2017 09:23:52 +0000 (11:23 +0200)]
Merge !328: fix dns64 with policy.FORWARD
Vladimír Čunát [Mon, 17 Jul 2017 09:20:44 +0000 (11:20 +0200)]
dns64 docs: document that policy.FORWARD works OK
At least it seems so...
Vladimír Čunát [Fri, 14 Jul 2017 11:32:34 +0000 (13:32 +0200)]
update NEWS, docs
Fixes https://gitlab.labs.nic.cz/knot/resolver/issues/204