]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
7 years agomeson: tests/config - run additional tests from tree
Tomas Krizek [Thu, 31 Jan 2019 16:01:36 +0000 (17:01 +0100)] 
meson: tests/config - run additional tests from tree

7 years agomodules/predict: move test to module dir
Tomas Krizek [Thu, 31 Jan 2019 15:48:58 +0000 (16:48 +0100)] 
modules/predict: move test to module dir

7 years agomeson: tests/config - add keyfile tests
Tomas Krizek [Thu, 31 Jan 2019 15:41:39 +0000 (16:41 +0100)] 
meson: tests/config - add keyfile tests

7 years agomeson: tests/config - run worker test
Tomas Krizek [Thu, 31 Jan 2019 14:43:37 +0000 (15:43 +0100)] 
meson: tests/config - run worker test

7 years agomeson: tests/config - run simple config tests
Tomas Krizek [Thu, 31 Jan 2019 14:36:24 +0000 (15:36 +0100)] 
meson: tests/config - run simple config tests

7 years agotests/config: remove obsolete variable
Tomas Krizek [Thu, 31 Jan 2019 14:33:21 +0000 (15:33 +0100)] 
tests/config: remove obsolete variable

7 years agotests/test_cache.c: remove obsolete test
Tomas Krizek [Thu, 7 Mar 2019 17:17:53 +0000 (18:17 +0100)] 
tests/test_cache.c: remove obsolete test

7 years agomeson: unit tests - move test closer to code
Tomas Krizek [Thu, 31 Jan 2019 12:44:33 +0000 (13:44 +0100)] 
meson: unit tests - move test closer to code

7 years agomeson: tests - unit tests without coverage
Tomas Krizek [Thu, 31 Jan 2019 11:46:48 +0000 (12:46 +0100)] 
meson: tests - unit tests without coverage

7 years agomeson: doc - build doxyxml and html
Tomas Krizek [Wed, 30 Jan 2019 16:42:21 +0000 (17:42 +0100)] 
meson: doc - build doxyxml and html

7 years ago.gitlabci: check for newer root.hints nightly
Tomas Krizek [Wed, 30 Jan 2019 13:43:12 +0000 (14:43 +0100)] 
.gitlabci: check for newer root.hints nightly

7 years agoscripts: add utility script to check for newer root.hints
Tomas Krizek [Wed, 30 Jan 2019 12:51:32 +0000 (13:51 +0100)] 
scripts: add utility script to check for newer root.hints

7 years agomeson: etc install configs and files
Tomas Krizek [Wed, 30 Jan 2019 12:20:05 +0000 (13:20 +0100)] 
meson: etc install configs and files

7 years agomeson: turn on C compiler warnings
Tomas Krizek [Wed, 30 Jan 2019 11:14:54 +0000 (12:14 +0100)] 
meson: turn on C compiler warnings

7 years ago.gitignore: sort
Tomas Krizek [Wed, 30 Jan 2019 11:03:18 +0000 (12:03 +0100)] 
.gitignore: sort

7 years ago.gitignore: add generated dnstap files
Tomas Krizek [Wed, 30 Jan 2019 09:50:51 +0000 (10:50 +0100)] 
.gitignore: add generated dnstap files

7 years agomeson: modules/http - install static files
Tomas Krizek [Wed, 30 Jan 2019 09:48:48 +0000 (10:48 +0100)] 
meson: modules/http - install static files

7 years agomeson: modules/dnstap - build
Tomas Krizek [Tue, 29 Jan 2019 17:43:13 +0000 (18:43 +0100)] 
meson: modules/dnstap - build

7 years agomodules/dnstap: remove generated dnstap.pb-c.* files
Tomas Krizek [Tue, 29 Jan 2019 16:20:23 +0000 (17:20 +0100)] 
modules/dnstap: remove generated dnstap.pb-c.* files

7 years agomeson: cleanup
Tomas Krizek [Tue, 29 Jan 2019 15:51:17 +0000 (16:51 +0100)] 
meson: cleanup

