]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
3 years agoMerge branch 'parse-rdata' into 'master' obs-knot-resolver-es11k1/deployments/1938 obs-knot-resolver-es11k1/deployments/1939 obs-knot-resolver-es11k1/deployments/1940 obs-knot-resolver-es11k1/deployments/1941
Tomas Krizek [Fri, 26 Nov 2021 10:33:42 +0000 (11:33 +0100)] 
Merge branch 'parse-rdata' into 'master'

lua: add parse_rdata() utility function

See merge request knot/knot-resolver!1233

3 years agodoc: document kres.parse_rdata() near policy.ANSWER
Tomas Krizek [Thu, 25 Nov 2021 12:12:43 +0000 (13:12 +0100)] 
doc: document kres.parse_rdata() near policy.ANSWER

3 years agoconfig.basic: test coverage for parse_rdata()
Tomas Krizek [Thu, 25 Nov 2021 11:14:31 +0000 (12:14 +0100)] 
config.basic: test coverage for parse_rdata()

3 years agolua: add parse_rdata() utility function
Tomas Krizek [Thu, 25 Nov 2021 10:43:30 +0000 (11:43 +0100)] 
lua: add parse_rdata() utility function

Credit for code goes to Vladimír Čunát

3 years agoMerge branch 'reroute-renumber' into 'master' obs-knot-resolver-es11k1/deployments/1936 obs-knot-resolver-es11k1/deployments/1937
Tomas Krizek [Wed, 24 Nov 2021 15:02:07 +0000 (16:02 +0100)] 
Merge branch 'reroute-renumber' into 'master'

renumber and reroute: documentation updates

See merge request knot/knot-resolver!1232

3 years agorenumber: graceful error on invalid subnet
Tomas Krizek [Wed, 24 Nov 2021 13:55:54 +0000 (14:55 +0100)] 
renumber: graceful error on invalid subnet

3 years agopolicy: update REROUTE doc to reflect real configuration
Tomas Krizek [Tue, 23 Nov 2021 14:27:16 +0000 (15:27 +0100)] 
policy: update REROUTE doc to reflect real configuration

3 years agorenumber: warn when using unsupported network mask
Tomas Krizek [Tue, 23 Nov 2021 14:23:07 +0000 (15:23 +0100)] 
renumber: warn when using unsupported network mask

3 years agomodules/renumber: remove useless code
Tomas Krizek [Tue, 23 Nov 2021 10:24:01 +0000 (11:24 +0100)] 
modules/renumber: remove useless code

Unspecified mask is already returned as full bitlen by
kr_straddr_subnet().

3 years agoMerge !1230: lua: ensure answer_clear() keeps original EDNS obs-knot-resolver-es11k1/deployments/1935
Vladimír Čunát [Tue, 23 Nov 2021 18:52:42 +0000 (19:52 +0100)] 
Merge !1230: lua: ensure answer_clear() keeps original EDNS

Fixes #657

3 years agolua: ensure answer_clear() keeps original EDNS
Tomas Krizek [Fri, 19 Nov 2021 16:25:33 +0000 (17:25 +0100)] 
lua: ensure answer_clear() keeps original EDNS

Answers to EDNS requests from certain lua policies that use the
answer_clear() function would lack OPT RR and thus violate the MUST
condition in RFC6891.6.1.1.

3 years agoMerge branch 'nitpicks' into 'master'
Tomas Krizek [Tue, 23 Nov 2021 14:42:30 +0000 (15:42 +0100)] 
Merge branch 'nitpicks' into 'master'

nitpicks

See merge request knot/knot-resolver!1224

3 years agodoc: edns_keepalive
Tomas Krizek [Thu, 18 Nov 2021 20:20:35 +0000 (21:20 +0100)] 
doc: edns_keepalive

3 years agoci: use allow_failure for known issues
Tomas Krizek [Wed, 10 Nov 2021 14:57:42 +0000 (15:57 +0100)] 
ci: use allow_failure for known issues

