]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
7 years agolib/nsrep: cleanup
Grigorii Demidov [Thu, 22 Mar 2018 10:54:52 +0000 (11:54 +0100)] 
lib/nsrep: cleanup

7 years agolib/nsrep: tuning of serve-stale parameters; valid NS's sometimes been ignored by...
Grigorii Demidov [Wed, 21 Mar 2018 18:15:22 +0000 (19:15 +0100)] 
lib/nsrep: tuning of serve-stale parameters; valid NS's sometimes been ignored by ns election algorithm, fixed

7 years agodaemon: tuning of stale-serve parameters
Grigorii Demidov [Tue, 20 Mar 2018 16:14:31 +0000 (17:14 +0100)] 
daemon: tuning of stale-serve parameters

7 years agodaemon: time period which determines how long NS non-reachabilty will be cached made...
Grigorii Demidov [Mon, 19 Mar 2018 16:42:31 +0000 (17:42 +0100)] 
daemon: time period which determines how long NS non-reachabilty will be cached made configurable

7 years agodaemon/engine: remove cache cleaning timer since this functionality was relocated...
Grigorii Demidov [Mon, 19 Mar 2018 14:37:14 +0000 (15:37 +0100)] 
daemon/engine: remove cache cleaning timer since this functionality was relocated to nsrep

7 years agolib/nsrep: tuning of 'serve_stale' module
Grigorii Demidov [Mon, 19 Mar 2018 14:15:00 +0000 (15:15 +0100)] 
lib/nsrep: tuning of 'serve_stale' module

7 years agolib/nsrep: when timeout occurs and NS has no cached RTT yet, don't mark it as timeouted
Grigorii Demidov [Mon, 12 Mar 2018 11:02:18 +0000 (12:02 +0100)] 
lib/nsrep: when timeout occurs and NS has no cached RTT yet, don't mark it as timeouted

7 years agolib/nsrep: don't mark NS as 'timeouted' immediately, but after two retries
Grigorii Demidov [Fri, 9 Mar 2018 15:18:21 +0000 (16:18 +0100)] 
lib/nsrep: don't mark NS as 'timeouted' immediately, but after two retries

7 years agolib/nsrep: minor changes
Grigorii Demidov [Fri, 9 Mar 2018 10:35:54 +0000 (11:35 +0100)] 
lib/nsrep: minor changes

7 years agolib/nsrep: some changes in NS selection algorithm
Grigorii Demidov [Thu, 8 Mar 2018 16:15:42 +0000 (17:15 +0100)] 
lib/nsrep: some changes in NS selection algorithm

7 years agolib/nsrep: some changes in NS selection algorythm
Grigorii Demidov [Wed, 7 Mar 2018 16:21:07 +0000 (17:21 +0100)] 
lib/nsrep: some changes in NS selection algorythm

7 years agoMerge branch 'fix-crash-with-large-rrsets' into 'master'
Petr Špaček [Wed, 28 Mar 2018 09:09:25 +0000 (11:09 +0200)] 
Merge branch 'fix-crash-with-large-rrsets' into 'master'

cache: fixed crash with RR sets with over 255 records

See merge request knot/knot-resolver!532

7 years agocache: fixed crash with RR sets with over 255 records
Marek Vavruša [Wed, 28 Mar 2018 05:10:09 +0000 (22:10 -0700)] 
cache: fixed crash with RR sets with over 255 records

The previous cache version encoded RR count as uint8_t, which doesn't
work with RR sets with over 255 records. This caused cache writes
to fail and subsequently ending in an assertion failure.
It is not very common to have large RR sets, but it has legitimate
use cases such as a lot of SRV or address records for large container
deployments etc.

7 years agoMerge branch 'fix-oversize-responses-over-tcp' into 'master'
Grigorii Demidov [Mon, 26 Mar 2018 13:58:46 +0000 (15:58 +0200)] 
Merge branch 'fix-oversize-responses-over-tcp' into 'master'

