]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
5 years agodoc: fix broken links 63592
Lukáš Ježek [Wed, 6 May 2020 06:55:49 +0000 (08:55 +0200)] 
doc: fix broken links

5 years agoMerge branch 'distrotests-leap15.2' into 'master' obs-knot-dns-deve-jq0xxt/deployments/817 obs-knot-dns-deve-jq0xxt/deployments/819 obs-knot-dns-deve-jq0xxt/deployments/821 obs-knot-dns-deve-jq0xxt/deployments/823 obs-knot-resolver-es11k1/deployments/818 obs-knot-resolver-es11k1/deployments/820 obs-knot-resolver-es11k1/deployments/822 obs-knot-resolver-es11k1/deployments/824
Tomas Krizek [Thu, 14 May 2020 10:53:16 +0000 (12:53 +0200)] 
Merge branch 'distrotests-leap15.2' into 'master'

distro/tests: update to leap 15.2

See merge request knot/knot-resolver!1002

5 years agodistro/tests: update to leap 15.2 obs-knot-resolver-bs4hbr/deployments/816
Tomas Krizek [Thu, 14 May 2020 09:51:20 +0000 (11:51 +0200)] 
distro/tests: update to leap 15.2

5 years agoMerge branch 'new-gdb' into 'master' obs-knot-dns-deve-jq0xxt/deployments/814 obs-knot-resolver-es11k1/deployments/815
Lukas Jezek [Wed, 13 May 2020 12:57:02 +0000 (14:57 +0200)] 
Merge branch 'new-gdb' into 'master'

scripts/gen-cdefs.sh: adapt to changes in new gdb

See merge request knot/knot-resolver!1001

5 years agoscripts/gen-cdefs.sh: adapt to changes in new gdb
Vladimír Čunát [Wed, 13 May 2020 09:08:47 +0000 (11:08 +0200)] 
scripts/gen-cdefs.sh: adapt to changes in new gdb

Now it works again with the latest gdb-9.1.
As a side effect, some simplification was possible, so that some
typedefs are newly defined at once with the underlying type.

5 years agoMerge !991: daemon/io: tty recognizes command boundary obs-knot-dns-deve-jq0xxt/deployments/804 obs-knot-dns-deve-jq0xxt/deployments/806 obs-knot-dns-deve-jq0xxt/deployments/808 obs-knot-dns-deve-jq0xxt/deployments/810 obs-knot-dns-deve-jq0xxt/deployments/812 obs-knot-resolver-es11k1/deployments/805 obs-knot-resolver-es11k1/deployments/807 obs-knot-resolver-es11k1/deployments/809 obs-knot-resolver-es11k1/deployments/811 obs-knot-resolver-es11k1/deployments/813
Vladimír Čunát [Fri, 8 May 2020 14:43:23 +0000 (16:43 +0200)] 
Merge !991: daemon/io: tty recognizes command boundary

5 years agodaemon/io: tty recognize newline as command boundary 63359
Lukáš Ježek [Wed, 29 Apr 2020 12:22:51 +0000 (14:22 +0200)] 
daemon/io: tty recognize newline as command boundary

5 years agoMerge branch 'luajit-includes' into 'master' obs-knot-dns-deve-jq0xxt/deployments/802 obs-knot-resolver-es11k1/deployments/803
Petr Špaček [Thu, 7 May 2020 06:49:55 +0000 (08:49 +0200)] 
Merge branch 'luajit-includes' into 'master'

luajit includes

Closes #570

See merge request knot/knot-resolver!996

5 years agodaemon/bindings: stricter luajit detection
Vladimír Čunát [Mon, 4 May 2020 10:17:43 +0000 (12:17 +0200)] 
daemon/bindings: stricter luajit detection

5 years agoMerge branch '559-handle-conflicting-trust-anchor-negative-trust-anchor-definitions...
Petr Špaček [Thu, 7 May 2020 06:36:56 +0000 (08:36 +0200)] 
Merge branch '559-handle-conflicting-trust-anchor-negative-trust-anchor-definitions' into 'master'

daemon/lua/trust_anchors: set_insecure() fails when NTA is in TA list