7 years agomeson: modules/stats - build
Tomas Krizek [Tue, 29 Jan 2019 15:37:31 +0000 (16:37 +0100)] 
meson: modules/stats - build

7 years agomodules/stats/stats.c: add missing lua.h
Tomas Krizek [Tue, 29 Jan 2019 15:36:09 +0000 (16:36 +0100)] 
modules/stats/stats.c: add missing lua.h

7 years agomodules/stats/stats.c: remove trailing whitespace
Tomas Krizek [Tue, 29 Jan 2019 15:35:37 +0000 (16:35 +0100)] 
modules/stats/stats.c: remove trailing whitespace

7 years agomeson: modules/nsid - build
Tomas Krizek [Tue, 29 Jan 2019 15:25:56 +0000 (16:25 +0100)] 
meson: modules/nsid - build

7 years agomeson: modules - build as shared_module, not library
Tomas Krizek [Tue, 29 Jan 2019 15:21:57 +0000 (16:21 +0100)] 
meson: modules - build as shared_module, not library

7 years agomeson: modules/hints build
Tomas Krizek [Tue, 29 Jan 2019 15:19:11 +0000 (16:19 +0100)] 
meson: modules/hints build

7 years agomeson: modules - remove unnecessary link_flags
Tomas Krizek [Tue, 29 Jan 2019 15:16:45 +0000 (16:16 +0100)] 
meson: modules - remove unnecessary link_flags

7 years agomeson: daemon - remove global link_args
Tomas Krizek [Tue, 29 Jan 2019 15:14:15 +0000 (16:14 +0100)] 
meson: daemon - remove global link_args

7 years agomeson: modules/bogus_log build
Tomas Krizek [Tue, 29 Jan 2019 14:40:50 +0000 (15:40 +0100)] 
meson: modules/bogus_log build

7 years agomeson: modules/edns_keepalive build
Tomas Krizek [Tue, 29 Jan 2019 13:48:11 +0000 (14:48 +0100)] 
meson: modules/edns_keepalive build

First functional kresd compilation \o/

7 years agomeson: modules/policy - compile lua-aho-corasick
Tomas Krizek [Fri, 25 Jan 2019 15:24:54 +0000 (16:24 +0100)] 
meson: modules/policy - compile lua-aho-corasick

7 years agomeson: add luajit dependency to lib
Tomas Krizek [Fri, 25 Jan 2019 15:23:29 +0000 (16:23 +0100)] 
meson: add luajit dependency to lib

7 years agomeson: modules/daf - install daf.js
Tomas Krizek [Fri, 25 Jan 2019 14:16:49 +0000 (15:16 +0100)] 
meson: modules/daf - install daf.js

7 years agomeson/daemon/lua: unify lua mod installation
Tomas Krizek [Fri, 25 Jan 2019 14:15:19 +0000 (15:15 +0100)] 
meson/daemon/lua: unify lua mod installation

7 years agomeson/modules: install lua modules
Tomas Krizek [Fri, 25 Jan 2019 13:51:43 +0000 (14:51 +0100)] 
meson/modules: install lua modules

7 years agomeson/daemon/lua: install trust_anchors.lua
Tomas Krizek [Fri, 25 Jan 2019 13:33:03 +0000 (14:33 +0100)] 
meson/daemon/lua: install trust_anchors.lua

7 years agomeson: move etc_dir to config
Tomas Krizek [Fri, 25 Jan 2019 13:22:36 +0000 (14:22 +0100)] 
meson: move etc_dir to config

7 years agomeson: add option keyfile_default
Tomas Krizek [Fri, 25 Jan 2019 13:16:48 +0000 (14:16 +0100)] 
meson: add option keyfile_default

7 years agomeson: use proper etc_dir location
Tomas Krizek [Fri, 25 Jan 2019 12:57:28 +0000 (13:57 +0100)] 
meson: use proper etc_dir location