3 years agotests/config: increate http timeouts to 16s
Tomas Krizek [Wed, 10 Nov 2021 13:12:09 +0000 (14:12 +0100)] 
tests/config: increate http timeouts to 16s

On some platforms in CI, even 8s doesn't seem sufficient enough to
guarantee stability. Hopefully this improves the situation.

3 years agoMerge branch 'gitignore-cache' into 'master' obs-knot-resolver-es11k1/deployments/1934
Tomas Krizek [Mon, 22 Nov 2021 10:02:33 +0000 (11:02 +0100)] 
Merge branch 'gitignore-cache' into 'master'

.gitignore: add '.cache'

See merge request knot/knot-resolver!1231

3 years ago.gitignore: add '.cache'
Oto Šťáva [Mon, 22 Nov 2021 10:02:33 +0000 (11:02 +0100)] 
.gitignore: add '.cache'

3 years agoMerge branch 'policy-domain' into 'master' obs-knot-resolver-es11k1/deployments/1931 obs-knot-resolver-es11k1/deployments/1932 obs-knot-resolver-es11k1/deployments/1933
Tomas Krizek [Fri, 19 Nov 2021 16:37:22 +0000 (17:37 +0100)] 
Merge branch 'policy-domain' into 'master'

modules/policy: add 'domain' filter for equality matching

See merge request knot/knot-resolver!1228

3 years agomodules/policy: deduplicate doc
Oto Šťáva [Fri, 19 Nov 2021 13:44:44 +0000 (14:44 +0100)] 
modules/policy: deduplicate doc

3 years agomodules/policy docs: tweak an example
Vladimír Čunát [Fri, 19 Nov 2021 13:03:50 +0000 (14:03 +0100)] 
modules/policy docs: tweak an example

Overriding records makes more sense on a particular name
than in a whole sub-tree.

3 years agomodules/policy: fix doc
Oto Šťáva [Fri, 19 Nov 2021 12:57:43 +0000 (13:57 +0100)] 
modules/policy: fix doc

3 years agomodules/policy: fix unused variable (luacheck)
Oto Šťáva [Fri, 19 Nov 2021 12:27:16 +0000 (13:27 +0100)] 
modules/policy: fix unused variable (luacheck)

3 years agomodules/policy: add integration test for 'domains' function
Oto Šťáva [Fri, 19 Nov 2021 12:18:25 +0000 (13:18 +0100)] 
modules/policy: add integration test for 'domains' function

3 years agomodules/policy: use a list of domains, instead of a single domain
Oto Šťáva [Fri, 19 Nov 2021 11:07:36 +0000 (12:07 +0100)] 
modules/policy: use a list of domains, instead of a single domain

3 years agomodules/policy: add 'domain' filter for equality matching
Oto Šťáva [Fri, 19 Nov 2021 09:11:18 +0000 (10:11 +0100)] 
modules/policy: add 'domain' filter for equality matching

3 years agoMerge branch 'spelling' into 'master'
Tomas Krizek [Fri, 19 Nov 2021 14:52:50 +0000 (15:52 +0100)] 
Merge branch 'spelling' into 'master'

spelling & edns_keepalive fix

See merge request knot/knot-resolver!1229

3 years ago.gitlab-ci: omit unused variable
Tomas Krizek [Fri, 19 Nov 2021 13:50:29 +0000 (14:50 +0100)] 
.gitlab-ci: omit unused variable

3 years agoedns_keepalive: fix loading of module
Josh Soref [Wed, 17 Nov 2021 07:47:11 +0000 (02:47 -0500)] 
edns_keepalive: fix loading of module

Due to the typo in the EDNS keepalive init funcion name, the module
wouldn't be properly initialized after loading and wouldn't be
functional.

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
3 years agospelling
Josh Soref [Wed, 17 Nov 2021 07:06:13 +0000 (02:06 -0500)] 
spelling

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
3 years agoMerge branch 'nitpicks' into 'master' obs-knot-resolver-es11k1/deployments/1920 obs-knot-resolver-es11k1/deployments/1921 obs-knot-resolver-es11k1/deployments/1922 obs-knot-resolver-es11k1/deployments/1923 obs-knot-resolver-es11k1/deployments/1924 obs-knot-resolver-es11k1/deployments/1925 obs-knot-resolver-es11k1/deployments/1926 obs-knot-resolver-es11k1/deployments/1927 obs-knot-resolver-es11k1/deployments/1928 obs-knot-resolver-es11k1/deployments/1929 obs-knot-resolver-es11k1/deployments/1930
Tomas Krizek [Mon, 8 Nov 2021 17:44:57 +0000 (18:44 +0100)] 
Merge branch 'nitpicks' into 'master'

