]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
7 years agosystemd: compatibility drop-in for kresd@.service
Tomas Krizek [Fri, 16 Feb 2018 09:20:32 +0000 (10:20 +0100)] 
systemd: compatibility drop-in for kresd@.service

Unify the drop-in files for manual activation and systemd compatibility,
since it is not recommended to use manual activation if socket
activation is supported.

Also add --forks=1 to the command, otherwise the service attempts to
start in interactive mode.

7 years agosystemd: link to kresd.systemd(7) in unit files and doc
Tomas Krizek [Thu, 15 Feb 2018 10:07:39 +0000 (11:07 +0100)] 
systemd: link to kresd.systemd(7) in unit files and doc

7 years agosystemd: provide kresd arguments in ExecStart=
Tomas Krizek [Fri, 9 Feb 2018 11:09:38 +0000 (12:09 +0100)] 
systemd: provide kresd arguments in ExecStart=

To avoid using /etc/default/kresd, provide the needed arguments directly
in the ExecStart= in the kresd@.service.

7 years agosystemd: remove kresd.service meta-service
Tomas Krizek [Fri, 9 Feb 2018 11:03:07 +0000 (12:03 +0100)] 
systemd: remove kresd.service meta-service

The kresd.service meta-service could be confusing for users and provides
no extra functionality. The system-kresd.slice can be used to restart or
stop all running instances.

Distributions shipping with /etc/init.d/kresd should symlink the
kresd.service to /dev/null to prevent systemd-sysv-generator from
creating this service.

7 years agosystemd: drop ReusePort=true, no longer needed
Daniel Kahn Gillmor [Mon, 5 Feb 2018 19:18:58 +0000 (14:18 -0500)] 
systemd: drop ReusePort=true, no longer needed

ReusePort=true isn't needed because there is a single listening
socket, which is shared across all instances.  Nothing needs to reuse
the port.

7 years agosystemd: clarify dropping Sockets= for non-socket-activated services
Daniel Kahn Gillmor [Mon, 5 Feb 2018 19:04:55 +0000 (14:04 -0500)] 
systemd: clarify dropping Sockets= for non-socket-activated services

If the adminstrator of a non-socket-activated kresd installation
doesn't clear Sockets=, then they will also inherit sockets from the
process manager, which doesn't make sense.  Help them avoid that
situation.

7 years agosystemd: no need to include defaults
Daniel Kahn Gillmor [Mon, 5 Feb 2018 18:56:09 +0000 (13:56 -0500)] 
systemd: no need to include defaults

We want these files to be as simple as possible; there's no reason to
include arguments that are already the default.

--forks=1 is the default.

and the unit files indicate WorkingDirectory already.

7 years agosystemd: drop the preset
Daniel Kahn Gillmor [Mon, 5 Feb 2018 18:55:19 +0000 (13:55 -0500)] 
systemd: drop the preset

If we only install the files in this directory, there is no need for
the preset, because kresd@1.service is not enabled by default anyway.

Simplify, simplify :)

7 years agosystemd: remove symlinks
Daniel Kahn Gillmor [Mon, 5 Feb 2018 18:53:29 +0000 (13:53 -0500)] 
systemd: remove symlinks

Administrators using bash tab completion with the full completion
utilities enabled will be able to tab-complete instantiated services.
shipping symlinks gets confused during tarball generation, and during
package installation, so it's safer and cleaner to just ship the
regular unit files.

7 years agoMore systemd service management cleanup
Daniel Kahn Gillmor [Mon, 5 Feb 2018 07:37:44 +0000 (02:37 -0500)] 
More systemd service management cleanup

Please see discussion at:
https://github.com/systemd/systemd/issues/8096

