]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
5 years agodistro/rpm: try to fix opensuse missing systemctl
Tomas Krizek [Thu, 16 Jan 2020 10:57:51 +0000 (11:57 +0100)] 
distro/rpm: try to fix opensuse missing systemctl

5 years agodistro/rpm: remove systemd socket activation
Tomas Krizek [Wed, 15 Jan 2020 16:59:20 +0000 (17:59 +0100)] 
distro/rpm: remove systemd socket activation

5 years agodistro/rpm: remove misleading comment
Tomas Krizek [Wed, 15 Jan 2020 16:46:04 +0000 (17:46 +0100)] 
distro/rpm: remove misleading comment

The services appear to be restarted on CentOS 7.

5 years agodistro/deb: update systemd packaging
Tomas Krizek [Wed, 15 Jan 2020 16:30:40 +0000 (17:30 +0100)] 
distro/deb: update systemd packaging

5 years agodaemon/lua: warn instead of error on failed control socket binds
Tomas Krizek [Wed, 15 Jan 2020 16:21:33 +0000 (17:21 +0100)] 
daemon/lua: warn instead of error on failed control socket binds

5 years agodoc/net_server: rename example control socket
Tomas Krizek [Wed, 15 Jan 2020 16:20:25 +0000 (17:20 +0100)] 
doc/net_server: rename example control socket

5 years agolua: add distro-preconfig
Tomas Krizek [Wed, 15 Jan 2020 15:33:35 +0000 (16:33 +0100)] 
lua: add distro-preconfig

The preconfig is used to set distro-specific values to avoid messing
with user config, in partciular:

- binding to control sockets under systemd
- setting default cache location

5 years agodaemon: remove systemd socket activation support
Tomas Krizek [Wed, 15 Jan 2020 13:16:56 +0000 (14:16 +0100)] 
daemon: remove systemd socket activation support

5 years agosystemd: remove files for socket-activation
Tomas Krizek [Wed, 15 Jan 2020 09:51:23 +0000 (10:51 +0100)] 
systemd: remove files for socket-activation

5 years agoetc/config: changing cache.storage is not recommended
Tomas Krizek [Tue, 14 Jan 2020 13:45:15 +0000 (14:45 +0100)] 
etc/config: changing cache.storage is not recommended

5 years agoetc/config: remove snippet for disabling dnssec
Tomas Krizek [Tue, 14 Jan 2020 13:26:12 +0000 (14:26 +0100)] 
etc/config: remove snippet for disabling dnssec

5 years agoetc/config: use net.listen() syntax for configs
Tomas Krizek [Tue, 14 Jan 2020 13:08:11 +0000 (14:08 +0100)] 
etc/config: use net.listen() syntax for configs

- meson templating no longer needed
- commented out DoH/webmgmt configuration removed
- added explicit port 53 and kind=dns

5 years agoMerge !926: doc nitpicks
Vladimír Čunát [Tue, 21 Jan 2020 14:09:33 +0000 (15:09 +0100)] 
Merge !926: doc nitpicks

5 years agodoc modules/policy: kill old ODVR addresses in example
Vladimír Čunát [Tue, 21 Jan 2020 14:01:35 +0000 (15:01 +0100)] 
doc modules/policy: kill old ODVR addresses in example

These addresses have been deprecated for quite some time,
and this month they were even shut down.

5 years agoNEWS: fix a typo (old, 4.0.0)
Vladimír Čunát [Mon, 11 Nov 2019 11:34:26 +0000 (12:34 +0100)] 
NEWS: fix a typo (old, 4.0.0)

5 years agoMerge branch 'deprecate-forking' into 'master' obs-knot-dns-deve-jq0xxt/deployments/538 obs-knot-dns-deve-jq0xxt/deployments/540 obs-knot-dns-deve-jq0xxt/deployments/542 obs-knot-dns-deve-jq0xxt/deployments/546 obs-knot-resolver-es11k1/deployments/539 obs-knot-resolver-es11k1/deployments/541 obs-knot-resolver-es11k1/deployments/543 obs-knot-resolver-es11k1/deployments/547
Tomas Krizek [Fri, 17 Jan 2020 14:48:54 +0000 (15:48 +0100)] 
Merge branch 'deprecate-forking' into 'master'