nitpicks

See merge request knot/knot-resolver!1220

3 years agoci/distrotests: add fedora35, ubuntu2110 obs-knot-resolver-bs4hbr/deployments/1919
Tomas Krizek [Mon, 8 Nov 2021 15:07:26 +0000 (16:07 +0100)] 
ci/distrotests: add fedora35, ubuntu2110

3 years agoci: allow extra sync time for macos GH action
Tomas Krizek [Wed, 3 Nov 2021 15:08:55 +0000 (16:08 +0100)] 
ci: allow extra sync time for macos GH action

3 years agodoc logging: add a simple example
Vladimír Čunát [Tue, 2 Nov 2021 12:30:10 +0000 (13:30 +0100)] 
doc logging: add a simple example

The brackets notation and string quotation are not obvious to everyone.

3 years agoci build:macOS: more delay
Vladimír Čunát [Tue, 2 Nov 2021 12:17:23 +0000 (13:17 +0100)] 
ci build:macOS: more delay

Today it was often failing due to starting too soon.
Nothing depends on this job, so it's cheap to start its check later.

3 years agodoc: remove outdated note about survery
Tomas Krizek [Mon, 1 Nov 2021 12:15:08 +0000 (13:15 +0100)] 
doc: remove outdated note about survery

3 years agolib/resolve: clarify why debug level is checked
Tomas Krizek [Fri, 29 Oct 2021 10:45:27 +0000 (12:45 +0200)] 
lib/resolve: clarify why debug level is checked

3 years agomodules/nsid: improve sanity check
Tomas Krizek [Tue, 26 Oct 2021 10:17:34 +0000 (12:17 +0200)] 
modules/nsid: improve sanity check

3 years agoMerge branch 'lua-log-fix' into 'master' obs-knot-resolver-es11k1/deployments/1915 obs-knot-resolver-es11k1/deployments/1916 obs-knot-resolver-es11k1/deployments/1917 obs-knot-resolver-es11k1/deployments/1918
Tomas Krizek [Thu, 4 Nov 2021 10:03:42 +0000 (11:03 +0100)] 
Merge branch 'lua-log-fix' into 'master'

lua log(): make it work again

See merge request knot/knot-resolver!1223

3 years agolua log(): make it work again
Vladimír Čunát [Wed, 3 Nov 2021 16:44:36 +0000 (17:44 +0100)] 
lua log(): make it work again

sandbox.lua:72: attempt to call global 'log_notice' (a nil value)
Broken by commit 39dd89db (MR !1208)

3 years agoMerge branch 'zonemd-misc' into 'master' obs-knot-resolver-es11k1/deployments/1914
Tomas Krizek [Wed, 3 Nov 2021 14:45:41 +0000 (15:45 +0100)] 
Merge branch 'zonemd-misc' into 'master'

various refactoring

See merge request knot/knot-resolver!1221

3 years agolib/cache: improve internal docs
Vladimír Čunát [Tue, 2 Nov 2021 16:06:50 +0000 (17:06 +0100)] 
lib/cache: improve internal docs

3 years agolib/cache kr_cache_insert_rr(): add another parameter
Vladimír Čunát [Mon, 4 Oct 2021 07:47:59 +0000 (09:47 +0200)] 
lib/cache kr_cache_insert_rr(): add another parameter

NSEC* params were not being stashed by this function.  For prefilling
it's useful, but doing it on *every* NSEC* record would be quite a waste,
so we introduce a parameter to select this.

Implementation: there were good reasons not to implement this until
needed - it wasn't straightforward at all.