The new approach is:

 * non-templated kresd.socket and kresd-tls.socket, for the
   public-facing listening ports.  They know to invoke kresd@1.service
   if they're socket-activated.

 * kresd@.service *is* templated, to allow the admin to add more
   concurrent runners with:

      systemctl enable kresd@2.service

 * kresd-control@.socket is still templated, since each daemon has a
   separately-addressable different control port.

 * non-templated kresd.service is a dummy meta-service.  it is in the
   same slice as kresd@.service, and all the kresd@.service instances
   are PartOf= it, so you should be able to stop and restart all
   services together.  On systems like debian that ship
   /etc/init.d/kres, this also avoids having systemd-sysv-generator
   create a kresd.service based on the initscript.

 * no templated instances are explicitly instantiated during initial
   ship, but kresd@1.service should be socket-activated cleanly

Gbp-Pq: Name 0010-More-systemd-service-management-cleanup.patch

7 years agoMerge branch 'libknot' into 'master'
Petr Špaček [Thu, 15 Feb 2018 16:40:09 +0000 (17:40 +0100)] 
Merge branch 'libknot' into 'master'

Require libknot 2.6.4 to avoid mysterious problems with DNS-over-TLS

See merge request knot/knot-resolver!499

7 years agoRequire libknot 2.6.4 to avoid mysterious problems with DNS-over-TLS.
Petr Špaček [Thu, 15 Feb 2018 16:25:56 +0000 (17:25 +0100)] 
Require libknot 2.6.4 to avoid mysterious problems with DNS-over-TLS.

Respdiff on kresd under load showed that DNS-over-TLS has higher ratio
of SERVFAILs than other transports. For some reason the problem
disappeared after upgrading from libknot 2.6.3 to 2.6.4, and appeared
again after downgrade.

7 years agoMerge branch 'predict_bugfix' into 'master'
Petr Špaček [Thu, 15 Feb 2018 15:54:07 +0000 (16:54 +0100)] 
Merge branch 'predict_bugfix' into 'master'

Predict module bugfixes

See merge request knot/knot-resolver!498

7 years agostats: remove tracking of expiring records
Vladimír Čunát [Thu, 27 Jul 2017 13:00:39 +0000 (15:00 +0200)] 
stats: remove tracking of expiring records

The predict module doesn't use this way since 965bab926f (v1.3.2),
and there seems to be no other likely use case.

7 years agocache: fix broken refresh of insecure records
Vladimír Čunát [Wed, 14 Feb 2018 14:24:03 +0000 (15:24 +0100)] 
cache: fix broken refresh of insecure records

... that were about to expire.  The effect was that predict module
started the request, but cache still didn't overwrite the record if it
wasn't secure.

7 years agoMerge branch 'serve_stale' into 'master'
Petr Špaček [Thu, 15 Feb 2018 15:27:56 +0000 (16:27 +0100)] 
Merge branch 'serve_stale' into 'master'

lua: fix a mistake in kr_query, and simplify serve_stale

See merge request knot/knot-resolver!487

7 years agolua: fix a mistake in kr_query, and simplify serve_stale
Vladimír Čunát [Mon, 5 Feb 2018 18:36:41 +0000 (19:36 +0100)] 
lua: fix a mistake in kr_query, and simplify serve_stale

Fields after kr_nsrep got offset; fortunately only new fields were
added in there, unused from lua so far.

7 years agolua bindings: regenerate after renames in 06acb579
Vladimír Čunát [Thu, 15 Feb 2018 10:41:06 +0000 (11:41 +0100)] 
lua bindings: regenerate after renames in 06acb579

7 years agoMerge branch 'draft-ietf-dnsop-kskroll-sentinel-01' into 'master'
Petr Špaček [Thu, 15 Feb 2018 15:16:17 +0000 (16:16 +0100)] 
Merge branch 'draft-ietf-dnsop-kskroll-sentinel-01' into 'master'

Implement draft-ietf-dnsop-kskroll-sentinel-01

See merge request knot/knot-resolver!497

7 years agota_sentinel: fix is/not logic
Petr Špaček [Thu, 15 Feb 2018 11:41:43 +0000 (12:41 +0100)] 
ta_sentinel: fix is/not logic

I got confused by the original text in
draft-ietf-dnsop-kskroll-sentinel-00 and inverted meaning of is/not
sentinel queries.