Deprecate forking

Closes #529

See merge request knot/knot-resolver!919

5 years agoNEWS, upgrading: document deprecation of --forks
Vladimír Čunát [Fri, 17 Jan 2020 13:43:18 +0000 (14:43 +0100)] 
NEWS, upgrading: document deprecation of --forks

5 years agodeprecate --forks and map()
Vladimír Čunát [Thu, 9 Jan 2020 14:53:10 +0000 (15:53 +0100)] 
deprecate --forks and map()

- reduce visibility in docs
- add deprecation warnings (docs and stderr)

5 years agotreewide: use --noninteractive instead of --forks
Vladimír Čunát [Thu, 9 Jan 2020 14:04:16 +0000 (15:04 +0100)] 
treewide: use --noninteractive instead of --forks

5 years agomain: tidy up getopt
Vladimír Čunát [Thu, 9 Jan 2020 13:51:44 +0000 (14:51 +0100)] 
main: tidy up getopt

- consistent order of the options on the three places in parse_args()
- drop remains of -m -k -K
  It didn't seem to cause any problems except confusion in
  $ kresd -k
  kresd: option requires an argument -- 'k'

5 years agomain: add --noninteractive command-line option
Vladimír Čunát [Thu, 9 Jan 2020 13:47:04 +0000 (14:47 +0100)] 
main: add --noninteractive command-line option

5 years agoMerge !922: unify control sockets handling
Vladimír Čunát [Fri, 17 Jan 2020 13:58:21 +0000 (14:58 +0100)] 
Merge !922: unify control sockets handling

5 years agodaemon/network endpoint_close(): don't leak "control"
Vladimír Čunát [Fri, 17 Jan 2020 12:41:36 +0000 (13:41 +0100)] 
daemon/network endpoint_close(): don't leak "control"

5 years agodaemon/io: code style
Tomas Krizek [Fri, 17 Jan 2020 11:35:04 +0000 (12:35 +0100)] 
daemon/io: code style

5 years agoCI lint:scan-build: correct the number of errors
Vladimír Čunát [Fri, 17 Jan 2020 10:09:22 +0000 (11:09 +0100)] 
CI lint:scan-build: correct the number of errors

https://gitlab.labs.nic.cz/knot/knot-resolver/merge_requests/922#note_138260

5 years agodoc/upgrading: control socket location
Tomas Krizek [Wed, 15 Jan 2020 12:03:32 +0000 (13:03 +0100)] 
doc/upgrading: control socket location

5 years agoNEWS: add incompatible changes section
Tomas Krizek [Wed, 15 Jan 2020 12:03:06 +0000 (13:03 +0100)] 
NEWS: add incompatible changes section

5 years agodoc: update network documentation
Tomas Krizek [Wed, 15 Jan 2020 11:38:02 +0000 (12:38 +0100)] 
doc: update network documentation

5 years agodoc: change control socket path and reformat
Tomas Krizek [Wed, 15 Jan 2020 11:11:36 +0000 (12:11 +0100)] 
doc: change control socket path and reformat

5 years agodaemon/lua/config.lua: bind to control socket by default
Tomas Krizek [Fri, 10 Jan 2020 15:45:19 +0000 (16:45 +0100)] 
daemon/lua/config.lua: bind to control socket by default

5 years agodaemon/worker: expose current working dir to lua
Tomas Krizek [Fri, 10 Jan 2020 15:44:32 +0000 (16:44 +0100)] 
daemon/worker: expose current working dir to lua

5 years agodaemon/network: unix socket pre-bind handling
Tomas Krizek [Fri, 10 Jan 2020 15:42:52 +0000 (16:42 +0100)] 
daemon/network: unix socket pre-bind handling

Unlink the unix address in case the file exists, e.g. from previous
unclean run.
Also attempt to create the directory for unix socket in case it doesn't
exist.

5 years agolua ffi: add the_args binding
Vladimír Čunát [Fri, 10 Jan 2020 09:55:36 +0000 (10:55 +0100)] 
lua ffi: add the_args binding