7 years agomeson: add option to override modules dir
Tomas Krizek [Fri, 25 Jan 2019 12:45:28 +0000 (13:45 +0100)] 
meson: add option to override modules dir

7 years agomeson/daemon/lua: install modules from subdir
Tomas Krizek [Fri, 25 Jan 2019 12:28:44 +0000 (13:28 +0100)] 
meson/daemon/lua: install modules from subdir

7 years agomeson: use build options for client/daemon builds
Tomas Krizek [Fri, 25 Jan 2019 10:57:37 +0000 (11:57 +0100)] 
meson: use build options for client/daemon builds

7 years agomeson/daemon/lua: install modules
Tomas Krizek [Fri, 25 Jan 2019 09:36:08 +0000 (10:36 +0100)] 
meson/daemon/lua: install modules

7 years agomeson/daemon: fix *.lua -> *.inc conversion
Tomas Krizek [Thu, 24 Jan 2019 16:04:40 +0000 (17:04 +0100)] 
meson/daemon: fix *.lua -> *.inc conversion

7 years agomeson: clean up client subdir
Tomas Krizek [Thu, 24 Jan 2019 15:30:49 +0000 (16:30 +0100)] 
meson: clean up client subdir

7 years agomeson: build daemon in a subdir
Tomas Krizek [Thu, 24 Jan 2019 15:00:21 +0000 (16:00 +0100)] 
meson: build daemon in a subdir

7 years agomeson: update dependencies
Tomas Krizek [Thu, 24 Jan 2019 14:47:58 +0000 (15:47 +0100)] 
meson: update dependencies

7 years agomeson: build client as a subdir
Tomas Krizek [Thu, 24 Jan 2019 14:28:01 +0000 (15:28 +0100)] 
meson: build client as a subdir

7 years agomeson: build lib as subdir
Tomas Krizek [Thu, 24 Jan 2019 14:09:04 +0000 (15:09 +0100)] 
meson: build lib as subdir

7 years agomeson: build contrib as a subdir
Tomas Krizek [Thu, 24 Jan 2019 13:58:01 +0000 (14:58 +0100)] 
meson: build contrib as a subdir

7 years agocontrib: drop embedded lmdb support
Tomas Krizek [Thu, 24 Jan 2019 13:49:23 +0000 (14:49 +0100)] 
contrib: drop embedded lmdb support

7 years agomeson: initial cleanup
Tomas Krizek [Thu, 24 Jan 2019 13:45:30 +0000 (14:45 +0100)] 
meson: initial cleanup

7 years agomeson: kresd builds \o/
Tomas Krizek [Tue, 22 Jan 2019 10:07:45 +0000 (11:07 +0100)] 
meson: kresd builds \o/

7 years agomeson: initial attempt
Jan Vcelak [Wed, 17 Oct 2018 22:06:00 +0000 (00:06 +0200)] 
meson: initial attempt

7 years agoMerge branch 'nitpicks' into 'master'
Petr Špaček [Tue, 12 Mar 2019 09:09:41 +0000 (09:09 +0000)] 
Merge branch 'nitpicks' into 'master'

unify packet to string conversion between C and Lua

See merge request knot/knot-resolver!785

7 years agodaemon/main nitpick: unify exit code number handling
Vladimír Čunát [Thu, 28 Feb 2019 16:52:51 +0000 (17:52 +0100)] 
daemon/main nitpick: unify exit code number handling

7 years agounify packet to string conversion between C and Lua
Petr Špaček [Tue, 30 Oct 2018 12:37:18 +0000 (13:37 +0100)] 
unify packet to string conversion between C and Lua

There is no reason to have two distinct functions to do the same task,
especially if the Lua version did not print all the information.
(Found and amended a bit by vcunat.)

7 years agoMerge branch 'servfail-retry' into 'master'
Petr Špaček [Fri, 8 Mar 2019 11:07:31 +0000 (11:07 +0000)] 
Merge branch 'servfail-retry' into 'master'