Closes #559

See merge request knot/knot-resolver!995

5 years agodaemon/lua/trust_anchors: set_insecure() fails when NTA is in TA list
Lukáš Ježek [Thu, 30 Apr 2020 13:22:56 +0000 (15:22 +0200)] 
daemon/lua/trust_anchors: set_insecure() fails when NTA is in TA list

5 years agoMerge branch 'distrotests-ubuntu' into 'master' obs-knot-dns-deve-jq0xxt/deployments/800 obs-knot-resolver-es11k1/deployments/801
Tomas Krizek [Wed, 6 May 2020 11:35:37 +0000 (13:35 +0200)] 
Merge branch 'distrotests-ubuntu' into 'master'

distro/tests: switch to generic/ubuntu2004 box

See merge request knot/knot-resolver!998

5 years agodistro/tests: switch to generic/ubuntu2004 box obs-knot-resolver-bs4hbr/deployments/799
Tomas Krizek [Wed, 6 May 2020 08:17:09 +0000 (10:17 +0200)] 
distro/tests: switch to generic/ubuntu2004 box

5 years agoMerge branch 'doc-centos-8' into 'master' obs-knot-dns-deve-jq0xxt/deployments/797 obs-knot-resolver-es11k1/deployments/798
Tomas Krizek [Tue, 5 May 2020 09:00:29 +0000 (11:00 +0200)] 
Merge branch 'doc-centos-8' into 'master'

doc/quickstart: CentOS 8 is now supported

See merge request knot/knot-resolver!993

5 years agodoc/quickstart: CentOS 8 is now supported
Tomas Krizek [Thu, 30 Apr 2020 13:00:25 +0000 (15:00 +0200)] 
doc/quickstart: CentOS 8 is now supported

5 years agoMerge !994: ci: add faketime for Deckard to Dockerfile obs-knot-dns-deve-jq0xxt/deployments/795 obs-knot-resolver-es11k1/deployments/796
Vladimír Čunát [Mon, 4 May 2020 14:42:39 +0000 (16:42 +0200)] 
Merge !994: ci: add faketime for Deckard to Dockerfile

5 years agoci: add faketime for Deckard to Dockerfile
Štěpán Balážik [Sat, 2 May 2020 17:06:14 +0000 (19:06 +0200)] 
ci: add faketime for Deckard to Dockerfile

5 years agoMerge branch 'deckard_update' into 'master' obs-knot-dns-deve-jq0xxt/deployments/786 obs-knot-dns-deve-jq0xxt/deployments/788 obs-knot-dns-deve-jq0xxt/deployments/790 obs-knot-dns-deve-jq0xxt/deployments/792 obs-knot-resolver-es11k1/deployments/787 obs-knot-resolver-es11k1/deployments/789 obs-knot-resolver-es11k1/deployments/791 obs-knot-resolver-es11k1/deployments/793
Petr Špaček [Thu, 30 Apr 2020 13:42:06 +0000 (15:42 +0200)] 
Merge branch 'deckard_update' into 'master'

Deckard update

See merge request knot/knot-resolver!992

5 years agoci: change scan-build error number
Štěpán Balážik [Thu, 30 Apr 2020 12:39:46 +0000 (14:39 +0200)] 
ci: change scan-build error number

38 -> 30. 8 were in Deckard's libswrap which is now longer used.

5 years agoci: reenable `sendmmsg` for Deckard tests
Štěpán Balážik [Thu, 30 Apr 2020 12:10:04 +0000 (14:10 +0200)] 
ci: reenable `sendmmsg` for Deckard tests

5 years agoci: update Deckard to a version without swrap
Petr Špaček [Mon, 27 Apr 2020 11:15:38 +0000 (13:15 +0200)] 
ci: update Deckard to a version without swrap

5 years agoMerge branch 'release-5-1-0' into 'master' obs-knot-dns-deve-jq0xxt/deployments/784 obs-knot-resolver-8xyvhu/deployments/783 obs-knot-resolver-es11k1/deployments/785 obs-knot-resolver-kv62s6/deployments/782 v5.1.0
Tomas Krizek [Wed, 29 Apr 2020 11:04:26 +0000 (13:04 +0200)] 
Merge branch 'release-5-1-0' into 'master'

