]>
git.ipfire.org Git - thirdparty/knot-resolver.git/log
Tomas Krizek [Wed, 27 Oct 2021 11:36:33 +0000 (13:36 +0200)]
libknot: bump dependency version to 3.0.2
Version 2.9 isn't supported anymore anyway, but 3.0.2 is needed for
extended error constants.
Tomas Krizek [Tue, 23 Nov 2021 16:46:38 +0000 (17:46 +0100)]
policy: add extended errors
Tomas Krizek [Mon, 22 Nov 2021 16:55:59 +0000 (17:55 +0100)]
modules/dns64: EDE - mark as forged
Tomas Krizek [Mon, 22 Nov 2021 16:53:32 +0000 (17:53 +0100)]
lua: extended_error const table
Tomas Krizek [Mon, 22 Nov 2021 16:52:19 +0000 (17:52 +0100)]
kluautil: kr_string2c function
Tomas Krizek [Mon, 15 Nov 2021 16:42:58 +0000 (17:42 +0100)]
ede: handle not authoritative
Tomas Krizek [Mon, 15 Nov 2021 16:35:28 +0000 (17:35 +0100)]
ede: handle stale answers
Tomas Krizek [Thu, 11 Nov 2021 14:12:05 +0000 (15:12 +0100)]
ede: add KNOT_EDNS_EDE_NREACH_AUTH
Tomas Krizek [Tue, 9 Nov 2021 15:06:25 +0000 (16:06 +0100)]
logging: remove QVERBOSE in favor of kr_log_q
Tomas Krizek [Tue, 9 Nov 2021 14:10:46 +0000 (15:10 +0100)]
modules/extended_error: package module
Tomas Krizek [Thu, 4 Nov 2021 11:05:31 +0000 (12:05 +0100)]
validate: additional EDE DNSSEC errors
Tomas Krizek [Mon, 1 Nov 2021 14:39:04 +0000 (15:39 +0100)]
validate: refactor - remove check for impossible return values
kr_dnskeys_trusted() only returns EINVAL, ENOENT or EOK.
Tomas Krizek [Fri, 29 Oct 2021 14:34:33 +0000 (16:34 +0200)]
validate: add extended DNS errors
Tomas Krizek [Wed, 27 Oct 2021 14:32:18 +0000 (16:32 +0200)]
modules/extended_error: OPT section modification
Tomas Krizek [Wed, 27 Oct 2021 14:11:24 +0000 (16:11 +0200)]
lib/log: add LOG_GRP_EDE
Tomas Krizek [Tue, 26 Oct 2021 12:43:12 +0000 (14:43 +0200)]
lib/resolve: kr_extended_error_t and related func
Vladimír Čunát [Tue, 21 Dec 2021 09:08:53 +0000 (10:08 +0100)]
Merge !1242: ci nix: avoid the failure
Vladimír Čunát [Mon, 20 Dec 2021 11:48:04 +0000 (12:48 +0100)]
ci nix: tweak details around using "unstable" nix CLI
We don't need this on the versions before nix 2.4,
but let's switch now already.
Vladimír Čunát [Thu, 16 Dec 2021 11:24:22 +0000 (12:24 +0100)]
ci nix: temporarily(?) avoid issues
Vladimír Čunát [Tue, 21 Dec 2021 07:42:17 +0000 (08:42 +0100)]
Merge !1240: lib/utils: rename union inaddr to union kr_sockaddr
Oto Šťáva [Mon, 20 Dec 2021 11:28:40 +0000 (12:28 +0100)]
lib/utils: rename union inaddr to union kr_sockaddr
Tomas Krizek [Thu, 9 Dec 2021 11:48:05 +0000 (12:48 +0100)]
Merge branch 'fix-aws-console' into 'master'
iterate: fix bad zone_cut update in a rare case
See merge request knot/knot-resolver!1237
Vladimír Čunát [Wed, 8 Dec 2021 13:42:50 +0000 (14:42 +0100)]
iterate nit: don't log a space at the end of a line
Vladimír Čunát [Wed, 8 Dec 2021 13:30:18 +0000 (14:30 +0100)]
iterate: fix bad zone_cut update in a rare case
https://forum.turris.cz/t/kresd-name-unresolution/16275
Example problematic query during QNAME minimization:
```
[resolv][43578.24] => id: '08532' querying: 'ns-921.amazon.com.'@'34.196.62.143#00053' zone cut: 'aws.amazon.com.' qname: 'coNsOlE.aWs.AmAzON.Com.' qtype: 'NS' proto: 'udp'
[iterat][43578.24] <= answer received:
;; ->>HEADER<<- opcode: QUERY; status: NXDOMAIN; id: 8532
;; Flags: qr aa QUERY: 1; ANSWER: 4; AUTHORITY: 1; ADDITIONAL: 0
;; QUESTION SECTION
console.aws.amazon.com. NS
;; ANSWER SECTION
console.aws.amazon.com. 600 NS ns-921.amazon.com.
console.aws.amazon.com. 60 CNAME us-east-1.console.aws.amazon.com.
us-east-1.console.aws.amazon.com. 600 NS ns-921.amazon.com.
us-east-1.console.aws.amazon.com. 60 CNAME gr.console-geo.us-east-1.amazonaws.com.
;; AUTHORITY SECTION
us-east-1.amazonaws.com. 60 SOA ns-921.amazon.com. root.amazon.com.
1638962488 3600 900
7776000 60
[iterat][43578.24] <= rcode: NXDOMAIN
```
Here the zone_cut would get updated to us-east-1.console.aws.amazon.com.
breaking further resolution towards eu-west-3.console.aws.amazon.com.
Tomas Krizek [Wed, 1 Dec 2021 11:52:38 +0000 (12:52 +0100)]
Merge branch 'release-5-4-3' into 'master'
release 5.4.3
See merge request knot/knot-resolver!1236
Tomas Krizek [Fri, 26 Nov 2021 10:48:58 +0000 (11:48 +0100)]
release 5.4.3
Tomas Krizek [Fri, 26 Nov 2021 10:48:45 +0000 (11:48 +0100)]
AUTHORS: update
Tomas Krizek [Tue, 30 Nov 2021 16:57:36 +0000 (17:57 +0100)]
Merge branch 'nitpicks' into 'master'
nitpicks
See merge request knot/knot-resolver!1235
Tomas Krizek [Mon, 22 Nov 2021 16:55:19 +0000 (17:55 +0100)]
config: properly document loading of hints module
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
Tomas Krizek [Thu, 25 Nov 2021 12:12:43 +0000 (13:12 +0100)]
doc: document kres.parse_rdata() near policy.ANSWER
Tomas Krizek [Thu, 25 Nov 2021 11:14:31 +0000 (12:14 +0100)]
config.basic: test coverage for parse_rdata()
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
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
Tomas Krizek [Wed, 24 Nov 2021 13:55:54 +0000 (14:55 +0100)]
renumber: graceful error on invalid subnet
Tomas Krizek [Tue, 23 Nov 2021 14:27:16 +0000 (15:27 +0100)]
policy: update REROUTE doc to reflect real configuration
Tomas Krizek [Tue, 23 Nov 2021 14:23:07 +0000 (15:23 +0100)]
renumber: warn when using unsupported network mask
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().
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
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.
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
Tomas Krizek [Thu, 18 Nov 2021 20:20:35 +0000 (21:20 +0100)]
doc: edns_keepalive
Tomas Krizek [Wed, 10 Nov 2021 14:57:42 +0000 (15:57 +0100)]
ci: use allow_failure for known issues
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.
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
Oto Šťáva [Mon, 22 Nov 2021 10:02:33 +0000 (11:02 +0100)]
.gitignore: add '.cache'
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
Oto Šťáva [Fri, 19 Nov 2021 13:44:44 +0000 (14:44 +0100)]
modules/policy: deduplicate doc
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.
Oto Šťáva [Fri, 19 Nov 2021 12:57:43 +0000 (13:57 +0100)]
modules/policy: fix doc
Oto Šťáva [Fri, 19 Nov 2021 12:27:16 +0000 (13:27 +0100)]
modules/policy: fix unused variable (luacheck)
Oto Šťáva [Fri, 19 Nov 2021 12:18:25 +0000 (13:18 +0100)]
modules/policy: add integration test for 'domains' function
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
Oto Šťáva [Fri, 19 Nov 2021 09:11:18 +0000 (10:11 +0100)]
modules/policy: add 'domain' filter for equality matching
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
Tomas Krizek [Fri, 19 Nov 2021 13:50:29 +0000 (14:50 +0100)]
.gitlab-ci: omit unused variable
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>
Josh Soref [Wed, 17 Nov 2021 07:06:13 +0000 (02:06 -0500)]
spelling
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
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
Tomas Krizek [Mon, 8 Nov 2021 15:07:26 +0000 (16:07 +0100)]
ci/distrotests: add fedora35, ubuntu2110
Tomas Krizek [Wed, 3 Nov 2021 15:08:55 +0000 (16:08 +0100)]
ci: allow extra sync time for macos GH action
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.
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.
Tomas Krizek [Mon, 1 Nov 2021 12:15:08 +0000 (13:15 +0100)]
doc: remove outdated note about survery
Tomas Krizek [Fri, 29 Oct 2021 10:45:27 +0000 (12:45 +0200)]
lib/resolve: clarify why debug level is checked
Tomas Krizek [Tue, 26 Oct 2021 10:17:34 +0000 (12:17 +0200)]
modules/nsid: improve sanity check
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
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)
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
Vladimír Čunát [Tue, 2 Nov 2021 16:06:50 +0000 (17:06 +0100)]
lib/cache: improve internal docs
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.
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.
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.
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)
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
Š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.
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
Vladimír Čunát [Tue, 2 Nov 2021 09:19:02 +0000 (10:19 +0100)]
lib/dnssec.h: 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
Vladimír Čunát [Fri, 24 Sep 2021 10:00:15 +0000 (12:00 +0200)]
lib/dnssec: add a simple validator API
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.
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()
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.
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.
Vladimír Čunát [Sat, 28 Aug 2021 09:11:35 +0000 (11:11 +0200)]
lib/dnssec.c: refactor validate_rrsig_rr()
Vladimír Čunát [Wed, 3 Nov 2021 10:10:50 +0000 (11:10 +0100)]
Merge !1218: doc: lua-basexx dependency, clarify 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
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
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.
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
Tomas Krizek [Wed, 27 Oct 2021 11:29:11 +0000 (13:29 +0200)]
ci: fix pylint issues
Tomas Krizek [Tue, 26 Oct 2021 14:02:25 +0000 (16:02 +0200)]
ci: use Knot 3.1
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
Tomas Krizek [Wed, 20 Oct 2021 14:50:22 +0000 (16:50 +0200)]
policy.rpz: nitpick - format zone file
Tomas Krizek [Wed, 20 Oct 2021 14:49:48 +0000 (16:49 +0200)]
policy.rpz: test coverage for SOA-defined origin
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.
Vladimír Čunát [Mon, 18 Oct 2021 11:31:58 +0000 (13:31 +0200)]
policy.rpz: fix origin detection in files without $ORIGIN
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
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.
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