fix fallback when SERVFAIL or REFUSED is received from upstream

See merge request knot/knot-resolver!784

7 years agoNEWS: merge the "Improvements" sections
Vladimír Čunát [Fri, 8 Mar 2019 10:04:34 +0000 (11:04 +0100)] 
NEWS: merge the "Improvements" sections

7 years agoresolve, iterate: fix fallback when upstream SERVFAILs
Vladimír Čunát [Thu, 7 Mar 2019 14:39:11 +0000 (15:39 +0100)] 
resolve, iterate: fix fallback when upstream SERVFAILs

or REFUSEs.  We typically ended up retrying with the same server,
which is almost never good.  Now we remove the server from the set.

Nitpick: a couple kr_query fields are reordered for better packing.

7 years agoMerge branch 'cache-stats' into 'master'
Petr Špaček [Thu, 7 Mar 2019 16:26:15 +0000 (16:26 +0000)] 
Merge branch 'cache-stats' into 'master'

reworked cache stats

See merge request knot/knot-resolver!775

7 years agocache: remove a useless internal function
Vladimír Čunát [Tue, 5 Mar 2019 17:36:01 +0000 (18:36 +0100)] 
cache: remove a useless internal function

7 years agoreworked cache stats
Petr Špaček [Tue, 26 Feb 2019 16:06:24 +0000 (17:06 +0100)] 
reworked cache stats

All cache operations are now counted. These are internal cache
operations and do not map directly to number of queries or even number
of RRs.

Closes: !515
7 years agocache: use cache_op helper when possible
Petr Špaček [Tue, 26 Feb 2019 13:02:09 +0000 (14:02 +0100)] 
cache: use cache_op helper when possible

7 years agogitattributes: specify word diff regex for C and C++ sources
Petr Špaček [Tue, 26 Feb 2019 11:08:53 +0000 (12:08 +0100)] 
gitattributes: specify word diff regex for C and C++ sources

This makes git diff --word-diff easier to read.

7 years agocache: rename kr_cache_sync -> kr_cache_commit
Petr Špaček [Tue, 26 Feb 2019 10:57:59 +0000 (11:57 +0100)] 
cache: rename kr_cache_sync -> kr_cache_commit

Function originally called kr_cache_sync() was in fact responsible
for calling mdb_txn_commit() and not mdb_env_sync() which was confusing.

7 years agocache: remove unsupported prune() operation from API
Petr Špaček [Tue, 26 Feb 2019 08:20:31 +0000 (09:20 +0100)] 
cache: remove unsupported prune() operation from API

Cache cleaning needs to be done using separate mechanism
because cleaning it from worker process does not fit well into our
processing model. It is going to be a separate daemon.

7 years agoMerge !773: misc. ubsan fixes
Vladimír Čunát [Tue, 5 Mar 2019 16:55:38 +0000 (16:55 +0000)] 
Merge !773: misc. ubsan fixes

7 years agolib/utils kr_memreserve(): fix a ubsan nitpick
Vladimír Čunát [Tue, 19 Feb 2019 19:27:50 +0000 (20:27 +0100)] 
lib/utils kr_memreserve(): fix a ubsan nitpick

7 years agolib/generic/lru: fix alignment of contained values
Vladimír Čunát [Tue, 19 Feb 2019 18:58:34 +0000 (19:58 +0100)] 
lib/generic/lru: fix alignment of contained values

7 years agolib/generic/lru: fix alignment of struct lru
Vladimír Čunát [Tue, 19 Feb 2019 18:41:19 +0000 (19:41 +0100)] 
lib/generic/lru: fix alignment of struct lru

7 years agocontrib/murmurhash3: fix bad type punning
Vladimír Čunát [Tue, 19 Feb 2019 18:06:07 +0000 (19:06 +0100)] 
contrib/murmurhash3: fix bad type punning

7 years agoMerge !781: fix flushing of messages to logs in some cases
Vladimír Čunát [Tue, 5 Mar 2019 14:46:55 +0000 (14:46 +0000)] 
Merge !781: fix flushing of messages to logs in some cases

