]>
git.ipfire.org Git - thirdparty/knot-resolver.git/log
Tomas Krizek [Wed, 15 Jan 2020 11:11:36 +0000 (12:11 +0100)]
doc: change control socket path and reformat
Tomas Krizek [Fri, 10 Jan 2020 15:45:19 +0000 (16:45 +0100)]
daemon/lua/config.lua: bind to control socket by default
Tomas Krizek [Fri, 10 Jan 2020 15:44:32 +0000 (16:44 +0100)]
daemon/worker: expose current working dir to lua
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.
Vladimír Čunát [Fri, 10 Jan 2020 09:55:36 +0000 (10:55 +0100)]
lua ffi: add the_args binding
Tomas Krizek [Thu, 9 Jan 2020 15:07:35 +0000 (16:07 +0100)]
daemon/main: don't automatically open control socket in C code
Tomas Krizek [Thu, 9 Jan 2020 15:03:12 +0000 (16:03 +0100)]
daemon: support kind=control in net.listen()
Tomas Krizek [Thu, 9 Jan 2020 14:47:22 +0000 (15:47 +0100)]
daemon/net: handle error binding to 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
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.
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
Tomas Krizek [Thu, 9 Jan 2020 10:35:10 +0000 (11:35 +0100)]
daemon: move tty functions to io.c
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
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.
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.
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
Tomas Krizek [Wed, 15 Jan 2020 09:38:08 +0000 (10:38 +0100)]
doc: improve text in quickstart install
Lukáš Ježek [Wed, 15 Jan 2020 08:34:17 +0000 (09:34 +0100)]
doc: fix typos
Vladimír Čunát [Tue, 14 Jan 2020 16:02:57 +0000 (17:02 +0100)]
doc TLS server: tiny reformulation
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.
Vladimír Čunát [Tue, 14 Jan 2020 14:57:13 +0000 (15:57 +0100)]
doc forwarding: minor clarification
Tomas Krizek [Tue, 14 Jan 2020 12:29:35 +0000 (13:29 +0100)]
doc: update readthedocs http links
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
Tomas Krizek [Mon, 13 Jan 2020 12:23:42 +0000 (13:23 +0100)]
doc: improve ToC navigation
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
Petr Špaček [Thu, 9 Jan 2020 17:37:50 +0000 (18:37 +0100)]
doc: split networking into two parts, add picture with terminology
Petr Špaček [Thu, 9 Jan 2020 16:02:05 +0000 (17:02 +0100)]
doc: net_client minor polish
Petr Špaček [Wed, 8 Jan 2020 11:50:51 +0000 (12:50 +0100)]
doc: experimental polish
Petr Špaček [Wed, 8 Jan 2020 11:48:48 +0000 (12:48 +0100)]
doc: config/performance polish
Petr Špaček [Wed, 8 Jan 2020 11:47:59 +0000 (12:47 +0100)]
doc: edns_keepalive polish
Petr Špaček [Wed, 8 Jan 2020 11:43:28 +0000 (12:43 +0100)]
doc: rfc7706 polish
Petr Špaček [Wed, 8 Jan 2020 11:37:46 +0000 (12:37 +0100)]
doc: polish config/policy 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.
Petr Špaček [Wed, 8 Jan 2020 09:12:27 +0000 (10:12 +0100)]
doc: reorder main config chapters
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.
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.
Petr Špaček [Wed, 8 Jan 2020 08:15:12 +0000 (09:15 +0100)]
doc: move custom HTTP services to Devel section
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
Tomas Krizek [Tue, 7 Jan 2020 17:39:56 +0000 (18:39 +0100)]
doc: restructure into smaller sections
Petr Špaček [Mon, 6 Jan 2020 19:02:36 +0000 (20:02 +0100)]
doc: remove Operations/Monitoring - it was duplicate of Config/Monitoring
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
Petr Špaček [Mon, 6 Jan 2020 17:56:31 +0000 (18:56 +0100)]
doc: remove daf module to Policy section
Petr Špaček [Mon, 6 Jan 2020 17:54:52 +0000 (18:54 +0100)]
doc: move etcd module into Run-time reconfiguration 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.
Petr Špaček [Mon, 6 Jan 2020 15:32:52 +0000 (16:32 +0100)]
doc: move reorder_RR() into policy/acl/data manipulation section
Petr Špaček [Mon, 6 Jan 2020 15:18:40 +0000 (16:18 +0100)]
doc: move mode() function to DNSSEC & data verification section
Petr Špaček [Mon, 6 Jan 2020 14:21:53 +0000 (15:21 +0100)]
doc: human-friendlier version of Zero-downtime restarts
Petr Špaček [Mon, 6 Jan 2020 14:21:24 +0000 (15:21 +0100)]
doc: simplify note about Lua as config language
Petr Špaček [Mon, 6 Jan 2020 14:19:50 +0000 (15:19 +0100)]
doc: move modules section into basic overview
Petr Špaček [Mon, 6 Jan 2020 14:18:27 +0000 (15:18 +0100)]
doc: move verbose() to logging section
Petr Špaček [Mon, 6 Jan 2020 11:46:52 +0000 (12:46 +0100)]
doc: simplify chapter names
Petr Špaček [Fri, 3 Jan 2020 19:32:29 +0000 (20:32 +0100)]
doc: major docs restructuring
Petr Špaček [Fri, 3 Jan 2020 19:28:29 +0000 (20:28 +0100)]
doc: nsid 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
Petr Špaček [Fri, 3 Jan 2020 19:28:06 +0000 (20:28 +0100)]
doc: graphite module 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
Petr Špaček [Fri, 3 Jan 2020 16:57:06 +0000 (17:57 +0100)]
doc: restructuring
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.
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.
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
Petr Špaček [Thu, 2 Jan 2020 18:21:03 +0000 (19:21 +0100)]
doc: fix NEWS structure to fix Sphinx rendering
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.
Petr Špaček [Thu, 2 Jan 2020 17:14:14 +0000 (18:14 +0100)]
docs: split out all docs for developers last chapter
Tomas Krizek [Mon, 2 Dec 2019 17:33:27 +0000 (18:33 +0100)]
doc/operators-guide: add query watchdog
Tomas Krizek [Mon, 2 Dec 2019 17:01:10 +0000 (18:01 +0100)]
doc/operators-guide: add cache recommendations
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
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.
Tomas Krizek [Mon, 2 Dec 2019 13:36:54 +0000 (14:36 +0100)]
doc: move utilizing multiple CPUs to performance tuning
Tomas Krizek [Mon, 2 Dec 2019 13:13:36 +0000 (14:13 +0100)]
doc: create tuning guide
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
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()
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
Vladimír Čunát [Wed, 8 Jan 2020 14:52:09 +0000 (15:52 +0100)]
cache opening: add strerror into the lua exception
Here I'm interested in "No space left on device"
Tomas Krizek [Wed, 8 Jan 2020 13:06:38 +0000 (14:06 +0100)]
tests/pytests: set a small cache size
With preallocation, the cache for the parallel pytests has to be
small enough so there's enough space to fit multiple of them in
the tmpfs of test machine.
Lukáš Ježek [Tue, 7 Jan 2020 14:45:08 +0000 (15:45 +0100)]
cache: pre-allocating cache file when cache size is being changed
Tomas Krizek [Wed, 8 Jan 2020 13:46:22 +0000 (14:46 +0100)]
Merge branch 'ci-fixes' into 'master'
ci: fixes
See merge request knot/knot-resolver!918
Tomas Krizek [Wed, 8 Jan 2020 13:31:28 +0000 (14:31 +0100)]
tests/pytests: create and collect html report
The report has been previously removed, most likely by a mistake.
Tomas Krizek [Wed, 8 Jan 2020 13:27:46 +0000 (14:27 +0100)]
ci: re-run valgrind test on failure
Vladimír Čunát [Tue, 7 Jan 2020 13:45:09 +0000 (14:45 +0100)]
Merge !911: daemon/main: decrease suggested nofile hard limit to 512k
Closes #476
Tomas Krizek [Mon, 16 Dec 2019 13:15:09 +0000 (14:15 +0100)]
daemon/main: decrease suggested nofile hard limit to 512k
512k (or more) seems to be hard limit valued used by multiple distros
(fedora, arch, ubuntu, debian).
Closes #476
Lukas Jezek [Tue, 7 Jan 2020 12:53:42 +0000 (13:53 +0100)]
Merge branch 'https_client_improvemens' into 'master'
HTTPS client improvemens
See merge request knot/knot-resolver!913
Petr Špaček [Mon, 30 Dec 2019 15:56:11 +0000 (16:56 +0100)]
utils: add human-readable text to HTTP client library errors
Petr Špaček [Mon, 30 Dec 2019 13:31:00 +0000 (14:31 +0100)]
prefill: retry download immendiatelly if cached data cannot be imported
Retry will typically happen if data on disk are corrupted, and in that
case it does not make sense to wait full retry interval.
Petr Špaček [Mon, 30 Dec 2019 13:06:37 +0000 (14:06 +0100)]
prefill: remove zone file from disk on failure
Empty zone file was causing errors after restart and user had to wait to
retry interval before re-download. Let's not polute filesystem with
incomplete files.
Petr Špaček [Mon, 30 Dec 2019 11:16:52 +0000 (12:16 +0100)]
prefill: allow to use system-wide CA store
It also improves error reporting from store:add() call.
Sometimes the error message from lua-ossl is incomplete. This is fixed
by https://github.com/wahern/luaossl/pull/176.
Petr Špaček [Mon, 30 Dec 2019 10:43:03 +0000 (11:43 +0100)]
utils: log errors from HTTPS client library
Previous code inconsistently thrown some errors and returned as string
other ones, so we now return all errors as strings in classic Lua-style.
Petr Špaček [Tue, 7 Jan 2020 10:00:28 +0000 (11:00 +0100)]
Merge branch 'ta-test-update-cert' into 'master'
daemon/trust_anchors.test: Turn off expiration date in certificates
See merge request knot/knot-resolver!916
Lukáš Ježek [Tue, 7 Jan 2020 09:47:24 +0000 (10:47 +0100)]
daemon/trust_anchors.test: Turn off expiration date in certificates
Petr Špaček [Mon, 23 Dec 2019 19:08:34 +0000 (20:08 +0100)]
Merge branch 'doc-quickstart' into 'master'
Quick start documentation
Closes #500, #499, and #498
See merge request knot/knot-resolver!867
Petr Špaček [Mon, 23 Dec 2019 17:30:51 +0000 (18:30 +0100)]
docs: quick start guide: final polish
Ales Mrazek [Thu, 17 Oct 2019 11:52:17 +0000 (13:52 +0200)]
docs: quick start documentation third draft corrections
Ales Mrazek [Mon, 7 Oct 2019 11:37:30 +0000 (13:37 +0200)]
docs: quick start documentation third draft
Ales Mrazek [Thu, 3 Oct 2019 08:02:52 +0000 (08:02 +0000)]
docs: apply suggestion to doc/startguide.rst
Ales Mrazek [Mon, 30 Sep 2019 12:11:35 +0000 (14:11 +0200)]
docs: quick start documentation second draft
Ales Mrazek [Wed, 11 Sep 2019 12:34:25 +0000 (14:34 +0200)]
docs: quick start documentation first draft
Petr Špaček [Fri, 20 Dec 2019 15:11:26 +0000 (16:11 +0100)]
Merge branch 'freebind' into 'master'
daemon/network: add freebind support
See merge request knot/knot-resolver!898
Petr Špaček [Fri, 20 Dec 2019 14:18:00 +0000 (15:18 +0100)]
tests: sanity check for net.listen() and net.list()
Tomas Krizek [Fri, 13 Dec 2019 14:32:29 +0000 (15:32 +0100)]
modules/http: fix net.listen in config tests
Tomas Krizek [Wed, 11 Dec 2019 17:09:46 +0000 (18:09 +0100)]
tests/config: add freebind test
Tomas Krizek [Wed, 11 Dec 2019 17:07:01 +0000 (18:07 +0100)]
bindings/net: throw lua error ofr net.listen() failures
To avoid configuration errors, throw a lua error and crash
if it's not possible to bind as specified in net.listen().
For special use-cases, freebind=true should be used instead.