daemon/worker: allow large responses for outbound over TCP

See merge request knot/knot-resolver!526

7 years agodaemon/worker: allow large responses for outbound over TCP
Marek Vavruša [Tue, 20 Mar 2018 22:41:05 +0000 (15:41 -0700)] 
daemon/worker: allow large responses for outbound over TCP

This was previously fixed in e25358d4f6521a55c33ec1d3a55f2bf6e2f99607,
but broken in the rewrite. The answer buffer size must be a maximum size,
otherwise payloads larger than configured UDP buffer size can't be
transmitted over TCP.

7 years agoMerge branch 'debian-no-symbols-in-dev' into 'master'
Petr Špaček [Mon, 26 Mar 2018 12:27:06 +0000 (14:27 +0200)] 
Merge branch 'debian-no-symbols-in-dev' into 'master'

debian: build dev packages without symbols file

See merge request knot/knot-resolver!524

7 years agodebian: build dev packages without symbols file
Tomas Krizek [Mon, 19 Mar 2018 15:25:02 +0000 (16:25 +0100)] 
debian: build dev packages without symbols file

7 years agoMerge branch 'packaging-tests' into 'master'
Petr Špaček [Mon, 26 Mar 2018 12:14:58 +0000 (14:14 +0200)] 
Merge branch 'packaging-tests' into 'master'

packaging: tests - explicitly specify repository for testing

See merge request knot/knot-resolver!525

7 years agopackaging: tests - explicitly specify repository for testing
Tomas Krizek [Mon, 19 Mar 2018 19:30:59 +0000 (20:30 +0100)] 
packaging: tests - explicitly specify repository for testing

7 years agoMerge branch 'disable-tls-error-logs' into 'master'
Petr Špaček [Mon, 26 Mar 2018 11:55:35 +0000 (13:55 +0200)] 
Merge branch 'disable-tls-error-logs' into 'master'

daemon/tls: downgraded TLS logging to verbose

See merge request knot/knot-resolver!531

7 years agodaemon/tls: downgraded TLS logging to verbose
Marek Vavruša [Fri, 23 Mar 2018 21:32:08 +0000 (14:32 -0700)] 
daemon/tls: downgraded TLS logging to verbose

Logging handshake and connection failures should be verbose, as
it's not really a server failure if client errors, or uses a wrong
SPKI pin to the certificate. It is however not ideal to flood logs.

7 years agoMerge branch 'update-readme-pkg' into 'master'
Tomas Krizek [Thu, 22 Mar 2018 16:52:52 +0000 (17:52 +0100)] 
Merge branch 'update-readme-pkg' into 'master'

README: update package information

See merge request knot/knot-resolver!529

7 years agoREADME: update package information
Tomas Krizek [Thu, 22 Mar 2018 16:44:14 +0000 (17:44 +0100)] 
README: update package information

7 years agoMerge branch 'obs-nightly-build' into 'master'
Tomas Krizek [Thu, 22 Mar 2018 16:18:18 +0000 (17:18 +0100)] 
Merge branch 'obs-nightly-build' into 'master'

ci: execute OBS build nightly instead of after every change

See merge request knot/knot-resolver!528

7 years agoci: execute OBS build nightly instead of after every change
Tomas Krizek [Thu, 22 Mar 2018 15:59:48 +0000 (16:59 +0100)] 
ci: execute OBS build nightly instead of after every change

There are couple reasons to prefer nightly builds:
- to conserve hw resources
- automated builds at predictable times make it easier to use the devel
repo for manual testing builds

7 years agoMerge !516: nitpicks, see individual commits
Vladimír Čunát [Mon, 19 Mar 2018 12:08:12 +0000 (13:08 +0100)] 
Merge !516: nitpicks, see individual commits