7 years agota_sentinel: use names from draft-ietf-dnsop-kskroll-sentinel-01
Petr Špaček [Thu, 15 Feb 2018 11:40:26 +0000 (12:40 +0100)] 
ta_sentinel: use names from draft-ietf-dnsop-kskroll-sentinel-01

Version 01 uses names incompatible with version 00.

7 years agoMerge branch 'docker-git' into 'master'
Tomas Krizek [Thu, 15 Feb 2018 13:15:20 +0000 (14:15 +0100)] 
Merge branch 'docker-git' into 'master'

ci: Dockerfile.debian - add newer git

See merge request knot/knot-resolver!496

7 years agoci: Dockerfile.debian - add newer git
Tomas Krizek [Thu, 15 Feb 2018 13:02:48 +0000 (14:02 +0100)] 
ci: Dockerfile.debian - add newer git

git<=2.11 has issues with 'ls-files --recurse-submodules' command
which is used to generate upstream tarball

7 years agoMerge branch 'policy-TLS-306' into 'master'
Petr Špaček [Thu, 15 Feb 2018 09:21:02 +0000 (10:21 +0100)] 
Merge branch 'policy-TLS-306' into 'master'

policy.TLS_FORWARD: fix a bug, add test + NEWS

Closes #306

See merge request knot/knot-resolver!492

7 years agoNEWS: collect notable items up to now
Vladimír Čunát [Mon, 12 Feb 2018 15:00:23 +0000 (16:00 +0100)] 
NEWS: collect notable items up to now

7 years agopolicy.TLS_FORWARD tests: add cases from Tomas
Vladimír Čunát [Mon, 12 Feb 2018 14:49:43 +0000 (15:49 +0100)] 
policy.TLS_FORWARD tests: add cases from Tomas

7 years agopolicy.TLS_FORWARD: refusal when configuring with multiple IPs
Vladimír Čunát [Mon, 12 Feb 2018 14:36:49 +0000 (15:36 +0100)] 
policy.TLS_FORWARD: refusal when configuring with multiple IPs

Fixes https://gitlab.labs.nic.cz/knot/knot-resolver/issues/306

7 years agoMerge branch 'update-ci' into 'master'
Tomas Krizek [Wed, 14 Feb 2018 17:23:46 +0000 (18:23 +0100)] 
Merge branch 'update-ci' into 'master'

update CI

See merge request knot/knot-resolver!494

7 years agoci: add obs dependency to Dockerfile
Tomas Krizek [Wed, 14 Feb 2018 17:14:05 +0000 (18:14 +0100)] 
ci: add obs dependency to Dockerfile

7 years agoci: update respdiff config to newest version
Tomas Krizek [Wed, 14 Feb 2018 17:11:39 +0000 (18:11 +0100)] 
ci: update respdiff config to newest version

7 years agoMerge !493: stats.list(): fix returning nothing
Vladimír Čunát [Tue, 13 Feb 2018 14:11:39 +0000 (15:11 +0100)] 
Merge !493: stats.list(): fix returning nothing

7 years agostats module: fix stats.list() returning nothing
Vladimír Čunát [Tue, 13 Feb 2018 13:57:22 +0000 (14:57 +0100)] 
stats module: fix stats.list() returning nothing

I messed this up in 44c2ea6bb0 !465.

7 years agoMerge !481: detect_time_jump: keep cache on suspend-resume
Vladimír Čunát [Tue, 13 Feb 2018 10:55:39 +0000 (11:55 +0100)] 
Merge !481: detect_time_jump: keep cache on suspend-resume

Closes #284

7 years agodetect_time_jump: don't clear cache on suspend-resume
Vladimír Čunát [Fri, 2 Feb 2018 17:07:18 +0000 (18:07 +0100)] 
detect_time_jump: don't clear cache on suspend-resume

This changes more time than anticipated, as the old naming didn't apply
anymore (time of last cache clear).

