]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
4 years agocache: don't change kr_layer_t::state to _DONE cache-done
Vladimír Čunát [Fri, 8 Jan 2021 13:47:18 +0000 (14:47 +0100)] 
cache: don't change kr_layer_t::state to _DONE

I suspect this might've caused real-life issues in some edge case,
making a cached CNAME not being followed.  But in any case,
cache is not a good place to set KR_STATE_DONE, as it only creates
a (pseudo-)packed for immediate CONSUME phase; it should be
iterator who sets it in that later phase when picking those records.

I added unnecessary simplifications to code, too (all those returns).

4 years agoMerge branch 'link-local-forward' into 'master' obs-knot-dns-deve-jq0xxt/deployments/1368 obs-knot-dns-deve-jq0xxt/deployments/1371 obs-knot-dns-deve-jq0xxt/deployments/1372 obs-knot-resolver-bs4hbr/deployments/1369 obs-knot-resolver-bs4hbr/deployments/1370 obs-knot-resolver-bs4hbr/deployments/1373
Štěpán Balážik [Fri, 8 Jan 2021 14:41:50 +0000 (15:41 +0100)] 
Merge branch 'link-local-forward' into 'master'

lib/selection: allow forwarding to link local address

See merge request knot/knot-resolver!1116

4 years agolib/selection: allow forwarding to link local address
Štěpán Balážik [Fri, 8 Jan 2021 14:41:50 +0000 (15:41 +0100)] 
lib/selection: allow forwarding to link local address

This is done by changing the type of address field in struct choice to
union inaddr and moving some conversion around.

4 years agoMerge branch 'doh2-memleak' into 'master' obs-knot-dns-deve-jq0xxt/deployments/1366 obs-knot-resolver-bs4hbr/deployments/1365
Tomas Krizek [Thu, 7 Jan 2021 14:02:38 +0000 (15:02 +0100)] 
Merge branch 'doh2-memleak' into 'master'

daemon/http: fix memleak

See merge request knot/knot-resolver!1117

4 years agodaemon/http: use memmove() for session buffer write
Tomas Krizek [Thu, 7 Jan 2021 12:36:49 +0000 (13:36 +0100)] 
daemon/http: use memmove() for session buffer write

Since session buffer contains both the raw http data and the resulting
decoded DNS packet, memmove() should be used instead of memcpy().

4 years agodaemon/http: ensure uri_path is freed for POST
Tomas Krizek [Thu, 7 Jan 2021 12:35:21 +0000 (13:35 +0100)] 
daemon/http: ensure uri_path is freed for POST

Since #636 was implemented, uri_path is also saved for POST requests and
thus needs to be freed.

4 years agodaemon/http: fix memleak
Tomas Krizek [Tue, 5 Jan 2021 12:08:35 +0000 (13:08 +0100)] 
daemon/http: fix memleak

The http_data structure is allocated in http_write_pkt() and the last
callback that uses it is on_pkt_write(), so it should be responsible for
freeing the memory.

This used to leak a small amount of memory on every DoH response.

4 years agoMerge !1119: ci: add sonarcloud build
Vladimír Čunát [Thu, 7 Jan 2021 10:38:31 +0000 (11:38 +0100)] 
Merge !1119: ci: add sonarcloud build

4 years agoci: add sonarcloud build 74391 74404
Tomas Krizek [Tue, 5 Jan 2021 15:43:37 +0000 (16:43 +0100)] 
ci: add sonarcloud build

4 years agoMerge branch 'tumbleweed_errors' into 'master' obs-knot-dns-deve-jq0xxt/deployments/1362 obs-knot-resolver-bs4hbr/deployments/1361
Tomas Krizek [Wed, 6 Jan 2021 14:25:22 +0000 (15:25 +0100)] 
Merge branch 'tumbleweed_errors' into 'master'

daemon/worker.c: fix warning from compilation without asserts

See merge request knot/knot-resolver!1120

4 years agodaemon/worker.c: fix warning from compilation without asserts
Štěpán Balážik [Wed, 6 Jan 2021 12:06:25 +0000 (13:06 +0100)] 
daemon/worker.c: fix warning from compilation without asserts

I kept the changes (especially the one in qr_task_on_send) as local as
possible while hopefully preserving the invariants other functions in
worker rely upon.

4 years agoMerge branch 'daf-clear' into 'master' obs-knot-dns-deve-jq0xxt/deployments/1356 obs-knot-resolver-bs4hbr/deployments/1357
Tomas Krizek [Tue, 5 Jan 2021 09:28:02 +0000 (10:28 +0100)] 
Merge branch 'daf-clear' into 'master'