5 years agodaemon/main: don't automatically open control socket in C code
Tomas Krizek [Thu, 9 Jan 2020 15:07:35 +0000 (16:07 +0100)] 
daemon/main: don't automatically open control socket in C code

5 years agodaemon: support kind=control in net.listen()
Tomas Krizek [Thu, 9 Jan 2020 15:03:12 +0000 (16:03 +0100)] 
daemon: support kind=control in net.listen()

5 years agodaemon/net: handle error binding to AF_UNIX
Tomas Krizek [Thu, 9 Jan 2020 14:47:22 +0000 (15:47 +0100)] 
daemon/net: handle error binding to AF_UNIX

5 years agodaemon/net: omit freebind from net.list() for AF_UNIX
Tomas Krizek [Thu, 9 Jan 2020 14:46:58 +0000 (15:46 +0100)] 
daemon/net: omit freebind from net.list() for AF_UNIX

5 years agodaemon/network: make unengaged socket a hard error
Tomas Krizek [Thu, 9 Jan 2020 10:59:00 +0000 (11:59 +0100)] 
daemon/network: make unengaged socket a hard error

Without support for socket activation, it no longer makes sense to
let an ununsed socket pass without error.

5 years agodaemon/io: don't set socket options for AF_UNIX
Tomas Krizek [Thu, 9 Jan 2020 10:57:43 +0000 (11:57 +0100)] 
daemon/io: don't set socket options for AF_UNIX

reuseaddr/reuseport and freebind only make sense for AF_INET, AF_INET6

5 years agodaemon: move tty functions to io.c
Tomas Krizek [Thu, 9 Jan 2020 10:35:10 +0000 (11:35 +0100)] 
daemon: move tty functions to io.c

5 years agoMerge branch 'fix-sphinx-build' into 'master' obs-knot-dns-deve-jq0xxt/deployments/533 obs-knot-resolver-es11k1/deployments/534
Tomas Krizek [Thu, 16 Jan 2020 09:47:31 +0000 (10:47 +0100)] 
Merge branch 'fix-sphinx-build' into 'master'

fix sphinx build on older distros

See merge request knot/knot-resolver!923

5 years agodoc: rename refs and add link to configuration to quickstart obs-knot-resolver-bs4hbr/deployments/525
Tomas Krizek [Thu, 16 Jan 2020 09:23:34 +0000 (10:23 +0100)] 
doc: rename refs and add link to configuration to quickstart

Older versions of sphinx detected "operation" ref as duplicit.

5 years agodoc/conf: remove some rtd_theme options obs-knot-resolver-bs4hbr/deployments/524
Tomas Krizek [Thu, 16 Jan 2020 08:57:22 +0000 (09:57 +0100)] 
doc/conf: remove some rtd_theme options

These options are not essential and they are only supported with newer
versions of the theme, which are unavailable in older distributions.

5 years agoMerge branch 'operators-guide' into 'master' obs-knot-dns-deve-jq0xxt/deployments/522 obs-knot-resolver-es11k1/deployments/523
Lukas Jezek [Wed, 15 Jan 2020 10:52:27 +0000 (11:52 +0100)] 
Merge branch 'operators-guide' into 'master'

more user-focused docs

See merge request knot/knot-resolver!900

5 years agodoc: improve text in quickstart install
Tomas Krizek [Wed, 15 Jan 2020 09:38:08 +0000 (10:38 +0100)] 
doc: improve text in quickstart install

5 years agodoc: fix typos
Lukáš Ježek [Wed, 15 Jan 2020 08:34:17 +0000 (09:34 +0100)] 
doc: fix typos

5 years agodoc TLS server: tiny reformulation
Vladimír Čunát [Tue, 14 Jan 2020 16:02:57 +0000 (17:02 +0100)] 
doc TLS server: tiny reformulation

5 years agodoc cache: clarifications around cache backends
Vladimír Čunát [Tue, 14 Jan 2020 15:12:40 +0000 (16:12 +0100)] 
doc cache: clarifications around cache backends

There's only one backend and no other is even in long-term plans.
There used to be some networked backend, but due to synchronous internal
usage of cache these suffered from bad latency and were removed.

5 years agodoc forwarding: minor clarification
Vladimír Čunát [Tue, 14 Jan 2020 14:57:13 +0000 (15:57 +0100)] 
doc forwarding: minor clarification

