]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
7 years agolib/nsrep: refactored copypasta
Marek Vavruša [Fri, 20 Apr 2018 03:54:36 +0000 (20:54 -0700)] 
lib/nsrep: refactored copypasta

7 years agoMerge branch 'ci-docker' into 'master'
Tomas Krizek [Fri, 15 Jun 2018 11:22:18 +0000 (13:22 +0200)] 
Merge branch 'ci-docker' into 'master'

ci/Dockerfile.debian: use new respdiff git repo

See merge request knot/knot-resolver!602

7 years agoci/Dockerfile.debian: use new respdiff git repo
Tomas Krizek [Fri, 15 Jun 2018 11:07:39 +0000 (13:07 +0200)] 
ci/Dockerfile.debian: use new respdiff git repo

7 years agoMerge branch 'tls-session-resumption' into 'master'
Petr Špaček [Wed, 13 Jun 2018 16:15:00 +0000 (18:15 +0200)] 
Merge branch 'tls-session-resumption' into 'master'

daemon/tls: session resumption with tickets (client & server side)

See merge request knot/knot-resolver!585

7 years agodaemon/tls: disable session resumption with shared secret for now
Petr Špaček [Wed, 13 Jun 2018 15:54:56 +0000 (17:54 +0200)] 
daemon/tls: disable session resumption with shared secret for now

There is no GnuTLS version which would make this safe.
See https://gitlab.com/gnutls/gnutls/issues/477

7 years agodaemon/tls: add basic config tests
Petr Špaček [Wed, 13 Jun 2018 14:00:01 +0000 (16:00 +0200)] 
daemon/tls: add basic config tests

7 years agodaemon/tls: document limitations of the session key synchronization
Petr Špaček [Wed, 13 Jun 2018 12:58:39 +0000 (14:58 +0200)] 
daemon/tls: document limitations of the session key synchronization

7 years agodaemon/tls: work on server-side session tickets
Vladimír Čunát [Thu, 31 May 2018 11:51:03 +0000 (13:51 +0200)] 
daemon/tls: work on server-side session tickets

7 years agodaemon/bindings: import tls session ticket key salt from file
Grigorii Demidov [Tue, 22 May 2018 08:21:19 +0000 (10:21 +0200)] 
daemon/bindings: import tls session ticket key salt from file

7 years agodaemon/tls: session resumption with tickets (client & server side)
Grigorii Demidov [Mon, 21 May 2018 15:55:35 +0000 (17:55 +0200)] 
daemon/tls: session resumption with tickets (client & server side)

7 years agoMerge branch 'tls-ciphers' into 'master'
Petr Špaček [Fri, 8 Jun 2018 13:19:41 +0000 (15:19 +0200)] 
Merge branch 'tls-ciphers' into 'master'

restrict TLS ciphers

See merge request knot/knot-resolver!601

7 years agodaemon/tls: make gnutls_priority stricter
Vladimír Čunát [Fri, 8 Jun 2018 10:20:16 +0000 (12:20 +0200)] 
daemon/tls: make gnutls_priority stricter

Otherwise CentOS 7 enables those two "ciphers" by default.
Noticed in #355.

7 years agodaemon/tls: don't segfault if gnutls_priority_* fails
Vladimír Čunát [Fri, 8 Jun 2018 10:19:02 +0000 (12:19 +0200)] 
daemon/tls: don't segfault if gnutls_priority_* fails

7 years agoMerge branch 'policy_clear_ad' into 'master'
Grigorii Demidov [Thu, 7 Jun 2018 09:27:11 +0000 (11:27 +0200)] 
Merge branch 'policy_clear_ad' into 'master'

modules.policy: REFUSE, TC - clear AD flag in answers

See merge request knot/knot-resolver!599

7 years agomodules.policy: REFUSE, TC - clear AD flag in answers
Grigorii Demidov [Thu, 7 Jun 2018 09:02:14 +0000 (11:02 +0200)] 
modules.policy: REFUSE, TC - clear AD flag in answers