3 years agocontrib/mempattern: add mm_ctx_delete()
Vladimír Čunát [Mon, 4 Oct 2021 07:53:34 +0000 (09:53 +0200)] 
contrib/mempattern: add mm_ctx_delete()

It was a bit weird that the API had mempool creation but no deletion.

3 years agolib/utils: factor out kr_timer_* from GC code
Vladimír Čunát [Mon, 27 Sep 2021 08:35:04 +0000 (10:35 +0200)] 
lib/utils: factor out kr_timer_* from GC code

Also be more careful about rounding, overflows and assertions in there.
The implicit internal timer was unused and didn't seem worth keeping.

3 years agolib/util: remove unused function
Vladimír Čunát [Mon, 27 Sep 2021 07:36:30 +0000 (09:36 +0200)] 
lib/util: remove unused function

The POSIX APIs using `struct timeval` are deprecated anyway
in favor of clock_gettime() + `struct timespec`.

The function didn't seem well designed anyway, as `long` is just
32-bit on usual 32-bit platforms, which certainly isn't safe.
(roughly one month, on a quick glance)

3 years agoMerge branch 'ipvx_priming_fix' into 'master'
Tomas Krizek [Wed, 3 Nov 2021 14:40:50 +0000 (15:40 +0100)] 
Merge branch 'ipvx_priming_fix' into 'master'

modules/priming: don't query A/AAAA when IPv4/IPv6 is disabled

See merge request knot/knot-resolver!1222

3 years agomodules/priming: don't query A/AAAA when IPv4/IPv6 is disabled
Štěpán Balážik [Tue, 2 Nov 2021 16:22:45 +0000 (17:22 +0100)] 
modules/priming: don't query A/AAAA when IPv4/IPv6 is disabled

Previously we primed for A/AAAA addresses of root servers even when
the respective IP version was disabled from configuration.

3 years agoMerge branch 'zonemd-validator' into 'master'
Tomas Krizek [Wed, 3 Nov 2021 14:39:37 +0000 (15:39 +0100)] 
Merge branch 'zonemd-validator' into 'master'

lib/dnssec: refactor some parts

See merge request knot/knot-resolver!1213

3 years agolib/dnssec.h: improve API docs
Vladimír Čunát [Tue, 2 Nov 2021 09:19:02 +0000 (10:19 +0100)] 
lib/dnssec.h: improve API docs

3 years agolib/dnssec/signature nit: improve API docs
Vladimír Čunát [Mon, 4 Oct 2021 10:50:31 +0000 (12:50 +0200)] 
lib/dnssec/signature nit: improve API docs

3 years agolib/dnssec: add a simple validator API
Vladimír Čunát [Fri, 24 Sep 2021 10:00:15 +0000 (12:00 +0200)] 
lib/dnssec: add a simple validator API

3 years agolib/dnssec: make kr_dnskeys_trusted() cleaner
Vladimír Čunát [Tue, 14 Sep 2021 15:46:19 +0000 (17:46 +0200)] 
lib/dnssec: make kr_dnskeys_trusted() cleaner

This way it will be easier to re-use (and more efficient).
I really disliked those searches for RRSIGs embedded deep inside.

Uh, I tried to keep the new function as clean as possible,
moving hacks to outside.

3 years agolib/dnssec: add a simpler version of kr_rrset_validate_with_key()
Vladimír Čunát [Tue, 14 Sep 2021 15:35:24 +0000 (17:35 +0200)] 
lib/dnssec: add a simpler version of kr_rrset_validate_with_key()

3 years agolib/dnssec: factor out trim_ttl()
Vladimír Čunát [Fri, 3 Sep 2021 08:40:15 +0000 (10:40 +0200)] 
lib/dnssec: factor out trim_ttl()

That `pkt` check was useless.

3 years agolib/dnssec refactor: struct dseckey -> struct dnssec_key
Vladimír Čunát [Sat, 28 Aug 2021 09:36:03 +0000 (11:36 +0200)] 
lib/dnssec refactor: struct dseckey -> struct dnssec_key