daf: Add clear method

See merge request knot/knot-resolver!1114

4 years agodaf: Add clear method
Vladimír Čunát [Wed, 30 Dec 2020 10:25:16 +0000 (11:25 +0100)] 
daf: Add clear method

Make it easier to delete all rules specified in daf.

4 years agoMerge !1110: docker: add dnstap support obs-knot-dns-deve-jq0xxt/deployments/1352 obs-knot-resolver-bs4hbr/deployments/1353
Vladimír Čunát [Mon, 4 Jan 2021 12:57:57 +0000 (13:57 +0100)] 
Merge !1110: docker: add dnstap support

4 years agodocker: add dnstap support
Tomas Krizek [Fri, 11 Dec 2020 11:26:32 +0000 (12:26 +0100)] 
docker: add dnstap support

4 years agoMerge !1030: server selection rewrite obs-knot-dns-deve-jq0xxt/deployments/1344 obs-knot-dns-deve-jq0xxt/deployments/1347 obs-knot-dns-deve-jq0xxt/deployments/1348 obs-knot-dns-deve-jq0xxt/deployments/1350 obs-knot-resolver-bs4hbr/deployments/1345 obs-knot-resolver-bs4hbr/deployments/1346 obs-knot-resolver-bs4hbr/deployments/1349 obs-knot-resolver-bs4hbr/deployments/1351
Vladimír Čunát [Thu, 31 Dec 2020 16:01:38 +0000 (17:01 +0100)] 
Merge !1030: server selection rewrite

Closes #447

4 years agoadd NEWS entry
Vladimír Čunát [Thu, 31 Dec 2020 14:54:31 +0000 (15:54 +0100)] 
add NEWS entry

4 years agolib/selection: minor refactorings and comments
Vladimír Čunát [Tue, 22 Dec 2020 10:29:39 +0000 (11:29 +0100)] 
lib/selection: minor refactorings and comments

Small things I've noticed while reading it all.
- line breaks: I believe <90 is OK, as usually the attempts to reduce
  lengths impair readability
- avoid unnecessary casts; usually the type was visible
  on the same line anyway