7 years agomake: don't magically -D_FORTIFY_SOURCE=2
Vladimír Čunát [Wed, 7 Mar 2018 09:40:25 +0000 (10:40 +0100)] 
make: don't magically -D_FORTIFY_SOURCE=2

This is just annoying for development.  You want -O0 or -Og,
and consequently you get lots of warnings that are difficult to disable.

I believe hardening options are more of a responsibility/choice of the
caller, typically distributions have some general policies and pass the
flags (almost) uniformly to all packages.  I can't see any part of kresd
being so specific to warrant explicit hardening.

7 years agoucw/mempool-fmt: alloca.h isn't needed (anymore)
Vladimír Čunát [Wed, 7 Mar 2018 09:27:53 +0000 (10:27 +0100)] 
ucw/mempool-fmt: alloca.h isn't needed (anymore)

The file is new here, but it has a long history upstream.
Thanks to Leo Vandewoestijne for finding the problem on FreeBSD.

7 years agokr_qrflags: fix a comment
Vladimír Čunát [Fri, 2 Mar 2018 16:07:14 +0000 (17:07 +0100)] 
kr_qrflags: fix a comment

NDEBUG has no effect on this, for a long time.

7 years agoMerge branch 'ci-histogram' into 'master'
Tomas Krizek [Mon, 12 Mar 2018 11:34:56 +0000 (12:34 +0100)] 
Merge branch 'ci-histogram' into 'master'

ci: respdiff - plot histogram

See merge request knot/knot-resolver!521

7 years agoci: respdiff - plot histogram
Tomas Krizek [Mon, 12 Mar 2018 10:51:00 +0000 (11:51 +0100)] 
ci: respdiff - plot histogram

7 years agoMerge branch 'rpm-spec-update' into 'master'
Tomas Krizek [Mon, 12 Mar 2018 09:58:02 +0000 (10:58 +0100)] 
Merge branch 'rpm-spec-update' into 'master'

rpm: don't turn off selinux

See merge request knot/knot-resolver!520

7 years agorpm: don't turn off selinux
Tomas Krizek [Mon, 12 Mar 2018 09:48:31 +0000 (10:48 +0100)] 
rpm: don't turn off selinux

7 years agoMerge !517: ci: no distro builds for knot-resolver forks
Vladimír Čunát [Wed, 7 Mar 2018 13:24:21 +0000 (14:24 +0100)] 
Merge !517: ci: no distro builds for knot-resolver forks

They don't have enough privileges anyway.

7 years agoci: do not trigger distro builds for knot-resolver forks
Tomas Krizek [Wed, 7 Mar 2018 13:15:37 +0000 (14:15 +0100)] 
ci: do not trigger distro builds for knot-resolver forks

7 years agoMerge !514: nitpicks: unused function, --verbose strings
Vladimír Čunát [Thu, 1 Mar 2018 14:25:34 +0000 (15:25 +0100)] 
Merge !514: nitpicks: unused function, --verbose strings

7 years agoutils: remove an unused function
Vladimír Čunát [Fri, 23 Feb 2018 13:57:50 +0000 (14:57 +0100)] 
utils: remove an unused function

Last usage dropped in 1.9, and it seems unlikely to be useful in this
form.

7 years ago--verbose: use strings with clearer meaning
Vladimír Čunát [Fri, 23 Feb 2018 09:47:07 +0000 (10:47 +0100)] 
--verbose: use strings with clearer meaning

7 years agoMerge !503: map_t, set_t: unify memory allocation to mm_*
Vladimír Čunát [Thu, 1 Mar 2018 14:02:35 +0000 (15:02 +0100)] 
Merge !503: map_t, set_t: unify memory allocation to mm_*

7 years agomap_add, set_add: fix misleading API doc
Vladimír Čunát [Fri, 23 Feb 2018 09:25:16 +0000 (10:25 +0100)] 
map_add, set_add: fix misleading API doc

I really hate such "inaccuracies".