7 years agoMerge branch 'ci-epel-error' into 'master'
Tomas Krizek [Thu, 7 Jun 2018 08:12:08 +0000 (10:12 +0200)] 
Merge branch 'ci-epel-error' into 'master'

ci: make distro:epel-7 easier to debug in typical cases

See merge request knot/knot-resolver!598

7 years agoci: make distro:epel-7 easier to debug in typical cases
Vladimír Čunát [Wed, 6 Jun 2018 15:53:01 +0000 (17:53 +0200)] 
ci: make distro:epel-7 easier to debug in typical cases

7 years agoMerge branch 'tls-system-store' into 'master'
Petr Špaček [Wed, 6 Jun 2018 13:32:14 +0000 (15:32 +0200)] 
Merge branch 'tls-system-store' into 'master'

daemon/tls: use system CA with TLS_FORWARD policy

Closes #310

See merge request knot/knot-resolver!586

7 years agodaemon/tls: document new behavior
Petr Špaček [Mon, 4 Jun 2018 15:56:24 +0000 (17:56 +0200)] 
daemon/tls: document new behavior

7 years agodaemon/tls: system CA's are used by default with TLS_FORWARD policy when ca_file...
Grigorii Demidov [Tue, 22 May 2018 14:39:58 +0000 (16:39 +0200)] 
daemon/tls: system CA's are used by default with TLS_FORWARD policy when ca_file parameter is omitted

7 years agodaemon/tls: use system CA with TLS_FORWARD policy
Grigorii Demidov [Tue, 22 May 2018 09:15:33 +0000 (11:15 +0200)] 
daemon/tls: use system CA with TLS_FORWARD policy

7 years agoMerge branch 'policy_REFUSE' into 'master'
Grigorii Demidov [Tue, 5 Jun 2018 10:42:05 +0000 (12:42 +0200)] 
Merge branch 'policy_REFUSE' into 'master'

Policy REFUSE; minot tweak

Closes #337

See merge request knot/knot-resolver!549

7 years agokresd: improve error reporting if cache cannot be opened
Petr Špaček [Tue, 10 Apr 2018 07:16:55 +0000 (09:16 +0200)] 
kresd: improve error reporting if cache cannot be opened

For some weird reason kresd crashed on assert(false) if it cannot open
cache even though it handles this case properly without the assert.

7 years agopolicy: add REFUSE policy
Petr Špaček [Tue, 10 Apr 2018 07:15:38 +0000 (09:15 +0200)] 
policy: add REFUSE policy

Fixes: #337
7 years agoMerge branch 'http-custom-endpoints' into 'master'
Grigorii Demidov [Thu, 31 May 2018 15:08:28 +0000 (17:08 +0200)] 
Merge branch 'http-custom-endpoints' into 'master'

Allow creating custom endpoints in the HTTP module

See merge request knot/knot-resolver!527

7 years agohttp: interface parameter check fix
Grigorii Demidov [Thu, 31 May 2018 10:28:33 +0000 (12:28 +0200)] 
http: interface parameter check fix

7 years agohttp/prometheus: allow finalization of metrics table
Marek Vavruša [Tue, 27 Mar 2018 03:18:56 +0000 (20:18 -0700)] 
http/prometheus: allow finalization of metrics table

This allows other modules to add or modify custom metrics or labels.

7 years agohttp/prometheus: allow custom namespaces
Marek Vavruša [Fri, 23 Mar 2018 18:20:36 +0000 (11:20 -0700)] 
http/prometheus: allow custom namespaces

7 years agohttp: allow loading custom endpoints to http
Marek Vavruša [Wed, 21 Mar 2018 22:57:19 +0000 (15:57 -0700)] 
http: allow loading custom endpoints to http

Previously the module was created on configuration time, so it wasn't
possible to inject custom endpoints to the default interface.

7 years agobindings: always set AD=1 in internal queries just like real clients
Marek Vavruša [Wed, 21 Mar 2018 22:48:57 +0000 (15:48 -0700)] 
bindings: always set AD=1 in internal queries just like real clients