7 years agoMerge branch 'fedora-symbols-again' into 'master'
Tomas Krizek [Mon, 12 Feb 2018 13:01:00 +0000 (14:01 +0100)] 
Merge branch 'fedora-symbols-again' into 'master'

Fedora symbols again

See merge request knot/knot-resolver!491

7 years agomake: hopefully fix the modules again for Fedora
Vladimír Čunát [Fri, 9 Feb 2018 14:22:47 +0000 (15:22 +0100)] 
make: hopefully fix the modules again for Fedora

- their `cc --version` doesn't start with "gcc"
- modifying CFLAGS at this point doesn't work,
  so we modify BUILD_CFLAGS instead (_vomit_)

7 years agomake: also print the linker command
Vladimír Čunát [Fri, 9 Feb 2018 14:22:12 +0000 (15:22 +0100)] 
make: also print the linker command

7 years agoMerge branch 'tls-push-refactoring' into 'master'
Petr Špaček [Fri, 9 Feb 2018 08:05:59 +0000 (09:05 +0100)] 
Merge branch 'tls-push-refactoring' into 'master'

refactoring of the tls data sending scheme

See merge request knot/knot-resolver!489

7 years agodaemon: tls; cleanup
Grigorii Demidov [Thu, 8 Feb 2018 08:07:00 +0000 (09:07 +0100)] 
daemon: tls; cleanup

7 years agodaemon: unificate tls structures to avod code duplication
Grigorii Demidov [Wed, 7 Feb 2018 16:27:01 +0000 (17:27 +0100)] 
daemon: unificate tls structures to avod code duplication

7 years agodaemon: cleanup errors; avoid discrepancy between declaration and definition of tls_c...
Grigorii Demidov [Tue, 6 Feb 2018 16:52:47 +0000 (17:52 +0100)] 
daemon: cleanup errors; avoid discrepancy between declaration and definition of tls_close()

7 years agodaemon: avoid uv_try_write() usage both in tls-client and tls-server side; bugfixes
Grigorii Demidov [Tue, 6 Feb 2018 16:41:06 +0000 (17:41 +0100)] 
daemon: avoid uv_try_write() usage both in tls-client and tls-server side; bugfixes

7 years agodaemon: server-side tls: use asynchronous network io model
Grigorii Demidov [Mon, 5 Feb 2018 17:02:14 +0000 (18:02 +0100)] 
daemon: server-side tls: use asynchronous network io model

7 years agoMerge branch 'nitpicks' into 'master'
Petr Špaček [Thu, 8 Feb 2018 13:07:15 +0000 (14:07 +0100)] 
Merge branch 'nitpicks' into 'master'

nitpicks, see commits

See merge request knot/knot-resolver!480

7 years agokr_rplan_next: remove prototype
Vladimír Čunát [Thu, 4 May 2017 08:48:55 +0000 (10:48 +0200)] 
kr_rplan_next: remove prototype

It had no implementation for years - since 456e5446ad4.

(cherry picked from commit 59126a772f1908543da68f87d646a1d08b32836f)
The commit was apparently "reverted" unintentionally when resolving
conflicts in a5b14c25b5a1.

7 years agoupdate README.md
Vladimír Čunát [Mon, 5 Feb 2018 15:13:55 +0000 (16:13 +0100)] 
update README.md

- no need to have gitter twice
- update information about modules (one cache, no alternative backends)
- add EPEL 7
- add mailing-list
- link to stable docs instead of latest master

7 years agoresolve write_extra_ranked_records: fix hiding and error
Vladimír Čunát [Mon, 15 Jan 2018 09:05:49 +0000 (10:05 +0100)] 
resolve write_extra_ranked_records: fix hiding and error

Detected by clang as dead store.

7 years agoversion module: more understandable logging
Vladimír Čunát [Mon, 5 Feb 2018 10:01:03 +0000 (11:01 +0100)] 
version module: more understandable logging

Just loading the module without option was printing that it expected
number of milliseconds, which could've been confusing.