7 years agomap_t, set_t: unify memory allocation to mm_*
Vladimír Čunát [Mon, 19 Feb 2018 17:56:03 +0000 (18:56 +0100)] 
map_t, set_t: unify memory allocation to mm_*

We use the knot style everywhere else; this was very similar and yet
different, so really annoying to me.  In the long term we might better
migrate to qp-tries from knot, but the API differs, so it's delayed...

7 years agoMerge branch 'obs-change-user' into 'master'
Tomas Krizek [Wed, 28 Feb 2018 14:51:29 +0000 (15:51 +0100)] 
Merge branch 'obs-change-user' into 'master'

packaging: change OBS user

See merge request knot/knot-resolver!512

7 years agopackaging: change OBS user
Tomas Krizek [Wed, 28 Feb 2018 14:42:44 +0000 (15:42 +0100)] 
packaging: change OBS user

7 years agoMerge branch 'rpmbuild-in-ci' into 'master'
Petr Špaček [Wed, 28 Feb 2018 11:11:02 +0000 (12:11 +0100)] 
Merge branch 'rpmbuild-in-ci' into 'master'

ci: Fedora/EPEL/Arch builds in CI and OBS

See merge request knot/knot-resolver!502

7 years agoscripts: obs - require confirmation when not pushing to devel
Tomas Krizek [Tue, 27 Feb 2018 17:20:41 +0000 (18:20 +0100)] 
scripts: obs - require confirmation when not pushing to devel

7 years agodeb: update keyfile-ro patch
Tomas Krizek [Tue, 27 Feb 2018 17:06:27 +0000 (18:06 +0100)] 
deb: update keyfile-ro patch

7 years agodeb: remove lintian overrides
Tomas Krizek [Tue, 27 Feb 2018 16:55:34 +0000 (17:55 +0100)] 
deb: remove lintian overrides

7 years agodeb: drop unnecessary python3 patch
Tomas Krizek [Tue, 27 Feb 2018 17:08:00 +0000 (18:08 +0100)] 
deb: drop unnecessary python3 patch

7 years agomakefile: use python3 to detect modules
Tomas Krizek [Tue, 27 Feb 2018 16:49:30 +0000 (17:49 +0100)] 
makefile: use python3 to detect modules

7 years agorpm: update specfile
Tomas Krizek [Tue, 27 Feb 2018 16:52:55 +0000 (17:52 +0100)] 
rpm: update specfile

7 years agogitlabci: add comments
Tomas Krizek [Tue, 27 Feb 2018 16:51:42 +0000 (17:51 +0100)] 
gitlabci: add comments

7 years agopackaging: rename distro directories
Tomas Krizek [Mon, 26 Feb 2018 11:58:58 +0000 (12:58 +0100)] 
packaging: rename distro directories

7 years agopackaging: add tests
Tomas Krizek [Sun, 25 Feb 2018 17:29:42 +0000 (18:29 +0100)] 
packaging: add tests

7 years agodebian: rebase patches
Tomas Krizek [Fri, 23 Feb 2018 12:09:52 +0000 (13:09 +0100)] 
debian: rebase patches

7 years agopackaging: cleanup scripts
Tomas Krizek [Thu, 22 Feb 2018 14:13:39 +0000 (15:13 +0100)] 
packaging: cleanup scripts

7 years agopackaging: script to build in obs
Tomas Krizek [Thu, 22 Feb 2018 12:45:48 +0000 (13:45 +0100)] 
packaging: script to build in obs

Also triggers OBS build in a dedicated knot-resolver-devel repo in OBS,
which doesn't use the development libraries of knot from master branch.

7 years agoci: build debian packages
Tomas Krizek [Tue, 20 Feb 2018 19:09:11 +0000 (20:09 +0100)] 
ci: build debian packages

7 years agopacking: debian
Tomas Krizek [Tue, 20 Feb 2018 19:00:46 +0000 (20:00 +0100)] 
packing: debian