release 5.1.0

See merge request knot/knot-resolver!987

5 years agoci: generate en_US.UTF-8 locale in docker image
Tomas Krizek [Tue, 28 Apr 2020 09:24:15 +0000 (11:24 +0200)] 
ci: generate en_US.UTF-8 locale in docker image

5 years agoAUTHORS: update
Tomas Krizek [Tue, 28 Apr 2020 08:14:53 +0000 (10:14 +0200)] 
AUTHORS: update

5 years agolib/module: bump KR_MODULE_API, reformulate NEWS
Vladimír Čunát [Mon, 27 Apr 2020 16:17:14 +0000 (18:17 +0200)] 
lib/module: bump KR_MODULE_API, reformulate NEWS

We had some minor API changes since the last release.
Perhaps we haven't been bumping this often enough.

5 years agorelease 5.1.0
Tomas Krizek [Mon, 27 Apr 2020 15:37:35 +0000 (17:37 +0200)] 
release 5.1.0

5 years agoMerge branch 'survey' into 'master'
Petr Špaček [Wed, 29 Apr 2020 10:33:38 +0000 (12:33 +0200)] 
Merge branch 'survey' into 'master'

doc: link to survey page

See merge request knot/knot-resolver!990

5 years agodoc: link to survey page
Petr Špaček [Wed, 29 Apr 2020 10:12:07 +0000 (12:12 +0200)] 
doc: link to survey page

5 years agoMerge branch 'distrotest-f32' into 'master'
Tomas Krizek [Wed, 29 Apr 2020 08:05:17 +0000 (10:05 +0200)] 
Merge branch 'distrotest-f32' into 'master'

distro/tests: add Fedora 32

See merge request knot/knot-resolver!989

5 years agodistro/tests: add Fedora 32 obs-knot-resolver-bs4hbr/deployments/778 obs-knot-resolver-bs4hbr/deployments/779 obs-knot-resolver-es11k1/deployments/781
Tomas Krizek [Tue, 28 Apr 2020 16:01:15 +0000 (18:01 +0200)] 
distro/tests: add Fedora 32

5 years agoMerge branch 'distrotest-ubuntu2004' into 'master' obs-knot-dns-deve-jq0xxt/deployments/776 obs-knot-dns-deve-jq0xxt/deployments/780 obs-knot-resolver-es11k1/deployments/777
Tomas Krizek [Mon, 27 Apr 2020 16:08:34 +0000 (18:08 +0200)] 
Merge branch 'distrotest-ubuntu2004' into 'master'

distro/tests: add Ubuntu 20.04

See merge request knot/knot-resolver!986

5 years agodistro/tests: add Ubuntu 20.04
Tomas Krizek [Thu, 23 Apr 2020 12:51:35 +0000 (14:51 +0200)] 
distro/tests: add Ubuntu 20.04

5 years agoMerge !982: docs: set user expectations
Vladimír Čunát [Mon, 27 Apr 2020 14:08:55 +0000 (16:08 +0200)] 
Merge !982: docs: set user expectations

5 years agodocs: ask for feedback around policies
Petr Špaček [Thu, 23 Apr 2020 10:07:18 +0000 (12:07 +0200)] 
docs: ask for feedback around policies

Feedback will get handy when we start working on #535.

5 years agodocs: add warning about DoH properties
Petr Špaček [Thu, 23 Apr 2020 09:38:08 +0000 (11:38 +0200)] 
docs: add warning about DoH properties

5 years agodocs: add warning about DoT properties
Petr Špaček [Thu, 23 Apr 2020 09:37:44 +0000 (11:37 +0200)] 
docs: add warning about DoT properties

5 years agodaemon: warn that non-Linux platforms are untested
Petr Špaček [Wed, 22 Apr 2020 08:18:56 +0000 (10:18 +0200)] 
daemon: warn that non-Linux platforms are untested

Hopefully this will help to set right expectations.