I can't see motivation to add another abstraction layer here,
and it caused ugly type juggling.  Let's use the libdnssec's type.

3 years agolib/dnssec.c: refactor validate_rrsig_rr()
Vladimír Čunát [Sat, 28 Aug 2021 09:11:35 +0000 (11:11 +0200)] 
lib/dnssec.c: refactor validate_rrsig_rr()

3 years agoMerge !1218: doc: lua-basexx dependency, clarify unit tests
Vladimír Čunát [Wed, 3 Nov 2021 10:10:50 +0000 (11:10 +0100)] 
Merge !1218: doc: lua-basexx dependency, clarify unit tests

3 years agodoc: Add missing lua-basexx dependency, clarify default unit tests
Oto Šťáva [Mon, 25 Oct 2021 13:53:57 +0000 (15:53 +0200)] 
doc: Add missing lua-basexx dependency, clarify default unit tests

3 years agoMerge branch 'docker-debug-mode-log' into 'master' obs-knot-resolver-es11k1/deployments/1906 obs-knot-resolver-es11k1/deployments/1907 obs-knot-resolver-es11k1/deployments/1908 obs-knot-resolver-es11k1/deployments/1909 obs-knot-resolver-es11k1/deployments/1910 obs-knot-resolver-es11k1/deployments/1911 obs-knot-resolver-es11k1/deployments/1912 obs-knot-resolver-es11k1/deployments/1913
Tomas Krizek [Wed, 27 Oct 2021 13:55:59 +0000 (15:55 +0200)] 
Merge branch 'docker-debug-mode-log' into 'master'

Dockerfile: polish request tracing in debug_mode

See merge request knot/knot-resolver!1217

3 years agoDockerfile: polish request tracing in debug_mode
Tomas Krizek [Fri, 22 Oct 2021 13:26:42 +0000 (15:26 +0200)] 
Dockerfile: polish request tracing in debug_mode

Since v5.4.0, using both debug level log and request tracing duplicates
lines in the log output. This makes the log more readable while
hopefully keeping all the relevant information there.

3 years agoMerge branch 'ci-knot-3.1' into 'master'
Tomas Krizek [Wed, 27 Oct 2021 12:27:10 +0000 (14:27 +0200)] 
Merge branch 'ci-knot-3.1' into 'master'

ci: use knot 3.1

See merge request knot/knot-resolver!1219

3 years agoci: fix pylint issues
Tomas Krizek [Wed, 27 Oct 2021 11:29:11 +0000 (13:29 +0200)] 
ci: fix pylint issues

3 years agoci: use Knot 3.1
Tomas Krizek [Tue, 26 Oct 2021 14:02:25 +0000 (16:02 +0200)] 
ci: use Knot 3.1

3 years agoMerge branch 'policy-rpz-origin' into 'master' obs-knot-resolver-es11k1/deployments/1900 obs-knot-resolver-es11k1/deployments/1901 obs-knot-resolver-es11k1/deployments/1902 obs-knot-resolver-es11k1/deployments/1903 obs-knot-resolver-es11k1/deployments/1904 obs-knot-resolver-es11k1/deployments/1905
Tomas Krizek [Thu, 21 Oct 2021 11:34:00 +0000 (13:34 +0200)] 
Merge branch 'policy-rpz-origin' into 'master'

policy.rpz: fix origin detection in files without $ORIGIN

See merge request knot/knot-resolver!1215

3 years agopolicy.rpz: nitpick - format zone file
Tomas Krizek [Wed, 20 Oct 2021 14:50:22 +0000 (16:50 +0200)] 
policy.rpz: nitpick - format zone file

3 years agopolicy.rpz: test coverage for SOA-defined origin
Tomas Krizek [Wed, 20 Oct 2021 14:49:48 +0000 (16:49 +0200)] 
policy.rpz: test coverage for SOA-defined origin

3 years agopolicy.rpz: increase log severity
Vladimír Čunát [Mon, 18 Oct 2021 12:29:13 +0000 (14:29 +0200)] 
policy.rpz: increase log severity