7 years agocache: assume NSEC if ". NS" is missing in cache
Vladimír Čunát [Fri, 2 Feb 2018 10:25:52 +0000 (11:25 +0100)] 
cache: assume NSEC if ". NS" is missing in cache

This happens e.g. after cache.clear(), and currently one can stay
long-term without that record in cache.  That was effectively disabling
aggressive answers from the root zone.

This needs disabling a buggy part of Deckard test.

7 years agomain: fix --forks default
Vladimír Čunát [Thu, 1 Feb 2018 17:47:50 +0000 (18:47 +0100)] 
main: fix --forks default

It mostly worked, just by accident.
I see no use for negative initialization in this case.

7 years agoio: fix a no-return with -DNDEBUG
Vladimír Čunát [Thu, 1 Feb 2018 15:30:26 +0000 (16:30 +0100)] 
io: fix a no-return with -DNDEBUG

7 years agoMerge !486: daemon: more consistent outbound TCP timeout
Vladimír Čunát [Mon, 5 Feb 2018 12:32:17 +0000 (13:32 +0100)] 
Merge !486: daemon: more consistent outbound TCP timeout

There's no real effect, probably.

7 years agodaemon: set timeout for outbound tcp session more consistent
Grigorii Demidov [Mon, 5 Feb 2018 12:15:37 +0000 (13:15 +0100)] 
daemon: set timeout for outbound tcp session more consistent

7 years agoMerge !485: scripts: archive - dereference symlinks
Vladimír Čunát [Mon, 5 Feb 2018 11:36:49 +0000 (12:36 +0100)] 
Merge !485: scripts: archive - dereference symlinks

7 years agoscripts: archive - dereference symlinks
Tomas Krizek [Mon, 5 Feb 2018 10:18:47 +0000 (11:18 +0100)] 
scripts: archive - dereference symlinks

Symlinks are pointing to broken locations with the way we generate
source tarballs. Dereference them to avoid this issue.

7 years agoMerge !484: doc: move kresd.systemd to section 7
Vladimír Čunát [Mon, 5 Feb 2018 09:47:32 +0000 (10:47 +0100)] 
Merge !484: doc: move kresd.systemd to section 7

7 years agodoc: kresd.systemd belongs in section 7 of the manual
Daniel Kahn Gillmor [Mon, 5 Feb 2018 05:20:29 +0000 (00:20 -0500)] 
doc: kresd.systemd belongs in section 7 of the manual

"man man" says that the sections are:

       1   Executable programs or shell commands
       2   System calls (functions provided by the kernel)
       3   Library calls (functions within program libraries)
       4   Special files (usually found in /dev)
       5   File formats and conventions eg /etc/passwd
       6   Games
       7   Miscellaneous  (including  macro  packages  and  conventions), e.g.
           man(7), groff(7)
       8   System administration commands (usually only for root)
       9   Kernel routines [Non standard]

Since there is no command named kresd.system it does not belong in
section 8.

Section 7 includes conventions and useful patterns like gitcli(7),
which seems more similar to the documentation that is supplied in
kresd.systemd.

7 years agoMerge !483: systemd defaults: turn off verbose logging
Vladimír Čunát [Mon, 5 Feb 2018 09:21:55 +0000 (10:21 +0100)] 
Merge !483: systemd defaults: turn off verbose logging

7 years agosystemd defaults: turn off verbose logging
Tomas Krizek [Mon, 5 Feb 2018 09:10:35 +0000 (10:10 +0100)] 
systemd defaults: turn off verbose logging

Verbose logging should be used for debugging purposes, as it generates a
lot of output. It shouldn't be turned on by default for normal mode of
operation.

7 years agoMerge branch 'ci-respdiff' into 'master'
Tomas Krizek [Fri, 2 Feb 2018 13:23:58 +0000 (14:23 +0100)] 
Merge branch 'ci-respdiff' into 'master'

ci: respdiff - use ipv4, increase timeout, collect kresd.log

See merge request knot/knot-resolver!473