5 years agoMerge branch 'docker_debug' into 'master'
Tomas Krizek [Mon, 27 Apr 2020 13:57:55 +0000 (15:57 +0200)] 
Merge branch 'docker_debug' into 'master'

Docker debug improvements

See merge request knot/knot-resolver!984

5 years agodocker: measure request resolution time in debug mode
Petr Špaček [Mon, 27 Apr 2020 06:13:57 +0000 (08:13 +0200)] 
docker: measure request resolution time in debug mode

5 years agodocker: enable DO bit in debug mode
Petr Špaček [Mon, 27 Apr 2020 06:13:21 +0000 (08:13 +0200)] 
docker: enable DO bit in debug mode

5 years agodocker: always clear cache in debug mode
Petr Špaček [Mon, 27 Apr 2020 06:12:10 +0000 (08:12 +0200)] 
docker: always clear cache in debug mode

5 years agoWIP: improvements for Docker debug mode
Petr Špaček [Wed, 8 Apr 2020 07:40:17 +0000 (09:40 +0200)] 
WIP: improvements for Docker debug mode

5 years agoMerge branch 'dname-support' into 'master'
Petr Špaček [Mon, 27 Apr 2020 13:23:28 +0000 (15:23 +0200)] 
Merge branch 'dname-support' into 'master'

DNAME support

Closes #234

See merge request knot/knot-resolver!965

5 years agolib/cache: shut up linters
Vladimír Čunát [Fri, 24 Apr 2020 10:24:42 +0000 (12:24 +0200)] 
lib/cache: shut up linters

It makes no sense to run produce/consume with either of these NULL.

5 years agotests: add Deckard module with DNAME tests
Petr Špaček [Mon, 27 Apr 2020 12:43:37 +0000 (14:43 +0200)] 
tests: add Deckard module with DNAME tests

5 years agovalidator: stricter filtering of "failed" ranks from answer
Vladimír Čunát [Fri, 17 Apr 2020 09:14:12 +0000 (11:14 +0200)] 
validator: stricter filtering of "failed" ranks from answer

It appears possible that a KR_RANK_MISSING record might still get into
answer in some edge cases, so let's be more defensive.  See cce8d9355.

5 years agofix DNAME support
Vladimír Čunát [Mon, 30 Mar 2020 15:28:26 +0000 (17:28 +0200)] 
fix DNAME support

5 years agoMerge !983: prefill/zimport: fix race condition on TA access obs-knot-dns-deve-jq0xxt/deployments/767 obs-knot-dns-deve-jq0xxt/deployments/769 obs-knot-dns-deve-jq0xxt/deployments/771 obs-knot-resolver-es11k1/deployments/768 obs-knot-resolver-es11k1/deployments/770 obs-knot-resolver-es11k1/deployments/772
Vladimír Čunát [Fri, 24 Apr 2020 10:15:19 +0000 (12:15 +0200)] 
Merge !983: prefill/zimport: fix race condition on TA access

5 years agozimport: log errors on error level, not just verbose
Petr Špaček [Fri, 24 Apr 2020 09:08:32 +0000 (11:08 +0200)] 
zimport: log errors on error level, not just verbose

5 years agoprefill/zimport: NEWS
Petr Špaček [Fri, 24 Apr 2020 09:08:06 +0000 (11:08 +0200)] 
prefill/zimport: NEWS

5 years agoprefill/zimport: fix race condition on TA access
Petr Špaček [Fri, 24 Apr 2020 08:59:07 +0000 (10:59 +0200)] 
prefill/zimport: fix race condition on TA access

TA RRset might change asynchronously between zi_zone_import() and
zi_zone_process(), we cannot rely pointer from zi_zone_import().

5 years agoMerge branch 'cname-rank-no-ta' into 'master' obs-knot-dns-deve-jq0xxt/deployments/765 obs-knot-resolver-es11k1/deployments/766
Petr Špaček [Thu, 23 Apr 2020 12:29:29 +0000 (14:29 +0200)] 
Merge branch 'cname-rank-no-ta' into 'master'

cache: fix cases of CNAMEs not getting cached

See merge request knot/knot-resolver!974