Issues affecting functionality of the RPZ should NOT be hidden
by default.

3 years agopolicy.rpz: fix origin detection in files without $ORIGIN
Vladimír Čunát [Mon, 18 Oct 2021 11:31:58 +0000 (13:31 +0200)] 
policy.rpz: fix origin detection in files without $ORIGIN

3 years agoMerge branch 'systemd_nss-lookup' into 'master' obs-knot-resolver-es11k1/deployments/1899
Tomas Krizek [Wed, 20 Oct 2021 12:42:56 +0000 (14:42 +0200)] 
Merge branch 'systemd_nss-lookup' into 'master'

systemd: add interaction with nss-lookup.target

See merge request knot/knot-resolver!1216

3 years agosystemd: add interaction with nss-lookup.target obs-knot-resolver-bs4hbr/deployments/1898
Vladimír Čunát [Wed, 20 Oct 2021 09:10:47 +0000 (11:10 +0200)] 
systemd: add interaction with nss-lookup.target

The point is to allow other services wait for DNS availability.
Of course, kresd may not be the DNS provider for this machine,
but it seems reasonable to still do this by default.

3 years agoMerge branch 'release-5-4-2' into 'master' obs-knot-resolver-8xyvhu/deployments/1890 obs-knot-resolver-es11k1/deployments/1891 obs-knot-resolver-es11k1/deployments/1892 obs-knot-resolver-es11k1/deployments/1893 obs-knot-resolver-es11k1/deployments/1894 obs-knot-resolver-es11k1/deployments/1896 obs-knot-resolver-es11k1/deployments/1897 obs-knot-resolver-kv62s6/deployments/1889 v5.4.2
Tomas Krizek [Wed, 13 Oct 2021 11:13:09 +0000 (13:13 +0200)] 
Merge branch 'release-5-4-2' into 'master'

release 5.4.2

See merge request knot/knot-resolver!1212

3 years agorelease 5.4.2
Tomas Krizek [Wed, 13 Oct 2021 10:04:40 +0000 (12:04 +0200)] 
release 5.4.2

3 years agoscripts: remove ljezek from PGP keyblock
Tomas Krizek [Wed, 13 Oct 2021 10:04:14 +0000 (12:04 +0200)] 
scripts: remove ljezek from PGP keyblock

3 years agoMerge branch 'nitpicks' into 'master'
Tomas Krizek [Wed, 13 Oct 2021 10:00:35 +0000 (12:00 +0200)] 
Merge branch 'nitpicks' into 'master'

nitpicks

See merge request knot/knot-resolver!1206

3 years agodaemon/worker: work around a rare crash obs-knot-resolver-bs4hbr/deployments/1887
Vladimír Čunát [Tue, 12 Oct 2021 07:52:16 +0000 (09:52 +0200)] 
daemon/worker: work around a rare crash

So far we have no idea how it can happen, but in this (rare) case
it seems fine to keep the process running.

3 years agodistro/test: turn off OBS packaging tests for CentOS7
Tomas Krizek [Mon, 11 Oct 2021 09:45:45 +0000 (11:45 +0200)] 
distro/test: turn off OBS packaging tests for CentOS7

Builds are still checked by the other pkftest suite. However, OBS
mirrors for CentOS 7 are just problematic. We've already tried to
contact them once, they fixed the issue but mentioned it will probably
come back. No point in wasting any more time with this test then.

3 years agoetc/config: fix typo in privacy example
Tomas Krizek [Mon, 11 Oct 2021 08:45:39 +0000 (10:45 +0200)] 
etc/config: fix typo in privacy example

3 years agodoc: update install instructions
Tomas Krizek [Wed, 6 Oct 2021 13:32:12 +0000 (15:32 +0200)] 
doc: update install instructions

3 years agodistro/tests: update to leap 15.3
Tomas Krizek [Thu, 26 Aug 2021 15:26:46 +0000 (17:26 +0200)] 
distro/tests: update to leap 15.3