7 years agoci: decrease respdiff mismatch tolerance back to 1%
Tomas Krizek [Wed, 31 Jan 2018 13:48:32 +0000 (14:48 +0100)] 
ci: decrease respdiff mismatch tolerance back to 1%

This reverts threshold that was bumped in
commit de7a4a9658a769595d952a857d7d0aed066f8b5c.

7 years agoci: increase respdiff timeout to 11s
Tomas Krizek [Wed, 31 Jan 2018 13:44:44 +0000 (14:44 +0100)] 
ci: increase respdiff timeout to 11s

This decreases the amount of timeouts, which become SERVFAILs instead.
Overall, this results in more valid answers.

7 years agoci: run kresd in verbose mode and collect log
Tomas Krizek [Wed, 31 Jan 2018 13:44:11 +0000 (14:44 +0100)] 
ci: run kresd in verbose mode and collect log

7 years agoci: configure servers to use IPv4 in respdiff
Tomas Krizek [Wed, 31 Jan 2018 13:41:45 +0000 (14:41 +0100)] 
ci: configure servers to use IPv4 in respdiff

IPv6 isn't currently supported in our Docker image and using
it during resolution leads to a larger amount of timeouts.

7 years agoMerge !479: scripts: change development's tarball name
Vladimír Čunát [Thu, 1 Feb 2018 14:15:59 +0000 (15:15 +0100)] 
Merge !479: scripts: change development's tarball name

7 years agoscripts: change development's tarball name
Tomas Krizek [Thu, 1 Feb 2018 13:35:28 +0000 (14:35 +0100)] 
scripts: change development's tarball name

To be able to use development version tarballs for creating distro
packages for Fedora/CentOS, the pre-release name can't contain
hyphens.

7 years agoMerge branch 'systemd-fixes' into 'master'
Tomas Krizek [Thu, 1 Feb 2018 10:18:55 +0000 (11:18 +0100)] 
Merge branch 'systemd-fixes' into 'master'

systemd: fixes for unit files

See merge request knot/knot-resolver!476

7 years agosystemd: move Service directive to Socket for kresd-tls, kresd-control
Tomas Krizek [Wed, 31 Jan 2018 18:39:47 +0000 (19:39 +0100)] 
systemd: move Service directive to Socket for kresd-tls, kresd-control

The Service directives belong to the Socket section. Otherwise,
systemd fails to find the associated service and the socket can't start.

7 years agosystemd: remove unnecessary Service directive from kresd@.socket
Tomas Krizek [Wed, 31 Jan 2018 18:38:38 +0000 (19:38 +0100)] 
systemd: remove unnecessary Service directive from kresd@.socket

7 years agosystemd: add missing kresd@1.service symlink
Tomas Krizek [Wed, 31 Jan 2018 18:33:55 +0000 (19:33 +0100)] 
systemd: add missing kresd@1.service symlink

7 years agoMerge branch 'tls-errmsg-fix' into 'master'
Tomas Krizek [Thu, 1 Feb 2018 10:04:08 +0000 (11:04 +0100)] 
Merge branch 'tls-errmsg-fix' into 'master'

tls_client: fix error message logging

See merge request knot/knot-resolver!478

7 years agotls_client: fix error message logging
Tomas Krizek [Thu, 1 Feb 2018 09:44:55 +0000 (10:44 +0100)] 
tls_client: fix error message logging

7 years agoMerge branch 'gnutls-compat' into 'master'
Grigorii Demidov [Thu, 1 Feb 2018 09:16:51 +0000 (10:16 +0100)] 
Merge branch 'gnutls-compat' into 'master'

tls_client: compatibility for older gnutls version

See merge request knot/knot-resolver!475

7 years agotls_client: compatibility for older gnutls version
Tomas Krizek [Wed, 31 Jan 2018 17:16:09 +0000 (18:16 +0100)] 
tls_client: compatibility for older gnutls version

When older gnutls version is used, make sure not to use undeclared
symbols or functions.