7 years agotreewide: fix flushing of messages to logs in some cases
Vladimír Čunát [Tue, 5 Mar 2019 13:56:38 +0000 (14:56 +0100)] 
treewide: fix flushing of messages to logs in some cases

... by setting FILE* properties and replace the explicit flushes.
Explicit flushing couldn't be well done e.g. for lua's error() function.
In particular, we had problems with journald not getting logs timely.

7 years agoMerge branch 'rpz-errors' into 'master'
Tomas Krizek [Tue, 5 Mar 2019 14:39:59 +0000 (14:39 +0000)] 
Merge branch 'rpz-errors' into 'master'

modules/policy.RPZ: log libzonefile errors as well

See merge request knot/knot-resolver!780

7 years agomodules/policy.RPZ: log libzonefile errors as well
Vladimír Čunát [Tue, 5 Mar 2019 07:55:07 +0000 (08:55 +0100)] 
modules/policy.RPZ: log libzonefile errors as well

7 years agoMerge branch 'stdin-null' into 'master'
Petr Špaček [Thu, 28 Feb 2019 13:30:16 +0000 (13:30 +0000)] 
Merge branch 'stdin-null' into 'master'

lua event.socket(): remove a hacky workaround

See merge request knot/knot-resolver!778

7 years agotests: rename forgotten worker.test.lua
Vladimír Čunát [Thu, 28 Feb 2019 09:19:48 +0000 (10:19 +0100)] 
tests: rename forgotten worker.test.lua

7 years agolua event.socket(): disable a hacky workaround
Vladimír Čunát [Thu, 28 Feb 2019 06:39:47 +0000 (07:39 +0100)] 
lua event.socket(): disable a hacky workaround

It should be fixed in quite old libuv versions already:
https://github.com/libuv/libuv/issues/883

7 years agoMerge branch 'docker-certs' into 'master'
Tomas Krizek [Thu, 28 Feb 2019 09:18:39 +0000 (09:18 +0000)] 
Merge branch 'docker-certs' into 'master'

Add ca-certificates to runtime on Dockerfile

See merge request knot/knot-resolver!779

7 years agoAdd ca-certificates to runtime on Dockerfile
Jayson Reis [Wed, 27 Feb 2019 18:55:32 +0000 (19:55 +0100)] 
Add ca-certificates to runtime on Dockerfile

7 years agoMerge branch 'addr-split-port' into 'master'
Petr Špaček [Mon, 25 Feb 2019 13:53:20 +0000 (13:53 +0000)] 
Merge branch 'addr-split-port' into 'master'

Splitting port from IP address

See merge request knot/knot-resolver!776

7 years agomodules/policy: support '#' for separating port numbers
Vladimír Čunát [Mon, 25 Feb 2019 10:49:32 +0000 (11:49 +0100)] 
modules/policy: support '#' for separating port numbers

and deduplicate the parsing logic.

7 years agolib/utils kr_straddr_split(): simplify the API
Vladimír Čunát [Thu, 21 Feb 2019 16:19:08 +0000 (17:19 +0100)] 
lib/utils kr_straddr_split(): simplify the API

After 83539eb7f it was a bit complicated.  It allowed to save a memcpy
of the address in case no port was specified, but we only need to do the
split when changing configuration, so it was overzealous optimization.

7 years agoMerge branch 'tls-sni' into 'master'
Petr Špaček [Mon, 25 Feb 2019 10:10:30 +0000 (10:10 +0000)] 
Merge branch 'tls-sni' into 'master'

policy.TLS_FORWARD: send SNI on wire if configured

See merge request knot/knot-resolver!762

7 years agodaemon: improve readability of TLS parameter handling
Petr Špaček [Fri, 22 Feb 2019 09:28:06 +0000 (10:28 +0100)] 
daemon: improve readability of TLS parameter handling