5 years agoiterate: use resolve_badmsg() fallback for more RCODEs
Vladimír Čunát [Wed, 22 Apr 2020 11:38:39 +0000 (13:38 +0200)] 
iterate: use resolve_badmsg() fallback for more RCODEs

+ REFUSED and SERVFAIL (in non-STUB)

5 years agocache: avoid CNAMEs when QTYPE=DS
Vladimír Čunát [Tue, 7 Apr 2020 08:25:05 +0000 (10:25 +0200)] 
cache: avoid CNAMEs when QTYPE=DS

It's disallowed combination, but why not fix it when it's so easy.

This was exposed by some of the previous two commits (not sure why)
in CI test for kresd->kresd forwarding.

5 years agocache: fix CNAME caching when validation is disabled
Vladimír Čunát [Mon, 6 Apr 2020 10:10:50 +0000 (12:10 +0200)] 
cache: fix CNAME caching when validation is disabled

This also fixes the same for DNAMEs - soon, when they get supported.

Only the special case is changed - xNAMEs when no TAs exist.
Overall the TA handling in kresd is buggy; fortunately in practice it
seems very rare to run in other configuration than single root TA.

5 years agocache: in STUB mode always cache whole packets
Vladimír Čunát [Mon, 6 Apr 2020 11:43:05 +0000 (13:43 +0200)] 
cache: in STUB mode always cache whole packets

... instead of individual records.
- iterator in STUB mode can't process individual CNAME steps from cache
- perhaps it's more suitable for STUB anyway

5 years agoMerge branch 'ci-dumpcap-fix' into 'master' obs-knot-dns-deve-jq0xxt/deployments/752 obs-knot-dns-deve-jq0xxt/deployments/754 obs-knot-dns-deve-jq0xxt/deployments/756 obs-knot-dns-deve-jq0xxt/deployments/758 obs-knot-dns-deve-jq0xxt/deployments/760 obs-knot-dns-deve-jq0xxt/deployments/762 obs-knot-resolver-es11k1/deployments/753 obs-knot-resolver-es11k1/deployments/755 obs-knot-resolver-es11k1/deployments/757 obs-knot-resolver-es11k1/deployments/759 obs-knot-resolver-es11k1/deployments/761 obs-knot-resolver-es11k1/deployments/763
Tomas Krizek [Fri, 17 Apr 2020 09:54:47 +0000 (11:54 +0200)] 
Merge branch 'ci-dumpcap-fix' into 'master'

ci: enable docker-build to run non-interactively

See merge request knot/knot-resolver!981

5 years agoci: enable docker-build to run non-interactively
Štěpán Balážik [Thu, 16 Apr 2020 19:52:27 +0000 (21:52 +0200)] 
ci: enable docker-build to run non-interactively

5 years agoMerge branch 'ci-dumpcap' into 'master' obs-knot-dns-deve-jq0xxt/deployments/750 obs-knot-resolver-es11k1/deployments/751
Tomas Krizek [Thu, 16 Apr 2020 12:54:48 +0000 (14:54 +0200)] 
Merge branch 'ci-dumpcap' into 'master'

ci: add dumpcap for Deckard to Debian image

See merge request knot/knot-resolver!980

5 years agoci: add dumpcap for Deckard to Debian image
Štěpán Balážik [Thu, 16 Apr 2020 12:34:47 +0000 (14:34 +0200)] 
ci: add dumpcap for Deckard to Debian image

5 years agoMerge !979: lua: properly initialize random number generator obs-knot-dns-deve-jq0xxt/deployments/748 obs-knot-resolver-es11k1/deployments/749
Vladimír Čunát [Wed, 15 Apr 2020 13:10:51 +0000 (15:10 +0200)] 
Merge !979: lua: properly initialize random number generator

5 years agolua: properly initialize random number generator
Petr Špaček [Wed, 15 Apr 2020 08:55:07 +0000 (10:55 +0200)] 
lua: properly initialize random number generator

Formerly multiple instances could use the same seed,
which prevented the retry logic in Lua modules (e.g. prefill) from
retrying at different times.

AFAIK security impact is zero aside from potential thundering-herd
problem with many kresd instances.