3 years agoNEWS 5.3.2: add CVE-2021-40083 reference
Vladimír Čunát [Wed, 25 Aug 2021 11:20:17 +0000 (13:20 +0200)] 
NEWS 5.3.2: add CVE-2021-40083 reference

3 years agoCI: improve README.md
Vladimír Čunát [Thu, 12 Aug 2021 13:47:08 +0000 (15:47 +0200)] 
CI: improve README.md

Our "debian-buster" CI image was clearly not a buster
(based on versions in logs).  I suspect this change can help.

3 years agotrie_del: use KNOT_EOK instead of kr_ok()
Tomas Krizek [Thu, 19 Aug 2021 14:59:05 +0000 (16:59 +0200)] 
trie_del: use KNOT_EOK instead of kr_ok()

3 years agoMerge branch 'knot-headers' into 'master' obs-knot-resolver-es11k1/deployments/1886 obs-knot-resolver-es11k1/deployments/1888
Tomas Krizek [Mon, 11 Oct 2021 11:55:06 +0000 (13:55 +0200)] 
Merge branch 'knot-headers' into 'master'

build: fix when knot-dns headers are on non-standard location

See merge request knot/knot-resolver!1210

3 years agodistro/tests: fix leap15 test
Tomas Krizek [Mon, 11 Oct 2021 08:57:47 +0000 (10:57 +0200)] 
distro/tests: fix leap15 test

knot-utils package is needed for kdig. However, if downstream package is
used, that tool is part of knot pkg instead - thus the missing package
would be non-critical. It is still needed if upstream packages are used.

3 years agobuild: fix when knot-dns headers are on non-standard location
Vladimír Čunát [Thu, 7 Oct 2021 11:58:01 +0000 (13:58 +0200)] 
build: fix when knot-dns headers are on non-standard location

3 years agoMerge branch 'detect_time_skew-nits' into 'master' obs-knot-resolver-es11k1/deployments/1882 obs-knot-resolver-es11k1/deployments/1883 obs-knot-resolver-es11k1/deployments/1884
Tomas Krizek [Fri, 8 Oct 2021 09:27:13 +0000 (11:27 +0200)] 
Merge branch 'detect_time_skew-nits' into 'master'

modules/detect_time_skew: minor fixes

See merge request knot/knot-resolver!1211

3 years agomodules/detect_time_skew: avoid cached `NS .`
Vladimír Čunát [Fri, 8 Oct 2021 07:40:26 +0000 (09:40 +0200)] 
modules/detect_time_skew: avoid cached `NS .`

Cache is persistent (in principle) and it might not have accurate data
for whatever reason.  Let's not bring caching complications into this.
It's cheap: just a single query to root server(s) on resolver start.

3 years agomodules/detect_time_skew: fix wording of the message
Vladimír Čunát [Fri, 8 Oct 2021 07:36:28 +0000 (09:36 +0200)] 
modules/detect_time_skew: fix wording of the message

Local time appears in future == the signatures appear not valid
*anymore*, and vice versa.

3 years agoMerge !1207: lib/selection: improve the NO6 behavior obs-knot-resolver-es11k1/deployments/1880
Vladimír Čunát [Thu, 7 Oct 2021 11:55:20 +0000 (13:55 +0200)] 
Merge !1207: lib/selection: improve the NO6 behavior

3 years agolib/selection: improve the NO6 behavior
Vladimír Čunát [Fri, 3 Sep 2021 16:41:11 +0000 (18:41 +0200)] 
lib/selection: improve the NO6 behavior

With broken IPv6 and no knowledge of IP addresses, we were quite often
chosing to resolve a NS's AAAA and then using it... which wasn't good.
Let's give preference to A here as well.

3 years agoMerge branch 'distrotest-centos-ca-certs' into 'master' obs-knot-resolver-es11k1/deployments/1877 obs-knot-resolver-es11k1/deployments/1878 obs-knot-resolver-es11k1/deployments/1879
Tomas Krizek [Mon, 4 Oct 2021 12:25:16 +0000 (14:25 +0200)] 
Merge branch 'distrotest-centos-ca-certs' into 'master'

distro/test: update CA certificates for CentOS