The AD indicates validation request (but not request for DNSSEC records).
If the response can't be validated, resolver flips the AD to 0.

7 years agoMerge branch 'packaging-update' into 'master'
Tomas Krizek [Thu, 31 May 2018 13:45:04 +0000 (15:45 +0200)] 
Merge branch 'packaging-update' into 'master'

distro: packaging updates

See merge request knot/knot-resolver!567

7 years agosystemd: man page - update about system-kresd.slice
Tomas Krizek [Thu, 31 May 2018 13:31:22 +0000 (15:31 +0200)] 
systemd: man page - update about system-kresd.slice

7 years agodistro/rpm: handle systemd restarts in CentOS 7 compatible way
Tomas Krizek [Thu, 31 May 2018 13:23:23 +0000 (15:23 +0200)] 
distro/rpm: handle systemd restarts in CentOS 7 compatible way

7 years agodistro/rpm/knot-resolver.spec
Tomas Krizek [Mon, 23 Apr 2018 15:59:23 +0000 (17:59 +0200)] 
distro/rpm/knot-resolver.spec

7 years agodistro/arch: add missing dependencies
Tomas Krizek [Mon, 23 Apr 2018 14:22:01 +0000 (16:22 +0200)] 
distro/arch: add missing dependencies

7 years agodistro/deb: remove obsolete dependencies libjansson and python3
Tomas Krizek [Mon, 23 Apr 2018 14:14:22 +0000 (16:14 +0200)] 
distro/deb: remove obsolete dependencies libjansson and python3

7 years agodistro/rpm: use Python3 to build doc
Tomas Krizek [Mon, 23 Apr 2018 14:07:28 +0000 (16:07 +0200)] 
distro/rpm: use Python3 to build doc