5 years agoMerge !978: doc: support sphinx 3.0.0+ obs-knot-resolver-es11k1/deployments/747
Vladimír Čunát [Wed, 15 Apr 2020 08:49:59 +0000 (10:49 +0200)] 
Merge !978: doc: support sphinx 3.0.0+

5 years agodoc: use python as default domain
Tomas Krizek [Wed, 15 Apr 2020 08:14:51 +0000 (10:14 +0200)] 
doc: use python as default domain

Our lua functions don't conform to C function declarations, which
generates warnings when using Sphinx 3.0.0+.

5 years agodoc: use sphinx 3.0.0+ on readthedocs
Tomas Krizek [Tue, 14 Apr 2020 14:39:00 +0000 (16:39 +0200)] 
doc: use sphinx 3.0.0+ on readthedocs

5 years agodoc/lib: add warning about potential doc inaccuracies
Tomas Krizek [Tue, 14 Apr 2020 14:36:28 +0000 (16:36 +0200)] 
doc/lib: add warning about potential doc inaccuracies

5 years agodoc/policy: make sure only one reference to rpz() exists
Tomas Krizek [Tue, 14 Apr 2020 14:36:07 +0000 (16:36 +0200)] 
doc/policy: make sure only one reference to rpz() exists

5 years agodoc/upgrading: reword to use new-style C reference
Tomas Krizek [Tue, 14 Apr 2020 14:35:20 +0000 (16:35 +0200)] 
doc/upgrading: reword to use new-style C reference

5 years agolib/rplan: clean up codestyle for doxygen
Tomas Krizek [Tue, 14 Apr 2020 11:30:06 +0000 (13:30 +0200)] 
lib/rplan: clean up codestyle for doxygen

5 years agolib/utils: ensure consistent use of KR_* macros
Tomas Krizek [Tue, 14 Apr 2020 11:28:21 +0000 (13:28 +0200)] 
lib/utils: ensure consistent use of KR_* macros

The macros that expand to __attribute__(x) should precede function
declaration, consistently with all the other code.

5 years agodoc/doxygen: configure macro expansion and edge cases
Tomas Krizek [Tue, 14 Apr 2020 11:06:09 +0000 (13:06 +0200)] 
doc/doxygen: configure macro expansion and edge cases

Configure doxygen to expand/ignore some macros like KR_EXPORT.

Skip some edge-case symbols that would be difficult to fix otherwise.

5 years agoMerge !975: prevent bogus RRsets from leaking into answers
Vladimír Čunát [Wed, 15 Apr 2020 08:25:20 +0000 (10:25 +0200)] 
Merge !975: prevent bogus RRsets from leaking into answers

Closes #396

5 years agovalidator: use rank BOGUS where appropriate instead of MISSING
Petr Špaček [Tue, 7 Apr 2020 13:55:52 +0000 (15:55 +0200)] 
validator: use rank BOGUS where appropriate instead of MISSING

MISSING triggers re-query to auth in attempt to find missing RRSIGs.
It causes reduntant queries and also puts some BOGUS RRsets in answers.
(It sounds bad but we were correctly setting rcode=SERVFAIL and AD=0
even before this commit.)

Formerly RRSIG ranks did not reflect results of validation.
Now we mark them as BOGUS and upgrade them to SECURE if they validate.

New validator phase answer_finalize prevents BOGUS RRsets from being
put even into SERVFAIL answers.

Closes: #396
5 years agoMerge branch '194-support-rpz-cname-redirection' into 'master'
Petr Špaček [Tue, 14 Apr 2020 16:09:31 +0000 (18:09 +0200)] 
Merge branch '194-support-rpz-cname-redirection' into 'master'

support arbitrary data in RPZ

See merge request knot/knot-resolver!964

5 years agomodules/policy: use origin and domain name as binary data
Lukáš Ježek [Tue, 14 Apr 2020 08:33:38 +0000 (10:33 +0200)] 
modules/policy: use origin and domain name as binary data

5 years agomodules/policy: Return NODATA on *. action in rpz file
Lukáš Ježek [Mon, 6 Apr 2020 07:54:53 +0000 (09:54 +0200)] 
modules/policy: Return NODATA on *. action  in rpz file