- avoid `|` on booleans
- one block gets de-indented (often badly shown in diffs)
- no need for UNRECOVERABLE_ERRORS in a header (and a weird one, too)
- recoverability from failed assertions (in case they're turned off)

4 years agolib/selection: tweak computation of RTT estimates
Vladimír Čunát [Tue, 29 Dec 2020 14:51:50 +0000 (15:51 +0100)] 
lib/selection: tweak computation of RTT estimates

- fix switched \alpha and \beta from the RFC (no big deal, I think)
- use the same order as in the RFC (perhaps that caused the switch?)
- avoid floating-point arithmetics (it's simple with these formulas)
- simplify the the backoff formula (MINs instead of branches)

4 years agolib/selection: refactor usage of bytes_to_ip()
Vladimír Čunát [Tue, 29 Dec 2020 09:17:13 +0000 (10:17 +0100)] 
lib/selection: refactor usage of bytes_to_ip()

4 years agolib/selection: be more careful around rtt_state.dead_since
Vladimír Čunát [Tue, 29 Dec 2020 08:28:16 +0000 (09:28 +0100)] 
lib/selection: be more careful around rtt_state.dead_since

It's all because the timestamp that we're using isn't (guaranteed to be)
meaningful across reboots or different machines, whereas our cache even
persists by default.

4 years agolib/selection: tweak how cache is used
Vladimír Čunát [Mon, 28 Dec 2020 09:09:18 +0000 (10:09 +0100)] 
lib/selection: tweak how cache is used

- standardize cache key choice and ensure impossibility of collisions
- comment on interaction with GC; it would be better to give RTT
  priority over most of other records
- be more robust wrt. value in cache

4 years agoselection: server selection rewrite
Štěpán Balážik [Fri, 20 Mar 2020 18:43:11 +0000 (19:43 +0100)] 
selection: server selection rewrite

Design discussion: #447
Code discussion: !1030

4 years agotests: fix knot-resolver specific Deckard tests
Štěpán Balážik [Mon, 26 Oct 2020 10:41:43 +0000 (11:41 +0100)] 
tests: fix knot-resolver specific Deckard tests

4 years agodeckard: update for the new server selection
Štěpán Balážik [Thu, 17 Dec 2020 14:34:23 +0000 (15:34 +0100)] 
deckard: update for the new server selection

4 years agoiterate: accept parent-side records for nameservers 73870
Vladimír Čunát [Mon, 16 Nov 2020 13:28:49 +0000 (14:28 +0100)] 
iterate: accept parent-side records for nameservers

When resolving just NS names and addresses which won't go to answers,
our cache can satisfy them with just parent-side records.
Now we also make iterator consistent with that, and it will cut short
if a delegation satisfies what the kr_query wants.

There's a general risk that we will never get the child-side records,
and in practice the parent-side ones are sometimes "less accurate".
This change may increase this risk (to NS addresses in particular),
but we'd better consider addressing the risk later and systematically.
A suggestion is to refresh the records asynchronously:
https://tools.ietf.org/html/draft-ietf-dnsop-ns-revalidation

---
State before this commit lead to a weird behaviour where some IPv4-only
tests in Deckard (namely `iter_pcdiff.rpl`) were failing with IPv6
turned off.

This was due to the resolvers' internal preference towards AAAA records
for NS names.  With IPv6 networking on, NS name resolution was first
done for AAAA record and the glue (containing A record for the NS name
in question) from parent zone was put into cache.  As the AAAA
resolution failed (there is no AAAA for this NS name), A was queried
next and was satisfied from cache.

With IPv6 off, there is no query for the AAAA record, so no A record
from glue gets put in to the cache.  A record is resolved first, and
resolution ignores the glue in parent zone and continue to the child
zone which might be broken (intentionally in the case of that
`iter_pcdiff.rpl` test).

4 years agoMerge branch 'view-tweaks' into 'master' obs-knot-dns-deve-jq0xxt/deployments/1313 obs-knot-dns-deve-jq0xxt/deployments/1314 obs-knot-dns-deve-jq0xxt/deployments/1316 obs-knot-dns-deve-jq0xxt/deployments/1319 obs-knot-dns-deve-jq0xxt/deployments/1321 obs-knot-dns-deve-jq0xxt/deployments/1322 obs-knot-dns-deve-jq0xxt/deployments/1324 obs-knot-dns-deve-jq0xxt/deployments/1327 obs-knot-dns-deve-jq0xxt/deployments/1329 obs-knot-dns-deve-jq0xxt/deployments/1330 obs-knot-dns-deve-jq0xxt/deployments/1332 obs-knot-dns-deve-jq0xxt/deployments/1334 obs-knot-dns-deve-jq0xxt/deployments/1337 obs-knot-dns-deve-jq0xxt/deployments/1339 obs-knot-dns-deve-jq0xxt/deployments/1340 obs-knot-dns-deve-jq0xxt/deployments/1343 obs-knot-resolver-bs4hbr/deployments/1312 obs-knot-resolver-bs4hbr/deployments/1315 obs-knot-resolver-bs4hbr/deployments/1317 obs-knot-resolver-bs4hbr/deployments/1318 obs-knot-resolver-bs4hbr/deployments/1320 obs-knot-resolver-bs4hbr/deployments/1323 obs-knot-resolver-bs4hbr/deployments/1325 obs-knot-resolver-bs4hbr/deployments/1326 obs-knot-resolver-bs4hbr/deployments/1328 obs-knot-resolver-bs4hbr/deployments/1331 obs-knot-resolver-bs4hbr/deployments/1333 obs-knot-resolver-bs4hbr/deployments/1335 obs-knot-resolver-bs4hbr/deployments/1336 obs-knot-resolver-bs4hbr/deployments/1338 obs-knot-resolver-bs4hbr/deployments/1341 obs-knot-resolver-bs4hbr/deployments/1342
Tomas Krizek [Tue, 15 Dec 2020 10:41:17 +0000 (11:41 +0100)] 
Merge branch 'view-tweaks' into 'master'

view tweaks

See merge request knot/knot-resolver!1112

4 years agoview: documentation nitpicks
Vladimír Čunát [Mon, 14 Dec 2020 11:01:52 +0000 (12:01 +0100)] 
view: documentation nitpicks

4 years agoview.addr(): throw error on bad subnet
Vladimír Čunát [Mon, 14 Dec 2020 10:54:55 +0000 (11:54 +0100)] 
view.addr(): throw error on bad subnet

It's more consistent with what we do.  Now it will look like:
[system] error while loading config: .../lib/knot-resolver/kres_modules/view.lua:28: failed to parse subnet [::1]/128 (workdir '/foo/bar')

4 years agolib/utils kr_straddr_subnet(): fix some error detection
Vladimír Čunát [Mon, 14 Dec 2020 10:50:10 +0000 (11:50 +0100)] 
lib/utils kr_straddr_subnet(): fix some error detection

inet_pton() has slightly unexpected return values.
Only one function was wrong; I don't count the unused kr_straddr_join().

4 years agoMerge !1111: doc: policy - improve clarity of links obs-knot-dns-deve-jq0xxt/deployments/1304 obs-knot-dns-deve-jq0xxt/deployments/1306 obs-knot-dns-deve-jq0xxt/deployments/1308 obs-knot-dns-deve-jq0xxt/deployments/1309 obs-knot-resolver-es11k1/deployments/1303 obs-knot-resolver-es11k1/deployments/1305 obs-knot-resolver-es11k1/deployments/1307 obs-knot-resolver-es11k1/deployments/1310
Vladimír Čunát [Fri, 11 Dec 2020 15:30:23 +0000 (16:30 +0100)] 
Merge !1111: doc: policy - improve clarity of links

4 years agodoc: make links to policies more consistent
Tomas Krizek [Fri, 11 Dec 2020 15:05:30 +0000 (16:05 +0100)] 
doc: make links to policies more consistent

4 years agodoc: use :any: to refer to non-function policies
Tomas Krizek [Fri, 11 Dec 2020 14:42:22 +0000 (15:42 +0100)] 
doc: use :any: to refer to non-function policies

:func: directive automatically always adds brackets. This results in
links such as "policy.PASS()", which can be confusing, since the actual
policy is supposed to be "policy.PASS".

Using :any: results in links without the added brackets, which makes
non-function policies less confusing.

4 years agoMerge branch 'prometheus-labels' into 'master'
Tomas Krizek [Fri, 11 Dec 2020 10:57:01 +0000 (11:57 +0100)] 
Merge branch 'prometheus-labels' into 'master'

Transform Graphite tags into Prometheus labels

Closes #650

See merge request knot/knot-resolver!1109

4 years agoMove transform step to a separate function
Héctor Molinero Fernández [Thu, 10 Dec 2020 19:01:50 +0000 (20:01 +0100)] 
Move transform step to a separate function

4 years agoTransform Graphite tags into Prometheus labels
Héctor Molinero Fernández [Wed, 9 Dec 2020 21:15:02 +0000 (22:15 +0100)] 
Transform Graphite tags into Prometheus labels

4 years agoMerge branch 'release-5-2-1' into 'master' obs-knot-dns-deve-jq0xxt/deployments/1300 obs-knot-dns-deve-jq0xxt/deployments/1302 obs-knot-resolver-8xyvhu/deployments/1298 obs-knot-resolver-es11k1/deployments/1299 obs-knot-resolver-es11k1/deployments/1301 obs-knot-resolver-kv62s6/deployments/1297 v5.2.1
Tomas Krizek [Wed, 9 Dec 2020 09:42:16 +0000 (10:42 +0100)] 
Merge branch 'release-5-2-1' into 'master'

release 5.2.1

See merge request knot/knot-resolver!1108

4 years agorelease 5.2.1 obs-knot-resolver-bs4hbr/deployments/1294
Tomas Krizek [Tue, 8 Dec 2020 17:57:35 +0000 (18:57 +0100)] 
release 5.2.1

4 years agoMerge branch 'renumber_fix' into 'master' obs-knot-dns-deve-jq0xxt/deployments/1295 obs-knot-resolver-es11k1/deployments/1296
Tomas Krizek [Tue, 8 Dec 2020 18:38:09 +0000 (19:38 +0100)] 
Merge branch 'renumber_fix' into 'master'

Renumber module fix

See merge request knot/knot-resolver!1107

4 years agofix renumber module configuration with multiple IP addresses
Christophe Nowicki [Tue, 7 Jul 2020 16:00:59 +0000 (18:00 +0200)] 
fix renumber module configuration with multiple IP addresses

4 years agorenumber tests
Petr Špaček [Wed, 8 Jul 2020 06:39:51 +0000 (08:39 +0200)] 
renumber tests

4 years agoconfig tests: generalize check_answer
Petr Špaček [Mon, 10 Aug 2020 15:30:30 +0000 (17:30 +0200)] 
config tests: generalize check_answer

Finally it does not rely on ordering in the answer.
Stringification seemed like an easy hack for tests, let's see how it
works in the long term.

4 years agotests: verbose stack traces from config tests
Petr Špaček [Wed, 8 Jul 2020 12:44:59 +0000 (14:44 +0200)] 
tests: verbose stack traces from config tests

4 years agotests: print stack traces from check_answer callback function
Petr Špaček [Wed, 8 Jul 2020 12:43:09 +0000 (14:43 +0200)] 
tests: print stack traces from check_answer callback function

4 years agotests: typo fix
Petr Špaček [Wed, 8 Jul 2020 07:21:36 +0000 (09:21 +0200)] 
tests: typo fix

4 years agotests: detect empty config test sets
Petr Špaček [Wed, 8 Jul 2020 07:21:09 +0000 (09:21 +0200)] 
tests: detect empty config test sets

4 years agotests: sort config test order in modules/meson.build
Petr Špaček [Wed, 8 Jul 2020 06:38:31 +0000 (08:38 +0200)] 
tests: sort config test order in modules/meson.build

4 years agoMerge branch 'auto_free-generic' into 'master'
Tomas Krizek [Tue, 8 Dec 2020 15:23:30 +0000 (16:23 +0100)] 
Merge branch 'auto_free-generic' into 'master'

contrib/cleanup: loosen type-checking in auto_free

See merge request knot/knot-resolver!1100

4 years agocontrib/cleanup: loosen type-checking in auto_free
Vladimír Čunát [Mon, 30 Nov 2020 06:39:24 +0000 (07:39 +0100)] 
contrib/cleanup: loosen type-checking in auto_free

- advantage:    `auto_free anyType *foo;` works (for anyType != char)
- disadvantage: `auto_free anyType bar;` is also accepted,
  though I expect such problems will be relatively easy to debug.

4 years agoMerge branch 'ci-gh-actions-fix' into 'master'
Tomas Krizek [Tue, 8 Dec 2020 10:45:08 +0000 (11:45 +0100)] 
Merge branch 'ci-gh-actions-fix' into 'master'

ci: improve GH actions error handling

See merge request knot/knot-resolver!1106

4 years agoci: improve GH actions error handling
Tomas Krizek [Mon, 7 Dec 2020 09:42:30 +0000 (10:42 +0100)] 
ci: improve GH actions error handling

4 years agoMerge branch '636-doh2-restrict-configure-uri-path-endpoints' into 'master'
Tomas Krizek [Tue, 8 Dec 2020 10:32:00 +0000 (11:32 +0100)] 
Merge branch '636-doh2-restrict-configure-uri-path-endpoints' into 'master'

doh2: restricts endpoints to doh and dns-query

Closes #636

See merge request knot/knot-resolver!1104

4 years agodoh2: restricts endpoints to doh and dns-query
Lukáš Ježek [Fri, 4 Dec 2020 05:57:26 +0000 (06:57 +0100)] 
doh2: restricts endpoints to doh and dns-query

4 years agoMerge !1105: typo: fix occured -> occurred obs-knot-dns-deve-jq0xxt/deployments/1286 obs-knot-dns-deve-jq0xxt/deployments/1288 obs-knot-dns-deve-jq0xxt/deployments/1290 obs-knot-dns-deve-jq0xxt/deployments/1293 obs-knot-resolver-es11k1/deployments/1287 obs-knot-resolver-es11k1/deployments/1289 obs-knot-resolver-es11k1/deployments/1291 obs-knot-resolver-es11k1/deployments/1292
Vladimír Čunát [Fri, 4 Dec 2020 19:46:05 +0000 (20:46 +0100)] 
Merge !1105: typo: fix occured -> occurred

4 years agotypo: fix occured -> occurred
Jakub Ružička [Fri, 4 Dec 2020 17:05:44 +0000 (18:05 +0100)] 
typo: fix occured -> occurred

In English, the final letter is doubled when a word of two or more
syllables has stress on the final syllable so a correct form is
"occurred".

4 years agoMerge !1101: utils/cache_gc: fix debug prints obs-knot-dns-deve-jq0xxt/deployments/1278 obs-knot-dns-deve-jq0xxt/deployments/1281 obs-knot-dns-deve-jq0xxt/deployments/1282 obs-knot-dns-deve-jq0xxt/deployments/1285 obs-knot-resolver-es11k1/deployments/1279 obs-knot-resolver-es11k1/deployments/1280 obs-knot-resolver-es11k1/deployments/1283 obs-knot-resolver-es11k1/deployments/1284
Vladimír Čunát [Mon, 30 Nov 2020 08:13:52 +0000 (09:13 +0100)] 
Merge !1101: utils/cache_gc: fix debug prints

4 years agoutils/cache_gc: fix debug prints
Vladimír Čunát [Mon, 30 Nov 2020 08:06:22 +0000 (09:06 +0100)] 
utils/cache_gc: fix debug prints

The difference is on "negative" char values, in which case
the prints were way too long.

4 years agoMerge branch '617-doh2-send-cache-control-header' into 'master' obs-knot-dns-deve-jq0xxt/deployments/1271 obs-knot-dns-deve-jq0xxt/deployments/1273 obs-knot-dns-deve-jq0xxt/deployments/1275 obs-knot-dns-deve-jq0xxt/deployments/1276 obs-knot-resolver-es11k1/deployments/1270 obs-knot-resolver-es11k1/deployments/1272 obs-knot-resolver-es11k1/deployments/1274 obs-knot-resolver-es11k1/deployments/1277
Tomas Krizek [Thu, 26 Nov 2020 12:00:40 +0000 (13:00 +0100)] 
Merge branch '617-doh2-send-cache-control-header' into 'master'

doh2: send cache-control header

Closes #617

See merge request knot/knot-resolver!1095

4 years agodoh2: split POST and GET method processing
Lukáš Ježek [Mon, 16 Nov 2020 08:28:50 +0000 (09:28 +0100)] 
doh2: split POST and GET method processing

4 years agodoh2: send "cache-control: max-age"
Lukáš Ježek [Mon, 9 Nov 2020 07:52:37 +0000 (08:52 +0100)] 
doh2: send "cache-control: max-age"

4 years agoMerge branch 'github-actions' into 'master' obs-knot-dns-deve-jq0xxt/deployments/1269 obs-knot-resolver-es11k1/deployments/1268
Petr Špaček [Wed, 25 Nov 2020 17:48:58 +0000 (18:48 +0100)] 
Merge branch 'github-actions' into 'master'

ci: move macOS build to GitHub Actions

See merge request knot/knot-resolver!1099

4 years agoci: so long, Travis!
Tomas Krizek [Wed, 25 Nov 2020 12:25:02 +0000 (13:25 +0100)] 
ci: so long, Travis!

https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing

4 years agoci: use GitHub Actions for mac testing
Tomas Krizek [Wed, 25 Nov 2020 12:24:44 +0000 (13:24 +0100)] 
ci: use GitHub Actions for mac testing

4 years agogithub: run macOS build
Tomas Krizek [Wed, 25 Nov 2020 10:18:44 +0000 (11:18 +0100)] 
github: run macOS build

4 years agoMerge branch 'map-doc' into 'master'
Petr Špaček [Wed, 25 Nov 2020 17:19:51 +0000 (18:19 +0100)] 
Merge branch 'map-doc' into 'master'

doc: map() and certificate reload

See merge request knot/knot-resolver!1098

4 years agodoc: mention DoT/DoH blogpost 72642
Tomas Krizek [Wed, 25 Nov 2020 13:13:03 +0000 (14:13 +0100)] 
doc: mention DoT/DoH blogpost

4 years agodoc: add certificate reload tip to net.tls()
Tomas Krizek [Tue, 24 Nov 2020 17:31:33 +0000 (18:31 +0100)] 
doc: add certificate reload tip to net.tls()

4 years agodoc: describe map() usage with examples
Tomas Krizek [Tue, 24 Nov 2020 17:31:05 +0000 (18:31 +0100)] 
doc: describe map() usage with examples

4 years agoMerge branch 'xdp-emulation' into 'master'
Petr Špaček [Wed, 25 Nov 2020 13:57:27 +0000 (14:57 +0100)] 
Merge branch 'xdp-emulation' into 'master'

xdp: warn when using XDP emulation

See merge request knot/knot-resolver!1092

4 years agoxdp: warn when using XDP emulation
Vladimír Čunát [Thu, 12 Nov 2020 13:13:49 +0000 (14:13 +0100)] 
xdp: warn when using XDP emulation

For simplicity we bump Knot version that's required for using XDP.
Syntax: I found no better way to split the line;
alternative: backslash in meson >= 0.50.

4 years agoMerge branch 'meson-join-paths' into 'master'
Petr Špaček [Wed, 25 Nov 2020 10:23:07 +0000 (11:23 +0100)] 
Merge branch 'meson-join-paths' into 'master'

meson: use / instead of join_paths

See merge request knot/knot-resolver!1086

4 years agomeson: use / instead of join_paths
Tomas Krizek [Fri, 16 Oct 2020 09:04:28 +0000 (11:04 +0200)] 
meson: use / instead of join_paths

4 years agoMerge branch 'pgp-keyring' into 'master' obs-knot-dns-deve-jq0xxt/deployments/1257 obs-knot-dns-deve-jq0xxt/deployments/1258 obs-knot-dns-deve-jq0xxt/deployments/1261 obs-knot-dns-deve-jq0xxt/deployments/1262 obs-knot-dns-deve-jq0xxt/deployments/1265 obs-knot-dns-deve-jq0xxt/deployments/1267 obs-knot-resolver-es11k1/deployments/1256 obs-knot-resolver-es11k1/deployments/1259 obs-knot-resolver-es11k1/deployments/1260 obs-knot-resolver-es11k1/deployments/1263 obs-knot-resolver-es11k1/deployments/1264 obs-knot-resolver-es11k1/deployments/1266
Tomas Krizek [Thu, 19 Nov 2020 09:38:18 +0000 (10:38 +0100)] 
Merge branch 'pgp-keyring' into 'master'

generate PGP keyring

See merge request knot/knot-resolver!1096

4 years agoadd security.txt
Tomas Krizek [Wed, 18 Nov 2020 11:44:45 +0000 (12:44 +0100)] 
add security.txt

4 years agoscrips: generate kresd PGP keyblock
Tomas Krizek [Wed, 18 Nov 2020 11:33:40 +0000 (12:33 +0100)] 
scrips: generate kresd PGP keyblock

4 years agoMerge branch 'map-32bit' into 'master'
Tomas Krizek [Wed, 18 Nov 2020 16:14:36 +0000 (17:14 +0100)] 
Merge branch 'map-32bit' into 'master'

fix map() command on 32-bit platforms; regressed in 5.2.0

See merge request knot/knot-resolver!1093

4 years agofix map() command on 32-bit platforms; regressed in 5.2.0
Vladimír Čunát [Fri, 13 Nov 2020 13:16:32 +0000 (14:16 +0100)] 
fix map() command on 32-bit platforms; regressed in 5.2.0

LuaJIT FFI was using opendir() (etc.) variants with 32-bit inodes
but the C parts was using them as 64-bit inode variants.
Consequently the `struct dirent` layout didn't match and we were getting
filenames shifted by eight bytes.

Now the whole dir-listing lua function is written in C.

4 years agoMerge branch 'test-krprint-valgrind' into 'master' obs-knot-dns-deve-jq0xxt/deployments/1245 obs-knot-dns-deve-jq0xxt/deployments/1246 obs-knot-dns-deve-jq0xxt/deployments/1249 obs-knot-dns-deve-jq0xxt/deployments/1250 obs-knot-dns-deve-jq0xxt/deployments/1252 obs-knot-resolver-es11k1/deployments/1244 obs-knot-resolver-es11k1/deployments/1247 obs-knot-resolver-es11k1/deployments/1248 obs-knot-resolver-es11k1/deployments/1251 obs-knot-resolver-es11k1/deployments/1253
Petr Špaček [Fri, 13 Nov 2020 16:35:59 +0000 (17:35 +0100)] 
Merge branch 'test-krprint-valgrind' into 'master'

tests/krprint: reduce test complexity (for valgrind CI)

See merge request knot/knot-resolver!1094

4 years agotests/krprint: reduce test complexity (for valgrind CI)
Tomas Krizek [Fri, 13 Nov 2020 15:19:32 +0000 (16:19 +0100)] 
tests/krprint: reduce test complexity (for valgrind CI)

4 years agoMerge branch 'ci-news' into 'master' obs-knot-dns-deve-jq0xxt/deployments/1240 obs-knot-dns-deve-jq0xxt/deployments/1242 obs-knot-resolver-es11k1/deployments/1241 obs-knot-resolver-es11k1/deployments/1243
Petr Špaček [Wed, 11 Nov 2020 17:36:12 +0000 (18:36 +0100)] 
Merge branch 'ci-news' into 'master'

ci: ensure NEWS has current date

See merge request knot/knot-resolver!1091

4 years agoci: ensure NEWS has current date
Tomas Krizek [Wed, 11 Nov 2020 17:21:07 +0000 (18:21 +0100)] 
ci: ensure NEWS has current date

4 years agoMerge branch 'release-5-2-0' into 'master' obs-knot-resolver-8xyvhu/deployments/1239 obs-knot-resolver-kv62s6/deployments/1238 v5.2.0
Tomas Krizek [Wed, 11 Nov 2020 12:22:20 +0000 (13:22 +0100)] 
Merge branch 'release-5-2-0' into 'master'

Release 5.2.0

See merge request knot/knot-resolver!1090

4 years agorelease 5.2.0
Tomas Krizek [Wed, 11 Nov 2020 10:19:56 +0000 (11:19 +0100)] 
release 5.2.0

4 years agoupdate AUTHORS
Tomas Krizek [Wed, 11 Nov 2020 10:44:45 +0000 (11:44 +0100)] 
update AUTHORS

4 years agodoc: update upgrading guide
Tomas Krizek [Wed, 11 Nov 2020 09:56:41 +0000 (10:56 +0100)] 
doc: update upgrading guide

4 years agoetc/config: add doh2 examples
Tomas Krizek [Wed, 11 Nov 2020 09:54:01 +0000 (10:54 +0100)] 
etc/config: add doh2 examples

4 years agoMerge branch 'perf-af_xdp' into 'master'
Tomas Krizek [Wed, 11 Nov 2020 09:48:33 +0000 (10:48 +0100)] 
Merge branch 'perf-af_xdp' into 'master'

server-side XDP support

Closes #533

See merge request knot/knot-resolver!1083

4 years agodoc: add warning that XDP is experimental
Tomas Krizek [Wed, 11 Nov 2020 09:44:26 +0000 (10:44 +0100)] 
doc: add warning that XDP is experimental

4 years agodoc: mention possible issues with XDP emulation
Tomas Krizek [Wed, 11 Nov 2020 09:27:43 +0000 (10:27 +0100)] 
doc: mention possible issues with XDP emulation

4 years agodaemon/io refactor: don't expose unused io_deinit() obs-knot-resolver-bs4hbr/deployments/1235
Vladimír Čunát [Mon, 9 Nov 2020 15:46:04 +0000 (16:46 +0100)] 
daemon/io refactor: don't expose unused io_deinit()

4 years agomodules: fix issues with dropped answers - resolve()
Vladimír Čunát [Wed, 4 Nov 2020 09:07:40 +0000 (10:07 +0100)] 
modules: fix issues with dropped answers - resolve()

Well... practically it still can't happen that an internal request
gets its answer dropped, but ATM my understanding of the API is that
it is allowed to happen already, and the crashes during tests were
bothering me (simulating drops).

This may become more relevant in future, e.g. if we allow dropping
as a policy action; policy authors may not care about the request being
internal.

4 years agodaemon/worker: allow dropping even on non-XDP
Vladimír Čunát [Tue, 3 Nov 2020 11:34:04 +0000 (12:34 +0100)] 
daemon/worker: allow dropping even on non-XDP

During testing it was sending me SERVFAIL, which was weird.
There's no use case so far, but if it was decided to drop the answer,
it should really happen regardless of the transport.

4 years agomodules: fix issues with dropped answers
Vladimír Čunát [Fri, 30 Oct 2020 15:29:44 +0000 (16:29 +0100)] 
modules: fix issues with dropped answers

4 years agolua net.listen(): default freebind = false
Vladimír Čunát [Fri, 30 Oct 2020 06:37:31 +0000 (07:37 +0100)] 
lua net.listen(): default freebind = false

It's unclear why it defaulted to true in TLS cases.

4 years agoXDP: add documentation
Vladimír Čunát [Mon, 26 Oct 2020 19:41:13 +0000 (20:41 +0100)] 
XDP: add documentation

4 years agomodules/policy TC(): better detection of non-UDP requests
Vladimír Čunát [Fri, 23 Oct 2020 09:11:38 +0000 (11:11 +0200)] 
modules/policy TC(): better detection of non-UDP requests

This amends commit 99e014ac635.

4 years agoXDP: add lua interfaces
Vladimír Čunát [Wed, 21 Oct 2020 16:07:43 +0000 (18:07 +0200)] 
XDP: add lua interfaces

4 years agodaemon/bindings net_listen_addrs(): pack parameters
Vladimír Čunát [Wed, 14 Oct 2020 16:28:26 +0000 (18:28 +0200)] 
daemon/bindings net_listen_addrs(): pack parameters

They're starting to be too many.  Also improve comments.

4 years agoXDP: add backend parts
Vladimír Čunát [Wed, 21 Oct 2020 15:25:18 +0000 (17:25 +0200)] 
XDP: add backend parts

Logging strings: I originally wanted to have four chars inside [],
but it doesn't really matter in these cases where logs don't happen
within a request, so "[xdp]" won due to uniformity and simplicity.

4 years agoMerge branch 'base64urlencode-query' into 'master' obs-knot-dns-deve-jq0xxt/deployments/1234 obs-knot-dns-deve-jq0xxt/deployments/1237 obs-knot-resolver-es11k1/deployments/1233 obs-knot-resolver-es11k1/deployments/1236
Petr Špaček [Mon, 9 Nov 2020 09:17:10 +0000 (10:17 +0100)] 
Merge branch 'base64urlencode-query' into 'master'

scripts: utility to get base64 url encoded query for DoH GET

See merge request knot/knot-resolver!1089