7 years agoMerge branch 'systemd-run-permissions' into 'master'
Petr Špaček [Thu, 1 Feb 2018 08:00:40 +0000 (09:00 +0100)] 
Merge branch 'systemd-run-permissions' into 'master'

drop world-executable permissions on /run/knot-resolver

See merge request knot/knot-resolver!477

7 years agodrop world-executable permissions on /run/knot-resolver
Daniel Kahn Gillmor [Thu, 1 Feb 2018 05:52:07 +0000 (00:52 -0500)] 
drop world-executable permissions on /run/knot-resolver

It's not clear why anyone other that the superuser needs to be able to
descend into /run/knot-resolver, so we should drop this extra
permission.

it appears to have been added
e0f33604fac3bdd6f105ed0c50a4a08f562c72f8, but the log message for that
commit doesn't explain why the permission needs to be loosened.

The main situation that calls for executable but not readable
directories is when a directory contains something at a known location
that everyone must be able to reach, but also contains some sensitive
file with a name that itself is unguessable (i.e. high entropy
string).  That doesn't appear to be the case here.

By principle of least privilege, we should leave it locked down unless
there's a clear justification for opening it up.

7 years agoMerge !474: misc nitpicks (see commits)
Vladimír Čunát [Wed, 31 Jan 2018 15:54:10 +0000 (16:54 +0100)] 
Merge !474: misc nitpicks (see commits)

7 years agoresolve: verbose-log dropping AD because of opt-out
Vladimír Čunát [Wed, 31 Jan 2018 15:42:43 +0000 (16:42 +0100)] 
resolve: verbose-log dropping AD because of opt-out

7 years agomain: indentation in `parse_args()`
Vladimír Čunát [Wed, 31 Jan 2018 15:41:29 +0000 (16:41 +0100)] 
main: indentation in `parse_args()`

7 years agoresolve: document some fields
Vladimír Čunát [Wed, 31 Jan 2018 15:37:44 +0000 (16:37 +0100)] 
resolve: document some fields

7 years agoMerge !472: release 2.0.0 v2.0.0
Vladimír Čunát [Wed, 31 Jan 2018 13:25:52 +0000 (14:25 +0100)] 
Merge !472: release 2.0.0

7 years agorelease 2.0.0
Vladimír Čunát [Wed, 31 Jan 2018 11:53:18 +0000 (12:53 +0100)] 
release 2.0.0

7 years agoMerge !470: daemon: restart client's tcp session timer after answer
Vladimír Čunát [Wed, 31 Jan 2018 13:15:07 +0000 (14:15 +0100)] 
Merge !470: daemon: restart client's tcp session timer after answer

7 years agodaemon: restart client's tcp session timeout timer right after answer
Grigorii Demidov [Wed, 31 Jan 2018 08:30:17 +0000 (09:30 +0100)] 
daemon: restart client's tcp session timeout timer right after answer

7 years agoMerge !471: doc: fix the build on readthedocs.org
Vladimír Čunát [Wed, 31 Jan 2018 09:42:50 +0000 (10:42 +0100)] 
Merge !471: doc: fix the build on readthedocs.org

7 years agodoc: fix the build on readthedocs.org
Vladimír Čunát [Wed, 31 Jan 2018 09:24:07 +0000 (10:24 +0100)] 
doc: fix the build on readthedocs.org

The version restricion has remained way too long, apparently.

7 years agoMerge !468: Add serve_stale module (demo)
Vladimír Čunát [Wed, 31 Jan 2018 08:50:59 +0000 (09:50 +0100)] 
Merge !468: Add serve_stale module (demo)

7 years agonew serve_stale module
Vladimír Čunát [Mon, 15 Jan 2018 16:22:01 +0000 (17:22 +0100)] 
new serve_stale module

Decision function is separated out.

7 years agodaemon: decrease timeouts
Vladimír Čunát [Mon, 29 Jan 2018 15:37:41 +0000 (16:37 +0100)] 
daemon: decrease timeouts

Let's allow 4 UDP + 4 TCP attempts, within 2+2 seconds,
and then start also using stale cache.