7 years agodaemon: split TLS authentication into smaller functions
Petr Špaček [Thu, 21 Feb 2019 15:02:42 +0000 (16:02 +0100)] 
daemon: split TLS authentication into smaller functions

7 years agonitpicks
Petr Špaček [Fri, 15 Feb 2019 12:25:37 +0000 (13:25 +0100)] 
nitpicks

7 years agodaemon: rework handling of TLS authentication params
Vladimír Čunát [Thu, 31 Jan 2019 16:00:22 +0000 (17:00 +0100)] 
daemon: rework handling of TLS authentication params

It's mainly about the way we parse and validate them.

Almost all of the parts of validation that were being done
in modules/policy/policy.lua and daemon/tls.c got moved
to daemon/bindings/net.c, so it's easier to follow that.
Also more checks are being done now, e.g. contents of .pin_sha256
and .hostname strings.

7 years agopolicy.TLS_FORWARD: send SNI on wire if configured
Vladimír Čunát [Wed, 23 Jan 2019 17:56:51 +0000 (18:56 +0100)] 
policy.TLS_FORWARD: send SNI on wire if configured

In https world it's standard to do that, and it's relied on.
Real-life example: 8.8.8.8#853 over TLSv1.3 won't send a certificate
if we don't send SNI (no idea why; also they do send it with TLSv1.2).

As a consequence, we no longer allow multiple hostnames per
address-port tuple, but that didn't seem useful.

7 years agoMerge !774: various compiler warning fixes
Vladimír Čunát [Fri, 22 Feb 2019 10:04:05 +0000 (10:04 +0000)] 
Merge !774: various compiler warning fixes

7 years agodaemon/network: avoid unused functions and variables
Tomas Krizek [Mon, 18 Feb 2019 13:10:11 +0000 (14:10 +0100)] 
daemon/network: avoid unused functions and variables

Make sure gcc doesn't produce unused func/var warnings when using
optional compilation. This fixes three such issues on CentOS 7.

7 years agodaemon/engine: avoid unused variable with DNDEBUG
Tomas Krizek [Thu, 14 Feb 2019 14:52:54 +0000 (15:52 +0100)] 
daemon/engine: avoid unused variable with DNDEBUG

7 years agopytests/tlsproxy: fix C warnings
Tomas Krizek [Tue, 12 Feb 2019 12:37:04 +0000 (13:37 +0100)] 
pytests/tlsproxy: fix C warnings

7 years agonitpick fixes for clang-tidy
Vladimír Čunát [Thu, 21 Feb 2019 14:15:18 +0000 (15:15 +0100)] 
nitpick fixes for clang-tidy

7 years agotest nitpicks: fix -Wpedantic issues
Vladimír Čunát [Thu, 21 Feb 2019 10:52:46 +0000 (11:52 +0100)] 
test nitpicks: fix -Wpedantic issues

7 years agoMerge branch 'doc-rename-flowcharts' into 'master'
Tomas Krizek [Mon, 18 Feb 2019 09:30:06 +0000 (09:30 +0000)] 
Merge branch 'doc-rename-flowcharts' into 'master'

doc/flowcharts: use underscores instead of spaces in filename

See merge request knot/knot-resolver!772

7 years agodoc/flowcharts: use underscores instead of spaces in filename
Tomas Krizek [Fri, 15 Feb 2019 09:45:03 +0000 (10:45 +0100)] 
doc/flowcharts: use underscores instead of spaces in filename

7 years agoMerge branch 'doc-flowcharts' into 'master'
Petr Špaček [Thu, 14 Feb 2019 13:37:07 +0000 (13:37 +0000)] 
Merge branch 'doc-flowcharts' into 'master'

doc: attempt on documenting of some kresd algorithms

See merge request knot/knot-resolver!731

7 years agodoc/flowcharts: minor additions and restructurization
Grigorii Demidov [Wed, 2 Jan 2019 16:50:33 +0000 (17:50 +0100)] 
doc/flowcharts: minor additions and restructurization