7 years agoci: trigger OBS build for arch
Tomas Krizek [Mon, 19 Feb 2018 12:56:35 +0000 (13:56 +0100)] 
ci: trigger OBS build for arch

7 years agoscripts: fill in VERSION for all distro files
Tomas Krizek [Mon, 19 Feb 2018 13:23:14 +0000 (14:23 +0100)] 
scripts: fill in VERSION for all distro files

7 years agopackaging: add files for Arch builds
Tomas Krizek [Fri, 16 Feb 2018 11:55:56 +0000 (12:55 +0100)] 
packaging: add files for Arch builds

7 years agoci: trigger obs build
Tomas Krizek [Wed, 14 Feb 2018 16:41:45 +0000 (17:41 +0100)] 
ci: trigger obs build

7 years agoci: create rpm packages for Fedora/EPEL
Tomas Krizek [Mon, 19 Feb 2018 09:37:46 +0000 (10:37 +0100)] 
ci: create rpm packages for Fedora/EPEL

7 years agoscripts: use dot as a separator for pre-release versions
Tomas Krizek [Mon, 19 Feb 2018 09:49:01 +0000 (10:49 +0100)] 
scripts: use dot as a separator for pre-release versions

To be able to use the exact same version in both upstream tarballs
and downstream packages always use dot as a version separator.

This enables downstream packages to re-use the upstream versions
(especially the pre-release ones which no longer contain dash) when
building packages. This is very useful for building testing packages
e.g. in Fedora and Arch, which do not allow dash in version number.

Tags should follow this format from now on as well, e.g. 2.99.0.alpha
instead of 2.99.0-alpha

7 years agoscripts: add script to modify spec file
Tomas Krizek [Wed, 14 Feb 2018 16:25:48 +0000 (17:25 +0100)] 
scripts: add script to modify spec file

7 years agopackaging: add Fedora/EPEL files
Tomas Krizek [Fri, 2 Feb 2018 10:31:22 +0000 (11:31 +0100)] 
packaging: add Fedora/EPEL files

Fedora/EPEL files and the ability to create srpm was added to be
able to test Fedora/EPEL build in upstream CI.

7 years agoci: add fedora dockerfile
Tomas Krizek [Fri, 2 Feb 2018 10:11:43 +0000 (11:11 +0100)] 
ci: add fedora dockerfile

7 years agoMerge branch 'keyfile-doc-update' into 'master'
Tomas Krizek [Tue, 27 Feb 2018 16:41:19 +0000 (17:41 +0100)] 
Merge branch 'keyfile-doc-update' into 'master'

man: fix typos in kresd.8

See merge request knot/knot-resolver!510

7 years agoman: fix typos in kresd.8
Tomas Krizek [Tue, 27 Feb 2018 16:15:00 +0000 (17:15 +0100)] 
man: fix typos in kresd.8

7 years agoMerge branch 'release-2-1-1' into 'master' v2.1.1
Tomas Krizek [Fri, 23 Feb 2018 11:35:27 +0000 (12:35 +0100)] 
Merge branch 'release-2-1-1' into 'master'

release 2.1.1

See merge request knot/knot-resolver!509

7 years agorelease 2.1.1
Tomas Krizek [Fri, 23 Feb 2018 11:23:05 +0000 (12:23 +0100)] 
release 2.1.1

7 years agoMerge branch 'make-detect-gcc' into 'master'
Petr Špaček [Fri, 23 Feb 2018 08:06:20 +0000 (09:06 +0100)] 
Merge branch 'make-detect-gcc' into 'master'

make nitpicks

See merge request knot/knot-resolver!508