5 years agodoc: update readthedocs http links
Tomas Krizek [Tue, 14 Jan 2020 12:29:35 +0000 (13:29 +0100)] 
doc: update readthedocs http links

5 years agodoc: add section about usage without systemd
Tomas Krizek [Mon, 13 Jan 2020 15:03:28 +0000 (16:03 +0100)] 
doc: add section about usage without systemd

- mention process management
- describe privileges and capabilities which have to be configured
- move garbage collector to this section, as is it enabled by default

5 years agodoc: improve ToC navigation
Tomas Krizek [Mon, 13 Jan 2020 12:23:42 +0000 (13:23 +0100)] 
doc: improve ToC navigation

5 years agodoc: add required attribution for icons in doc/server_terminology.svg
Petr Špaček [Fri, 10 Jan 2020 20:59:22 +0000 (21:59 +0100)] 
doc: add required attribution for icons in doc/server_terminology.svg

5 years agodoc: split networking into two parts, add picture with terminology
Petr Špaček [Thu, 9 Jan 2020 17:37:50 +0000 (18:37 +0100)] 
doc: split networking into two parts, add picture with terminology

5 years agodoc: net_client minor polish
Petr Špaček [Thu, 9 Jan 2020 16:02:05 +0000 (17:02 +0100)] 
doc: net_client minor polish

5 years agodoc: experimental polish
Petr Špaček [Wed, 8 Jan 2020 11:50:51 +0000 (12:50 +0100)] 
doc: experimental polish

5 years agodoc: config/performance polish
Petr Špaček [Wed, 8 Jan 2020 11:48:48 +0000 (12:48 +0100)] 
doc: config/performance polish

5 years agodoc: edns_keepalive polish
Petr Špaček [Wed, 8 Jan 2020 11:47:59 +0000 (12:47 +0100)] 
doc: edns_keepalive polish

5 years agodoc: rfc7706 polish
Petr Špaček [Wed, 8 Jan 2020 11:43:28 +0000 (12:43 +0100)] 
doc: rfc7706 polish

5 years agodoc: polish config/policy section
Petr Špaček [Wed, 8 Jan 2020 11:37:46 +0000 (12:37 +0100)] 
doc: polish config/policy section

5 years agodoc: reorder modules in logging&monitoring section
Petr Špaček [Wed, 8 Jan 2020 09:49:59 +0000 (10:49 +0100)] 
doc: reorder modules in logging&monitoring section

Reordered according to my intuition.

5 years agodoc: reorder main config chapters
Petr Špaček [Wed, 8 Jan 2020 09:12:27 +0000 (10:12 +0100)] 
doc: reorder main config chapters

5 years agodoc: move DNSSEC to the end, users should not touch it anyway
Petr Špaček [Wed, 8 Jan 2020 08:48:58 +0000 (09:48 +0100)] 
doc: move DNSSEC to the end, users should not touch it anyway

Also remove extra headers for trust anchors and mode(), this is an
implementation detail not important for users.

5 years agodoc: move graphite and prometheus do sub-sections of stats
Petr Špaček [Wed, 8 Jan 2020 08:42:03 +0000 (09:42 +0100)] 
doc: move graphite and prometheus do sub-sections of stats

Neither graphire nor Prometheus are useful without stats, and any data
they export needs explanation from stats module so it does not make
sense to separate them.

5 years agodoc: move custom HTTP services to Devel section
Petr Špaček [Wed, 8 Jan 2020 08:15:12 +0000 (09:15 +0100)] 
doc: move custom HTTP services to Devel section

5 years agodoc: quick start / installation / OpenSUSE: improve link
Tomas Krizek [Tue, 7 Jan 2020 17:44:36 +0000 (18:44 +0100)] 
doc: quick start / installation / OpenSUSE: improve link

I believe on the old link it isn't easy to find what to do to "install"
the package.  The new one seems much more user-friendly.

- cherry picked from
  commit 008fbed93c5a04c51369bfccebe5dae0b7f2131e (upstream/operators-guide)
  Author: Vladimír Čunát <vladimir.cunat@nic.cz>
  Date:   2020-01-07 11:23:02 +0100