5 years agomodules/policy/rpz: Correct work if RRset is suffixed zone name
Lukáš Ježek [Mon, 6 Apr 2020 07:09:21 +0000 (09:09 +0200)] 
modules/policy/rpz: Correct work if RRset is suffixed zone name

5 years agomodules/policy: Add RPZ test
Lukáš Ježek [Thu, 2 Apr 2020 12:38:13 +0000 (14:38 +0200)] 
modules/policy: Add RPZ test

5 years agomodules/policy: Take multiple RR types from rpz file for a single domain name
Lukáš Ježek [Wed, 1 Apr 2020 10:49:45 +0000 (12:49 +0200)] 
modules/policy: Take multiple RR types from rpz file for a single domain name

5 years agomodules/policy: Overwrite rdata by rpz file
Lukáš Ježek [Mon, 30 Mar 2020 10:02:05 +0000 (12:02 +0200)] 
modules/policy: Overwrite rdata by rpz file

5 years agomodules/policy: Add ANSWER action
Lukáš Ježek [Thu, 26 Mar 2020 08:05:46 +0000 (09:05 +0100)] 
modules/policy: Add ANSWER action

5 years agoMerge branch 'pkg-varlib-permissions' into 'master'
Tomas Krizek [Tue, 14 Apr 2020 14:49:26 +0000 (16:49 +0200)] 
Merge branch 'pkg-varlib-permissions' into 'master'

systemd/tmpfiles: change directory owner to root

See merge request knot/knot-resolver!972

5 years agosystemd/tmpfiles: change directory owner to root obs-knot-resolver-bs4hbr/deployments/743
Tomas Krizek [Thu, 2 Apr 2020 13:29:56 +0000 (15:29 +0200)] 
systemd/tmpfiles: change directory owner to root

Change the owner of kresd files to root:knot-resolver. This improves
behaviour for Fedora, where kresd can run under root (e.g. in Docker).
Otherwise, running kresd as root on Fedora would fail because of dropped
capabilities and attempting to access /var/lib/knot-resolver, which was
owned by knot-resolver.

This change makes it possible for both root (user) and knot-resolver
(group) to have the same permissions on these directories despite
dropped capabilities.

5 years agodistro/rpm: make owner consistent with other dirs
Tomas Krizek [Thu, 2 Apr 2020 13:29:41 +0000 (15:29 +0200)] 
distro/rpm: make owner consistent with other dirs

5 years agoMerge branch 'cache-pkt-large' into 'master'
Petr Špaček [Tue, 14 Apr 2020 08:16:35 +0000 (10:16 +0200)] 
Merge branch 'cache-pkt-large' into 'master'

cache: fix large answers from packet cache

See merge request knot/knot-resolver!976

5 years agocache: fix large answers from packet cache
Vladimír Čunát [Thu, 9 Apr 2020 09:44:35 +0000 (11:44 +0200)] 
cache: fix large answers from packet cache

Atomic packets larger than both 4k and net.bufsize() could not
be fetched from cache; now that's fixed in a minimalistic way.
(Minimalistic except for nitpicks like adding comments.)

5 years agoMerge !977: lua worker.bg_worker: also report missing cqueues
Vladimír Čunát [Tue, 14 Apr 2020 07:23:53 +0000 (09:23 +0200)] 
Merge !977: lua worker.bg_worker: also report missing cqueues

Fixes #562 (kind-of)

5 years agolua worker: improve message when missing cqueues
Petr Špaček [Tue, 14 Apr 2020 05:54:57 +0000 (07:54 +0200)] 
lua worker: improve message when missing cqueues

5 years agolua worker.bg_worker: also report missing cqueues
Vladimír Čunát [Tue, 14 Apr 2020 05:55:29 +0000 (07:55 +0200)] 
lua worker.bg_worker: also report missing cqueues

Otherwise people could get confusing errors like:
> attempt to index field 'bg_worker' (a nil value)