7 years agomake: install ETCDIR/** as world-readable
Vladimír Čunát [Wed, 21 Feb 2018 18:27:35 +0000 (19:27 +0100)] 
make: install ETCDIR/** as world-readable

7 years agomake: more fuzzy gcc detection
Vladimír Čunát [Wed, 21 Feb 2018 17:31:07 +0000 (18:31 +0100)] 
make: more fuzzy gcc detection

It was breaking on Gentoo:
https://gitter.im/CZ-NIC/knot-resolver?at=5a8dab7b6f8b4b9946a3caeb

7 years agoMerge !507: doc: clarify what --quiet does
Vladimír Čunát [Thu, 22 Feb 2018 15:50:37 +0000 (16:50 +0100)] 
Merge !507: doc: clarify what --quiet does

7 years agodoc: clarify what --quiet does
Vladimír Čunát [Wed, 21 Feb 2018 16:31:36 +0000 (17:31 +0100)] 
doc: clarify what --quiet does

It does almost nothing, currently.

7 years agoMerge branch 'tls-misc-fixes' into 'master'
Petr Špaček [Wed, 21 Feb 2018 16:19:33 +0000 (17:19 +0100)] 
Merge branch 'tls-misc-fixes' into 'master'

lib/resolve: don't clear TCP query flags when TCP forwarding is used

See merge request knot/knot-resolver!504

7 years agolib/resolve: don't clear TCP query flags when TCP forwarding is used
Grigorii Demidov [Tue, 20 Feb 2018 13:55:25 +0000 (14:55 +0100)] 
lib/resolve: don't clear TCP query flags when TCP forwarding is used

7 years agoMerge branch 'short-zone-cut' into 'master'
Petr Špaček [Wed, 21 Feb 2018 12:49:11 +0000 (13:49 +0100)] 
Merge branch 'short-zone-cut' into 'master'

avoid iterating from a too short zone cut

Closes #246

See merge request knot/knot-resolver!505

7 years agonitpicks around zone cut searching
Vladimír Čunát [Tue, 20 Feb 2018 16:15:31 +0000 (17:15 +0100)] 
nitpicks around zone cut searching

It's mostly just --verbose logging adjustments.

7 years agoavoid iterating from a too short zone cut
Vladimír Čunát [Tue, 20 Feb 2018 14:50:48 +0000 (15:50 +0100)] 
avoid iterating from a too short zone cut

Example: after foo.sk query the bar.sk query started iterating from
asking the root again for NS sk.  This bug was present on insecure zones,
and before version 2.0.0 only such that have a secure parent.
(These two parts of the bug correspond to the two changes in this commit.)

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

7 years agoMerge !501: Fix minor spelling and grammar nits.
Vladimír Čunát [Sun, 18 Feb 2018 14:00:44 +0000 (15:00 +0100)] 
Merge !501: Fix minor spelling and grammar nits.

7 years agoFix minor spelling and grammar nits.
Daniel Kahn Gillmor [Sun, 18 Feb 2018 02:46:11 +0000 (21:46 -0500)] 
Fix minor spelling and grammar nits.

7 years agoMerge branch 'release-2-1-0' into 'master' v2.1.0
Tomas Krizek [Fri, 16 Feb 2018 14:29:10 +0000 (15:29 +0100)] 
Merge branch 'release-2-1-0' into 'master'

release 2.1.0

See merge request knot/knot-resolver!500

7 years agorelease 2.1.0
Tomas Krizek [Fri, 16 Feb 2018 12:05:00 +0000 (13:05 +0100)] 
release 2.1.0

7 years agoMerge branch 'systemd-revision' into 'master'
Tomas Krizek [Fri, 16 Feb 2018 11:54:32 +0000 (12:54 +0100)] 
Merge branch 'systemd-revision' into 'master'

revise systemd management arrangements

See merge request knot/knot-resolver!490

7 years agosystemd: update README
Tomas Krizek [Fri, 16 Feb 2018 09:39:43 +0000 (10:39 +0100)] 
systemd: update README

Discourage use of kresd.service in distros using systemd-sysv-generator.

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