5 years agodoc: restructure into smaller sections
Tomas Krizek [Tue, 7 Jan 2020 17:39:56 +0000 (18:39 +0100)] 
doc: restructure into smaller sections

5 years agodoc: remove Operations/Monitoring - it was duplicate of Config/Monitoring
Petr Špaček [Mon, 6 Jan 2020 19:02:36 +0000 (20:02 +0100)] 
doc: remove Operations/Monitoring - it was duplicate of Config/Monitoring

5 years agodoc: split and redistribute HTTP module pieces into server & monitoring chapters
Petr Špaček [Mon, 6 Jan 2020 18:53:08 +0000 (19:53 +0100)] 
doc: split and redistribute HTTP module pieces into server & monitoring chapters

5 years agodoc: remove daf module to Policy section
Petr Špaček [Mon, 6 Jan 2020 17:56:31 +0000 (18:56 +0100)] 
doc: remove daf module to Policy section

5 years agodoc: move etcd module into Run-time reconfiguration section
Petr Špaček [Mon, 6 Jan 2020 17:54:52 +0000 (18:54 +0100)] 
doc: move etcd module into Run-time reconfiguration section

5 years agodoc: move Cache and Multiple instance chapters into Performance section
Petr Špaček [Mon, 6 Jan 2020 17:35:30 +0000 (18:35 +0100)] 
doc: move Cache and Multiple instance chapters into Performance section

It logically belongs here and it will make high-level structure less
crowded.

5 years agodoc: move reorder_RR() into policy/acl/data manipulation section
Petr Špaček [Mon, 6 Jan 2020 15:32:52 +0000 (16:32 +0100)] 
doc: move reorder_RR() into policy/acl/data manipulation section

5 years agodoc: move mode() function to DNSSEC & data verification section
Petr Špaček [Mon, 6 Jan 2020 15:18:40 +0000 (16:18 +0100)] 
doc: move mode() function to DNSSEC & data verification section

5 years agodoc: human-friendlier version of Zero-downtime restarts
Petr Špaček [Mon, 6 Jan 2020 14:21:53 +0000 (15:21 +0100)] 
doc: human-friendlier version of Zero-downtime restarts

5 years agodoc: simplify note about Lua as config language
Petr Špaček [Mon, 6 Jan 2020 14:21:24 +0000 (15:21 +0100)] 
doc: simplify note about Lua as config language

5 years agodoc: move modules section into basic overview
Petr Špaček [Mon, 6 Jan 2020 14:19:50 +0000 (15:19 +0100)] 
doc: move modules section into basic overview

5 years agodoc: move verbose() to logging section
Petr Špaček [Mon, 6 Jan 2020 14:18:27 +0000 (15:18 +0100)] 
doc: move verbose() to logging section

5 years agodoc: simplify chapter names
Petr Špaček [Mon, 6 Jan 2020 11:46:52 +0000 (12:46 +0100)] 
doc: simplify chapter names

5 years agodoc: major docs restructuring
Petr Špaček [Fri, 3 Jan 2020 19:32:29 +0000 (20:32 +0100)] 
doc: major docs restructuring

5 years agodoc: nsid module polish for new docs structure
Petr Špaček [Fri, 3 Jan 2020 19:28:29 +0000 (20:28 +0100)] 
doc: nsid module polish for new docs structure

5 years agodoc: dnstap module polish for new docs structure
Petr Špaček [Fri, 3 Jan 2020 19:28:17 +0000 (20:28 +0100)] 
doc: dnstap module polish for new docs structure

5 years agodoc: graphite module polish for new docs structure
Petr Špaček [Fri, 3 Jan 2020 19:28:06 +0000 (20:28 +0100)] 
doc: graphite module polish for new docs structure

5 years agodoc: ta_sentinel polish for new docs structure
Petr Špaček [Fri, 3 Jan 2020 19:27:45 +0000 (20:27 +0100)] 
doc: ta_sentinel polish for new docs structure

5 years agodoc: restructuring
Petr Špaček [Fri, 3 Jan 2020 16:57:06 +0000 (17:57 +0100)] 
doc: restructuring