5 years agoMerge branch 'rpm-centos8' into 'master' obs-knot-dns-deve-jq0xxt/deployments/731 obs-knot-dns-deve-jq0xxt/deployments/733 obs-knot-dns-deve-jq0xxt/deployments/735 obs-knot-dns-deve-jq0xxt/deployments/737 obs-knot-dns-deve-jq0xxt/deployments/739 obs-knot-dns-deve-jq0xxt/deployments/741 obs-knot-resolver-es11k1/deployments/732 obs-knot-resolver-es11k1/deployments/734 obs-knot-resolver-es11k1/deployments/736 obs-knot-resolver-es11k1/deployments/738 obs-knot-resolver-es11k1/deployments/740 obs-knot-resolver-es11k1/deployments/742
Tomas Krizek [Wed, 8 Apr 2020 10:23:18 +0000 (12:23 +0200)] 
Merge branch 'rpm-centos8' into 'master'

distro/rpm: make spec centos8 compatible

See merge request knot/knot-resolver!973

5 years agoci: add obs:centos8 job obs-knot-resolver-bs4hbr/deployments/730
Tomas Krizek [Wed, 8 Apr 2020 09:09:12 +0000 (11:09 +0200)] 
ci: add obs:centos8 job

5 years agodistro/tests: add centos8
Tomas Krizek [Wed, 8 Apr 2020 09:07:15 +0000 (11:07 +0200)] 
distro/tests: add centos8

5 years agodistro/rpm: make spec centos8 compatible
Tomas Krizek [Fri, 3 Apr 2020 09:52:26 +0000 (11:52 +0200)] 
distro/rpm: make spec centos8 compatible

5 years agoMerge branch 'policy-postrules' into 'master' obs-knot-dns-deve-jq0xxt/deployments/720 obs-knot-dns-deve-jq0xxt/deployments/722 obs-knot-dns-deve-jq0xxt/deployments/724 obs-knot-dns-deve-jq0xxt/deployments/726 obs-knot-dns-deve-jq0xxt/deployments/728 obs-knot-resolver-es11k1/deployments/721 obs-knot-resolver-es11k1/deployments/723 obs-knot-resolver-es11k1/deployments/725 obs-knot-resolver-es11k1/deployments/727 obs-knot-resolver-es11k1/deployments/729
Tomas Krizek [Fri, 3 Apr 2020 13:32:47 +0000 (15:32 +0200)] 
Merge branch 'policy-postrules' into 'master'

policy postrules

Closes #556

See merge request knot/knot-resolver!969

5 years agorebinding: deduplicate code of policy.REFUSE
Vladimír Čunát [Thu, 2 Apr 2020 07:46:50 +0000 (09:46 +0200)] 
rebinding: deduplicate code of policy.REFUSE

5 years agopolicy: fix qry parameter in postrules
Vladimír Čunát [Thu, 2 Apr 2020 07:01:11 +0000 (09:01 +0200)] 
policy: fix qry parameter in postrules

Some rules need it and it was nil until now.

5 years agomodules/policy: make actions usable in postrules
Vladimír Čunát [Wed, 4 Dec 2019 08:18:57 +0000 (09:18 +0100)] 
modules/policy: make actions usable in postrules

DENY, DENY_MSG, DROP, REFUSE and TC will now clear the _selected RRs.
I believe that's what people usually expect of these actions anyway.

5 years agoMerge branch 'modules-tests' into 'master' obs-knot-dns-deve-jq0xxt/deployments/717 obs-knot-resolver-es11k1/deployments/718
Tomas Krizek [Thu, 2 Apr 2020 12:33:49 +0000 (14:33 +0200)] 
Merge branch 'modules-tests' into 'master'

modules/meson.build: move test definitions closer to modules

See merge request knot/knot-resolver!971

5 years agomodules/meson.build: move test definitions closer to modules
Vladimír Čunát [Thu, 2 Apr 2020 09:14:25 +0000 (11:14 +0200)] 
modules/meson.build: move test definitions closer to modules

5 years agoMerge !966: daf and HTTP fixes
Vladimír Čunát [Thu, 2 Apr 2020 12:11:04 +0000 (14:11 +0200)] 
Merge !966: daf and HTTP fixes

Closes #553.