See merge request knot/knot-resolver!1209

3 years agodistro/test: update CA certificates for CentOS obs-knot-resolver-bs4hbr/deployments/1876
Tomas Krizek [Mon, 4 Oct 2021 11:40:05 +0000 (13:40 +0200)] 
distro/test: update CA certificates for CentOS

On CentOS 7, the base image has an outdated LetsEncrypt certificate.

3 years agoMerge !1208: lua: use notice level for log() obs-knot-resolver-es11k1/deployments/1862 obs-knot-resolver-es11k1/deployments/1863 obs-knot-resolver-es11k1/deployments/1864 obs-knot-resolver-es11k1/deployments/1865 obs-knot-resolver-es11k1/deployments/1866 obs-knot-resolver-es11k1/deployments/1867 obs-knot-resolver-es11k1/deployments/1868 obs-knot-resolver-es11k1/deployments/1869 obs-knot-resolver-es11k1/deployments/1870 obs-knot-resolver-es11k1/deployments/1871 obs-knot-resolver-es11k1/deployments/1873 obs-knot-resolver-es11k1/deployments/1874 obs-knot-resolver-es11k1/deployments/1875
Vladimír Čunát [Mon, 20 Sep 2021 08:37:32 +0000 (10:37 +0200)] 
Merge !1208: lua: use notice level for log()

3 years agolib/log: check the *last* log group number
Tomas Krizek [Wed, 15 Sep 2021 14:48:42 +0000 (16:48 +0200)] 
lib/log: check the *last* log group number

3 years agolua: use notice level for log()
Tomas Krizek [Wed, 15 Sep 2021 14:43:53 +0000 (16:43 +0200)] 
lua: use notice level for log()

By default, notice level is set. Thus, if users want to use log() in the
same way as pre-5.4, they'd have to increase the log level. This bumps
the log level of log() function to keep the same behavior.

3 years agoMerge !1205: distro/tests: add debian11 obs-knot-resolver-es11k1/deployments/1841 obs-knot-resolver-es11k1/deployments/1842 obs-knot-resolver-es11k1/deployments/1843 obs-knot-resolver-es11k1/deployments/1844 obs-knot-resolver-es11k1/deployments/1845 obs-knot-resolver-es11k1/deployments/1846 obs-knot-resolver-es11k1/deployments/1847 obs-knot-resolver-es11k1/deployments/1848 obs-knot-resolver-es11k1/deployments/1849 obs-knot-resolver-es11k1/deployments/1850 obs-knot-resolver-es11k1/deployments/1851 obs-knot-resolver-es11k1/deployments/1852 obs-knot-resolver-es11k1/deployments/1853 obs-knot-resolver-es11k1/deployments/1854 obs-knot-resolver-es11k1/deployments/1855 obs-knot-resolver-es11k1/deployments/1856 obs-knot-resolver-es11k1/deployments/1857 obs-knot-resolver-es11k1/deployments/1858 obs-knot-resolver-es11k1/deployments/1859 obs-knot-resolver-es11k1/deployments/1860 obs-knot-resolver-es11k1/deployments/1861
Vladimír Čunát [Mon, 30 Aug 2021 16:03:35 +0000 (18:03 +0200)] 
Merge !1205: distro/tests: add debian11

3 years agoci: fix lint:pendantic
Tomas Krizek [Mon, 30 Aug 2021 13:00:12 +0000 (15:00 +0200)] 
ci: fix lint:pendantic

3 years agoscripts: fix scanbuild on debian 11
Tomas Krizek [Mon, 30 Aug 2021 12:50:26 +0000 (14:50 +0200)] 
scripts: fix scanbuild on debian 11

3 years agotests/pytests: configure pylint to ignore consider-using-with
Tomas Krizek [Mon, 30 Aug 2021 13:00:44 +0000 (15:00 +0200)] 
tests/pytests: configure pylint to ignore consider-using-with

3 years agotests/pytests: remove dead code
Tomas Krizek [Mon, 30 Aug 2021 11:05:57 +0000 (13:05 +0200)] 
tests/pytests: remove dead code