5 years agodoc: remove map() command
Petr Špaček [Fri, 3 Jan 2020 14:54:59 +0000 (15:54 +0100)] 
doc: remove map() command

map() does not work with systemd integration anyway.

5 years agodoc: remove worker.id and worker.count
Petr Špaček [Fri, 3 Jan 2020 14:30:25 +0000 (15:30 +0100)] 
doc: remove worker.id and worker.count

These do not work with systemd integration anyway.

5 years agodoc: restructure docs
Petr Špaček [Thu, 2 Jan 2020 19:40:48 +0000 (20:40 +0100)] 
doc: restructure docs

Content from the proposed Operator's guide was split into sections and
main chapters were restructured. New structure follows "purposes":
- quick start - installation, startup
- configuration
- operation - performance, monitoring, etc.
- documentatino for developers

5 years agodoc: fix NEWS structure to fix Sphinx rendering
Petr Špaček [Thu, 2 Jan 2020 18:21:03 +0000 (19:21 +0100)] 
doc: fix NEWS structure to fix Sphinx rendering

5 years agodocs: remove references to kresd-host.lua and kresd-query.lua
Petr Špaček [Thu, 2 Jan 2020 17:16:12 +0000 (18:16 +0100)] 
docs: remove references to kresd-host.lua and kresd-query.lua

These are hacks and we do not support them in any way.

5 years agodocs: split out all docs for developers last chapter
Petr Špaček [Thu, 2 Jan 2020 17:14:14 +0000 (18:14 +0100)] 
docs: split out all docs for developers last chapter

5 years agodoc/operators-guide: add query watchdog
Tomas Krizek [Mon, 2 Dec 2019 17:33:27 +0000 (18:33 +0100)] 
doc/operators-guide: add query watchdog

5 years agodoc/operators-guide: add cache recommendations
Tomas Krizek [Mon, 2 Dec 2019 17:01:10 +0000 (18:01 +0100)] 
doc/operators-guide: add cache recommendations

5 years agodoc/operators-guide: multiple instances
Tomas Krizek [Mon, 2 Dec 2019 14:57:00 +0000 (15:57 +0100)] 
doc/operators-guide: multiple instances

- rename tuning guide to operator's guide
- refactor multiple instances section
- add instance-specific configuration section with examples

5 years agodoc/build: omit libuv note about reuseport
Tomas Krizek [Mon, 2 Dec 2019 14:08:42 +0000 (15:08 +0100)] 
doc/build: omit libuv note about reuseport

Scaling up with -f might be unsupported in the near future, rendering
this comment irrelevant.

5 years agodoc: move utilizing multiple CPUs to performance tuning
Tomas Krizek [Mon, 2 Dec 2019 13:36:54 +0000 (14:36 +0100)] 
doc: move utilizing multiple CPUs to performance tuning

5 years agodoc: create tuning guide
Tomas Krizek [Mon, 2 Dec 2019 13:13:36 +0000 (14:13 +0100)] 
doc: create tuning guide

5 years agoMerge branch 'padding-misc' into 'master' obs-knot-dns-deve-jq0xxt/deployments/516 obs-knot-dns-deve-jq0xxt/deployments/519 obs-knot-resolver-es11k1/deployments/517 obs-knot-resolver-es11k1/deployments/520
Tomas Krizek [Mon, 13 Jan 2020 18:23:31 +0000 (19:23 +0100)] 
Merge branch 'padding-misc' into 'master'

lib/resolve: correct EDNS padding logic for failures

See merge request knot/knot-resolver!921

5 years agolib/resolve: correct EDNS padding logic for failures
Vladimír Čunát [Fri, 10 Jan 2020 14:49:56 +0000 (15:49 +0100)] 
lib/resolve: correct EDNS padding logic for failures

The main problem was that SERVFAILs were not padded;
the recovery of answer->opt_rr has to happen before answer_padding()

5 years agoMerge branch '525-cache-preallocation' into 'master'
Tomas Krizek [Mon, 13 Jan 2020 08:28:48 +0000 (09:28 +0100)] 
Merge branch '525-cache-preallocation' into 'master'

cache: pre-allocating cache file when cache size is being changed

Closes #525

See merge request knot/knot-resolver!917