7 years agodistro/*: remove obsolete memcached and redis dependency
Tomas Krizek [Mon, 23 Apr 2018 14:06:50 +0000 (16:06 +0200)] 
distro/*: remove obsolete memcached and redis dependency

7 years agodistro/rpm: reformat spec file
Tomas Krizek [Mon, 23 Apr 2018 14:05:36 +0000 (16:05 +0200)] 
distro/rpm: reformat spec file

7 years agodistro/arch: reformat dependencies
Tomas Krizek [Mon, 23 Apr 2018 13:56:38 +0000 (15:56 +0200)] 
distro/arch: reformat dependencies

7 years agodistro/deb: reformat knot-resolver.dsc
Tomas Krizek [Mon, 23 Apr 2018 13:49:45 +0000 (15:49 +0200)] 
distro/deb: reformat knot-resolver.dsc

7 years agoMerge branch 'lua-add-per-request-variables' into 'master'
Grigorii Demidov [Thu, 31 May 2018 07:26:01 +0000 (09:26 +0200)] 
Merge branch 'lua-add-per-request-variables' into 'master'

daemon: allow per-request variables in Lua

See merge request knot/knot-resolver!533

7 years agodaemon: allow per-request variables in Lua
Marek Vavruša [Wed, 28 Mar 2018 05:43:53 +0000 (22:43 -0700)] 
daemon: allow per-request variables in Lua

The handlers in Lua can now store per-request variables that are automatically
GC'd when the request is finished. This is useful for stateful modules,
such as DNS64 that uses internal option flags for state tracking.

The layers can now get a variable table like so:

```
local vars = kres.request_t(r):vars()
vars.hello = true
```

The variables are persisted between different layers for each request.

7 years agoMerge branch 'nitpick-bugs' into 'master'
Vladimír Čunát [Tue, 29 May 2018 11:15:46 +0000 (13:15 +0200)] 
Merge branch 'nitpick-bugs' into 'master'

cache/entry_rr: fixed undefined behavior

See merge request knot/knot-resolver!595

7 years agocache/entry_rr: fixed undefined behavior
Marek Vavruša [Tue, 29 May 2018 02:28:46 +0000 (19:28 -0700)] 
cache/entry_rr: fixed undefined behavior

Pointer arithmetic with 'void *' is undefined, it only works as GNU extension.

7 years agoMerge branch 'deb-cleanup' into 'master'
Tomas Krizek [Mon, 28 May 2018 12:52:52 +0000 (14:52 +0200)] 
Merge branch 'deb-cleanup' into 'master'

synchronize distro/deb with official debian packaging

See merge request knot/knot-resolver!593

7 years agosynchronize distro/deb with official debian packaging
Daniel Kahn Gillmor [Thu, 24 May 2018 17:31:53 +0000 (13:31 -0400)] 
synchronize distro/deb with official debian packaging

Note that this is not an exact synchronization, just the salient parts
where i believe upstream wants to sync up with debian.

I've left alone indications of upstream package maintainership, and
I've left debhelper back at version 9, for example.  and i've left the
differences between the shipped debian/kresd.conf (debian package
ships a minimal kresd.conf that doesn't load those four modules, in
particular).

7 years agoMerge branch 'doc-nitpicks' into 'master'
Petr Špaček [Mon, 28 May 2018 10:49:16 +0000 (12:49 +0200)] 
Merge branch 'doc-nitpicks' into 'master'

documentation nitpicks

See merge request knot/knot-resolver!592

7 years agoother docs nitpicks
Vladimír Čunát [Fri, 25 May 2018 14:07:39 +0000 (16:07 +0200)] 
other docs nitpicks

I don't think it's good to write that we "provide a library",
as it currently doesn't seem suitable for usage outside kresd.

7 years agopolicy, view: documentation nitpicks
Vladimír Čunát [Thu, 24 May 2018 17:24:37 +0000 (19:24 +0200)] 
policy, view: documentation nitpicks

It seems like implementation and docs got de-synchronized,
probably at some point very long ago (years).

7 years agodoc/build: refresh build-time requirements
Vladimír Čunát [Mon, 21 May 2018 08:57:17 +0000 (10:57 +0200)] 
doc/build: refresh build-time requirements

7 years agoMerge branch 'systemctl-start' into 'master'
Tomas Krizek [Fri, 25 May 2018 15:10:40 +0000 (17:10 +0200)] 
Merge branch 'systemctl-start' into 'master'

doc: systemd -- clarify how to manually start all services.

See merge request knot/knot-resolver!591

7 years agodoc: systemd -- clarify how to manually start all services.
Daniel Kahn Gillmor [Thu, 24 May 2018 15:01:22 +0000 (11:01 -0400)] 
doc: systemd -- clarify how to manually start all services.

See https://github.com/systemd/systemd/issues/9080 for
details/discussion.

7 years agoMerge branch 'ci-docker-update' into 'master'
Tomas Krizek [Fri, 25 May 2018 14:48:15 +0000 (16:48 +0200)] 
Merge branch 'ci-docker-update' into 'master'

ci: add pytest-xdist dependency for Deckard

See merge request knot/knot-resolver!590

7 years agoci: add pytest-xdist dependency for Deckard
Tomas Krizek [Fri, 25 May 2018 14:38:51 +0000 (16:38 +0200)] 
ci: add pytest-xdist dependency for Deckard

7 years agoMerge branch 'endianness' into 'master'
Petr Špaček [Thu, 24 May 2018 17:06:09 +0000 (19:06 +0200)] 
Merge branch 'endianness' into 'master'

handle htobe32 et al. on glibc systems with a non-Linux kernel

See merge request knot/knot-resolver!588

7 years agohandle htobe32 et al. on glibc systems with a non-Linux kernel
Daniel Kahn Gillmor [Thu, 24 May 2018 16:59:26 +0000 (12:59 -0400)] 
handle htobe32 et al. on glibc systems with a non-Linux kernel

This fix copies over an updated #if clause from libknot's
src/contrib/endian.h.

This should resolve:

    https://gitlab.labs.nic.cz/knot/knot-resolver/issues/348

See also discussion about this same problem in libknot from a couple
years ago:

    https://bugs.debian.org/840460

I note that contrib/wire.h in knot-resolver is out of sync with
src/contrib/wire.h (and src/contrib/endian.h) from libknot.  I don't
know whether there's any upstream preference for keeping these in sync
in some more reliable way than manual comparisons.  For now i'm just
providing a narrow fix for the specific problem.

7 years agoMerge branch 'iter-minim-op' into 'master'
Petr Špaček [Sat, 19 May 2018 11:30:28 +0000 (13:30 +0200)] 
Merge branch 'iter-minim-op' into 'master'

iterate: avoid turning off qname minimization in a case

Closes #339

See merge request knot/knot-resolver!584

7 years agoiterate: avoid turning off qname minimization in a case
Vladimír Čunát [Wed, 16 May 2018 11:59:06 +0000 (13:59 +0200)] 
iterate: avoid turning off qname minimization in a case

Thanks to @ spakka for discovering this and authoring an earlier version
of this commit.

7 years agoMerge !576: validate: avoid incorrect downgrade of NS
Vladimír Čunát [Wed, 16 May 2018 08:54:56 +0000 (10:54 +0200)] 
Merge !576: validate: avoid incorrect downgrade of NS

7 years agovalidate: be more careful with marking RRs as insecure
Vladimír Čunát [Wed, 16 May 2018 08:19:48 +0000 (10:19 +0200)] 
validate: be more careful with marking RRs as insecure

In case of referrals the authoritative server might add also another NS
record(s), and this might lead to downgrading the corresponding zones.
Regressed probably in f0da0a35 !505.

7 years agoimprove verbose logs
Marek Vavruša [Tue, 1 May 2018 17:39:04 +0000 (10:39 -0700)] 
improve verbose logs

7 years agoMerge !579: treewide: additional dname checks
Vladimír Čunát [Fri, 11 May 2018 16:11:47 +0000 (18:11 +0200)] 
Merge !579: treewide: additional dname checks

7 years agotreewide: additional dname checks
Grigorii Demidov [Thu, 10 May 2018 12:16:53 +0000 (14:16 +0200)] 
treewide: additional dname checks

7 years agoMerge !539: cleanup after knot minimal version bumps
Vladimír Čunát [Fri, 11 May 2018 15:29:31 +0000 (17:29 +0200)] 
Merge !539: cleanup after knot minimal version bumps

7 years agolua bindings: complete knot_pkt_t
Vladimír Čunát [Fri, 13 Apr 2018 16:09:31 +0000 (18:09 +0200)] 
lua bindings: complete knot_pkt_t

We don't need the end, but I prefer to get rid of the exception,
as we now require libknot > 2.6 anyway and it only implies adding
a few more binding lines.

7 years agotreewide: remove branches supporting old knot
Vladimír Čunát [Wed, 4 Apr 2018 10:50:32 +0000 (12:50 +0200)] 
treewide: remove branches supporting old knot

Our Makefile required >= 2.6.4 for some time already.
It's pretty straightforward, except for zonefile.lua.in -> zonefile.lua

7 years agoMerge branch 'ci-respdiff-config' into 'master'
Tomas Krizek [Fri, 11 May 2018 08:58:13 +0000 (10:58 +0200)] 
Merge branch 'ci-respdiff-config' into 'master'

ci: respdiff - use relative path to restart script

See merge request knot/knot-resolver!580

7 years agoci: respdiff - use relative path to restart script
Tomas Krizek [Fri, 11 May 2018 08:39:01 +0000 (10:39 +0200)] 
ci: respdiff - use relative path to restart script

7 years agoMerge branch 'augeas-ci' into 'master'
Petr Špaček [Thu, 10 May 2018 13:06:22 +0000 (15:06 +0200)] 
Merge branch 'augeas-ci' into 'master'

add augeas-tools so we can test our lens in Deckard

See merge request knot/knot-resolver!566

7 years agoadd augeas-tool so we can test our lens in Deckard
Stepan Balazik [Mon, 23 Apr 2018 11:29:18 +0000 (13:29 +0200)] 
add augeas-tool so we can test our lens in Deckard

7 years agoMerge branch 'udp-src-scheck' into 'master'
Petr Špaček [Thu, 10 May 2018 12:33:38 +0000 (14:33 +0200)] 
Merge branch 'udp-src-scheck' into 'master'

daemon: check source in udp answer

See merge request knot/knot-resolver!522

7 years agodaemon/worker: compare udp src ports as well as addresses; cleanup
Grigorii Demidov [Mon, 19 Mar 2018 14:59:02 +0000 (15:59 +0100)] 
daemon/worker: compare udp src ports as well as addresses; cleanup

7 years agodaemon: check source in udp answer
Grigorii Demidov [Wed, 14 Mar 2018 13:21:01 +0000 (14:21 +0100)] 
daemon: check source in udp answer

7 years agoMerge branch 'prefill_fix' into 'master'
Petr Špaček [Wed, 9 May 2018 16:54:51 +0000 (18:54 +0200)] 
Merge branch 'prefill_fix' into 'master'

prefill: fix ca_file to actually expect file and not a directory

See merge request knot/knot-resolver!578

7 years agoprefill: fix ca_file to actually expect file and not a directory
Petr Špaček [Wed, 9 May 2018 16:42:28 +0000 (18:42 +0200)] 
prefill: fix ca_file to actually expect file and not a directory

This was leftover from an old version which used directory with
certificates instead of bundle in single file.

Related: !511

7 years agoMerge branch 'nitpicks' into 'master'
Petr Špaček [Wed, 9 May 2018 15:11:30 +0000 (17:11 +0200)] 
Merge branch 'nitpicks' into 'master'

misc nitpicks

See merge request knot/knot-resolver!568

7 years agopolicy docs: replace incorrect example
Vladimír Čunát [Tue, 24 Apr 2018 14:14:29 +0000 (16:14 +0200)] 
policy docs: replace incorrect example

The example didn't work and I don't immediately see how to quickly fix
it, so let's have another more complex example instead (fished from an
older forum post of mine).

7 years agota_signal_query: correct logging
Vladimír Čunát [Fri, 13 Apr 2018 16:14:47 +0000 (18:14 +0200)] 
ta_signal_query: correct logging

7 years agodaemon docs: mention relation of hostname() and TLS
Vladimír Čunát [Mon, 16 Apr 2018 13:34:43 +0000 (15:34 +0200)] 
daemon docs: mention relation of hostname() and TLS

7 years agocache TTL limit nitpicks: allow equality, fix docs
Vladimír Čunát [Mon, 16 Apr 2018 13:32:54 +0000 (15:32 +0200)] 
cache TTL limit nitpicks: allow equality, fix docs

I also tried making a clickable define in the docs,
like for cache.ns_tout(), but I failed.

7 years agoMerge branch 'marek/add-lru-bindings' into 'master'
Petr Špaček [Wed, 9 May 2018 14:58:24 +0000 (16:58 +0200)] 
Merge branch 'marek/add-lru-bindings' into 'master'

daemon/lua: added basic bindings for LRU

See merge request knot/knot-resolver!569

7 years agodaemon/lua: added basic bindings for LRU
Marek Vavruša [Tue, 24 Apr 2018 02:05:30 +0000 (19:05 -0700)] 
daemon/lua: added basic bindings for LRU

Only get-set operations are added, added some tests.

7 years agoMerge branch 'tls-inv-session' into 'master'
Petr Špaček [Wed, 9 May 2018 14:48:52 +0000 (16:48 +0200)] 
Merge branch 'tls-inv-session' into 'master'

daemon/worker: improved server-side error handling

See merge request knot/knot-resolver!574

7 years agodaemon/worker: improved server-side error handling
Grigorii Demidov [Fri, 27 Apr 2018 11:54:21 +0000 (13:54 +0200)] 
daemon/worker: improved server-side error handling

7 years agoMerge branch 'tcp-leaks' into 'master'
Petr Špaček [Wed, 9 May 2018 12:56:21 +0000 (14:56 +0200)] 
Merge branch 'tcp-leaks' into 'master'

daemon/worker: orphaned tasks prevention

See merge request knot/knot-resolver!570

7 years agodaemon/worker: orphaned tasks prevention
Grigorii Demidov [Tue, 24 Apr 2018 12:22:48 +0000 (14:22 +0200)] 
daemon/worker: orphaned tasks prevention

7 years agoMerge branch 'ci-diffrepro' into 'master'
Tomas Krizek [Fri, 27 Apr 2018 08:14:05 +0000 (10:14 +0200)] 
Merge branch 'ci-diffrepro' into 'master'

ci: respdiff - run diffrepro 3 times to reproduce results

See merge request knot/knot-resolver!572

7 years agoci: respdiff - run diffrepro 3 times to reproduce results
Tomas Krizek [Thu, 26 Apr 2018 13:20:53 +0000 (15:20 +0200)] 
ci: respdiff - run diffrepro 3 times to reproduce results

7 years agoMerge branch 'arch-update' into 'master'
Tomas Krizek [Wed, 25 Apr 2018 14:59:21 +0000 (16:59 +0200)] 
Merge branch 'arch-update' into 'master'

distro/arch: generate debug symbols

See merge request knot/knot-resolver!571

7 years agodistro/arch: create debug symbols pkg
Tomas Krizek [Wed, 25 Apr 2018 14:42:06 +0000 (16:42 +0200)] 
distro/arch: create debug symbols pkg

7 years agodistro/arch: don't overwrite kresd.conf by default
Tomas Krizek [Wed, 25 Apr 2018 09:49:50 +0000 (11:49 +0200)] 
distro/arch: don't overwrite kresd.conf by default

7 years agoMerge !551: misc changes from Marek
Vladimír Čunát [Mon, 23 Apr 2018 16:01:08 +0000 (18:01 +0200)] 
Merge !551: misc changes from Marek

7 years agoiterate: allow lame negative answers in PERMISSIVE mode
Marek Vavruša [Mon, 9 Apr 2018 07:01:53 +0000 (00:01 -0700)] 
iterate: allow lame negative answers in PERMISSIVE mode

Some nameservers are hopelessly broken (ns1-ord.salesforce.com),
and will return lame negative answers which will flag the nameserver
as bad, so it wouldn't be picked for valid queries.

7 years agocopy transitive query flags when CNAME chasing
Marek Vavruša [Fri, 6 Apr 2018 20:25:21 +0000 (13:25 -0700)] 
copy transitive query flags when CNAME chasing

This is an issue for things like disabling minimisation, which only works
for the original query and not for the CNAME target.

7 years agocheck per-query flags instead of global options, getter for NS name
Marek Vavruša [Fri, 6 Apr 2018 05:43:57 +0000 (22:43 -0700)] 
check per-query flags instead of global options, getter for NS name

Checking query flags instead of global context option allows setting
overrides on individual queries. The effect is the same as query flags
start by copying request flags which start by copying context options.

7 years agoadd bindings for the checkout layer
Marek Vavruša [Fri, 6 Apr 2018 05:48:51 +0000 (22:48 -0700)] 
add bindings for the checkout layer

This one was missing from the current bindings. The checkout layer
runs when the worker attempts to send a DNS query to given upstream
when the address is already determined. The layer can add EDNS options
or update outbound query, or block particular addresses / protocol.

7 years agolua: added typecheck for string-to-dname conversion
Marek Vavruša [Tue, 3 Apr 2018 22:51:32 +0000 (15:51 -0700)] 
lua: added typecheck for string-to-dname conversion

7 years agoMerge !519: Restore cache insert RR API
Vladimír Čunát [Mon, 23 Apr 2018 12:44:12 +0000 (14:44 +0200)] 
Merge !519: Restore cache insert RR API

Closes #332.

7 years agocache: restore flagging entries written into cache
Marek Vavruša [Fri, 23 Mar 2018 16:40:36 +0000 (09:40 -0700)] 
cache: restore flagging entries written into cache

This was probably lost during the cache backend rewrite in 2.x

fixes #332