7 years agolua: regenerate bindings
Vladimír Čunát [Mon, 29 Jan 2018 15:34:48 +0000 (16:34 +0100)] 
lua: regenerate bindings

Some parts were hand-written, apparently.

7 years agoMerge branch 'ci-respdiff' into 'master'
Tomas Krizek [Tue, 30 Jan 2018 18:21:02 +0000 (19:21 +0100)] 
Merge branch 'ci-respdiff' into 'master'

ci: respdiff - update config

See merge request knot/knot-resolver!469

7 years agoci: increase respdiff mismatch tolerance to 3%
Tomas Krizek [Tue, 30 Jan 2018 17:29:34 +0000 (18:29 +0100)] 
ci: increase respdiff mismatch tolerance to 3%

Since we've added the `timeout` metric to respdiff, it uncovered
an issue when running in Docker, where a large amount of queries
(~2% / resolver) end with a timeout.

Until the issue is investigated and fixed, temporarily bump the CI's
tolerance for the test to pass to 3%.

7 years agoci: respdiff - add timeout field to config
Tomas Krizek [Tue, 30 Jan 2018 16:31:57 +0000 (17:31 +0100)] 
ci: respdiff - add timeout field to config

7 years agoMerge branch 'systemd-multiprocess' into 'master'
Tomas Krizek [Tue, 30 Jan 2018 14:54:50 +0000 (15:54 +0100)] 
Merge branch 'systemd-multiprocess' into 'master'

systemd: enable multiple processes with socket activation

See merge request knot/knot-resolver!464

7 years agosystemd: enable multiple processes with socket activation
Tomas Krizek [Thu, 25 Jan 2018 17:17:09 +0000 (18:17 +0100)] 
systemd: enable multiple processes with socket activation

In order to be able to spawn multiple processes with socket activation,
systemd template (see systemd.unit(5)) is used. This allows the user to
create any amount of instances by simply providing a unique name for
each of them. The most sensible instance identifiers are natural
numbers, but any convention could be used.

The default recommended service name becomes kresd@1.service, replacing
the older kresd.service. Sockets are renamed in a similar way. Users are
able to take advantage of bash expansion to spawn/control multiple
processes, e.g. "systemctl start kresd@{1..16}.service"

The socket-activated service can now be launched directly with
"systemctl start kresd@1.service", which will request the associated
sockets without the need for any extra priviledges or capabilities.

Stopping the kresd service now also stops the associated sockets.
Stopping any individual socket is an isolated opration now (stopping
kresd@1.socket no longer stop kresd-tls@1.socket and
kresd-control@1.socket).

Users and packagers are also encouraged to use drop-in files for extra
configuration or modifications to ensure compatibility with their
distribution.

7 years agoconfig.lua: exit if kresd isn't listening on any interface
Tomas Krizek [Thu, 25 Jan 2018 17:16:34 +0000 (18:16 +0100)] 
config.lua: exit if kresd isn't listening on any interface

7 years agoMerge !422: aggressive use of cache DNSSEC-validated cache
Vladimír Čunát [Tue, 30 Jan 2018 14:30:45 +0000 (15:30 +0100)] 
Merge !422: aggressive use of cache DNSSEC-validated cache

It's not for NSEC3, etc.  We'll fill NEWS soon.

7 years agolint:c nitpicks
Vladimír Čunát [Tue, 30 Jan 2018 14:18:08 +0000 (15:18 +0100)] 
lint:c nitpicks

7 years agodoc: fixup after moving files around
Vladimír Čunát [Tue, 30 Jan 2018 14:17:04 +0000 (15:17 +0100)] 
doc: fixup after moving files around

7 years agoMerge tag 'v1.99.1-alpha' into cache-aggr-wip
Vladimír Čunát [Tue, 30 Jan 2018 14:14:11 +0000 (15:14 +0100)] 
Merge tag 'v1.99.1-alpha' into cache-aggr-wip

It's just to have the tag in history.  The files are unchanged.