]> git.ipfire.org Git - thirdparty/knot-dns.git/log
thirdparty/knot-dns.git
8 years agorefresh: fix warning message if IXFR zone_update_commit failed
Daniel Salzman [Fri, 19 Jan 2018 14:31:47 +0000 (15:31 +0100)] 
refresh: fix warning message if IXFR zone_update_commit failed

8 years agoconfigure: tiny cleanup
Daniel Salzman [Thu, 18 Jan 2018 20:13:58 +0000 (21:13 +0100)] 
configure: tiny cleanup

8 years agoconfigure: remove fallback to libatomic
Daniel Salzman [Thu, 18 Jan 2018 19:58:01 +0000 (20:58 +0100)] 
configure: remove fallback to libatomic

Still there are some problems with clang on 32-bit systems, so the atomic
functionality is no longer required for such systems (statistics or mod-cookies
might work slightly wrong).

8 years agoMerge branch 'tls_poll' into 'master'
Daniel Salzman [Thu, 18 Jan 2018 19:17:16 +0000 (20:17 +0100)] 
Merge branch 'tls_poll' into 'master'

kdig: polling on TLS connections

See merge request knot/knot-dns!875

8 years agokdig: fixed memory leak due to bogus TLS input
Mark Karpilovskij [Thu, 18 Jan 2018 14:04:26 +0000 (15:04 +0100)] 
kdig: fixed memory leak due to bogus TLS input

8 years agoutils/common: added polling when receiving data over TLS
Mark Karpilovskij [Wed, 17 Jan 2018 12:11:16 +0000 (13:11 +0100)] 
utils/common: added polling when receiving data over TLS

8 years agoman/kdig: fix typo
Daniel Salzman [Thu, 18 Jan 2018 09:05:37 +0000 (10:05 +0100)] 
man/kdig: fix typo

8 years agoMerge branch 'kdig-ednsopt' into 'master'
Daniel Salzman [Wed, 17 Jan 2018 15:18:23 +0000 (16:18 +0100)] 
Merge branch 'kdig-ednsopt' into 'master'

kdig: add support for +ednsopt

See merge request knot/knot-dns!873

8 years agokdig: document +ednsopt in manual page
Jan Vcelak [Sat, 13 Jan 2018 15:30:46 +0000 (16:30 +0100)] 
kdig: document +ednsopt in manual page

8 years agokdig: re-align help output
Jan Vcelak [Sat, 13 Jan 2018 15:14:14 +0000 (16:14 +0100)] 
kdig: re-align help output

8 years agokdig: add support for +ednsopt (custom EDNS options)
Jan Vcelak [Sat, 13 Jan 2018 15:07:51 +0000 (16:07 +0100)] 
kdig: add support for +ednsopt (custom EDNS options)

8 years agokdig: fix typo
Jan Vcelak [Sat, 13 Jan 2018 15:06:57 +0000 (16:06 +0100)] 
kdig: fix typo

8 years agoaxfr: fix force_axfr for multi-master setup
Libor Peltan [Wed, 17 Jan 2018 13:29:21 +0000 (14:29 +0100)] 
axfr: fix force_axfr for multi-master setup

8 years agodnssec: replaced obsolete shared/wire by contrib/wire_ctx
Mark Karpilovskij [Fri, 5 Jan 2018 15:07:47 +0000 (16:07 +0100)] 
dnssec: replaced obsolete shared/wire by contrib/wire_ctx

8 years agodnssec/shared: moved binary/wire operations to separate file
Mark Karpilovskij [Fri, 5 Jan 2018 13:17:33 +0000 (14:17 +0100)] 
dnssec/shared: moved binary/wire operations to separate file

8 years agodnssec/shared: moved bignum write from wire.h to bignum.h
Daniel Salzman [Sun, 24 Dec 2017 12:57:29 +0000 (13:57 +0100)] 
dnssec/shared: moved bignum write from wire.h to bignum.h

8 years agozscanner: add APL rdata overflow check (oss-fuzz, asan)
Daniel Salzman [Wed, 17 Jan 2018 09:56:54 +0000 (10:56 +0100)] 
zscanner: add APL rdata overflow check (oss-fuzz, asan)

8 years agokdig: updated TLS doc
Mark Karpilovskij [Fri, 12 Jan 2018 12:00:50 +0000 (13:00 +0100)] 
kdig: updated TLS doc

8 years agoMerge branch 'onlinesign_convergence' into 'master'
Daniel Salzman [Fri, 12 Jan 2018 12:22:35 +0000 (13:22 +0100)] 
Merge branch 'onlinesign_convergence' into 'master'

mod onlinesign: using kdnssec_ctx and zone_keyset instead of just dnssec_key

See merge request knot/knot-dns!865

8 years agomod onlinesign: using kdnssec_ctx and zone_keyset instead of just dnssec_key
Libor Peltan [Fri, 15 Dec 2017 15:52:31 +0000 (16:52 +0100)] 
mod onlinesign: using kdnssec_ctx and zone_keyset instead of just dnssec_key

8 years agokdig: remove redundant free() call
Mark Karpilovskij [Thu, 11 Jan 2018 14:29:53 +0000 (15:29 +0100)] 
kdig: remove redundant free() call

8 years agotests-fuzz: add check-compile target
Daniel Salzman [Wed, 10 Jan 2018 20:49:29 +0000 (21:49 +0100)] 
tests-fuzz: add check-compile target

8 years agodname: change int to size_t return type where reasonable
Daniel Salzman [Mon, 8 Jan 2018 15:49:49 +0000 (16:49 +0100)] 
dname: change int to size_t return type where reasonable

8 years agoMerge branch 'editing-2-6' into 'master'
Daniel Salzman [Tue, 9 Jan 2018 16:00:16 +0000 (17:00 +0100)] 
Merge branch 'editing-2-6' into 'master'

Doc Editing 2 6

See merge request knot/knot-dns!872

8 years agodoc: Editing
Lena (zansorgova) [Fri, 5 Jan 2018 15:16:10 +0000 (16:16 +0100)] 
doc: Editing

8 years agodoc: add admons style to the HTML theme
Lena (zansorgova) [Fri, 5 Jan 2018 16:17:08 +0000 (17:17 +0100)] 
doc: add admons style to the HTML theme

8 years agodnssec: temporary fix for static linking
Daniel Salzman [Mon, 8 Jan 2018 14:29:15 +0000 (15:29 +0100)] 
dnssec: temporary fix for static linking

8 years agodoc: fix acl.key description
Daniel Salzman [Mon, 8 Jan 2018 10:19:27 +0000 (11:19 +0100)] 
doc: fix acl.key description

8 years agotest: fix Siphash test on OpenBSD
Daniel Salzman [Sun, 7 Jan 2018 20:43:49 +0000 (21:43 +0100)] 
test: fix Siphash test on OpenBSD

8 years agodocker: add 'make' dependency to Fedora Dockerfile
Daniel Salzman [Sun, 7 Jan 2018 19:44:35 +0000 (20:44 +0100)] 
docker: add 'make' dependency to Fedora Dockerfile

8 years agodnssec: remove explicit dependency on Nettle
Daniel Salzman [Sun, 7 Jan 2018 19:32:10 +0000 (20:32 +0100)] 
dnssec: remove explicit dependency on Nettle

8 years agozscanner: add explicit comment length init to prevent index overflow (oss-fuzz, ubsan)
Daniel Salzman [Fri, 5 Jan 2018 14:40:35 +0000 (15:40 +0100)] 
zscanner: add explicit comment length init to prevent index overflow (oss-fuzz, ubsan)

The index overflow can happen during multiline record parsing.

8 years agozscanner: unify buffer index boundary checks
Daniel Salzman [Fri, 5 Jan 2018 13:30:25 +0000 (14:30 +0100)] 
zscanner: unify buffer index boundary checks

8 years agozscanner: move auxiliary variables to specific places
Daniel Salzman [Fri, 5 Jan 2018 12:25:05 +0000 (13:25 +0100)] 
zscanner: move auxiliary variables to specific places

8 years agozscanner: fix uninitialized address buffer use upon EOF (oss-fuzz, msan)
Daniel Salzman [Fri, 5 Jan 2018 12:12:47 +0000 (13:12 +0100)] 
zscanner: fix uninitialized address buffer use upon EOF (oss-fuzz, msan)

8 years agozscanner: improve temporary address buffers use
Daniel Salzman [Thu, 4 Jan 2018 14:42:50 +0000 (15:42 +0100)] 
zscanner: improve temporary address buffers use

8 years agozscanner: add missing library prefix to public symbols
Daniel Salzman [Thu, 4 Jan 2018 10:29:30 +0000 (11:29 +0100)] 
zscanner: add missing library prefix to public symbols

8 years agokhost: fix typo in the help
Daniel Salzman [Wed, 3 Jan 2018 20:11:57 +0000 (21:11 +0100)] 
khost: fix typo in the help

Thanks to Taylor Stearns!

close #562

8 years agodoc: update copyright in the pregenerated man pages
Daniel Salzman [Wed, 3 Jan 2018 10:41:09 +0000 (11:41 +0100)] 
doc: update copyright in the pregenerated man pages

8 years agotests-fuzz: remove _libfuzzer from fuzz binaries
Jonathan Foote [Wed, 3 Jan 2018 00:08:15 +0000 (00:08 +0000)] 
tests-fuzz: remove _libfuzzer from fuzz binaries

8 years agomod-synthrecord: mute uninitialized warning
Daniel Salzman [Mon, 1 Jan 2018 19:12:12 +0000 (20:12 +0100)] 
mod-synthrecord: mute uninitialized warning

8 years agotests: add missing include
Daniel Salzman [Sun, 31 Dec 2017 20:01:10 +0000 (21:01 +0100)] 
tests: add missing include

8 years agoknotd: fix possible memory leaks (Coverity)
Daniel Salzman [Sun, 31 Dec 2017 19:36:58 +0000 (20:36 +0100)] 
knotd: fix possible memory leaks (Coverity)

8 years agodname: include cleanup
Daniel Salzman [Sun, 31 Dec 2017 19:16:04 +0000 (20:16 +0100)] 
dname: include cleanup

8 years agodname: remove old separators
Daniel Salzman [Sun, 31 Dec 2017 18:55:42 +0000 (19:55 +0100)] 
dname: remove old separators

8 years agomod-rrl: remove seeding (obsoleted by Siphash), tiny refactoring
Daniel Salzman [Tue, 19 Dec 2017 16:18:24 +0000 (17:18 +0100)] 
mod-rrl: remove seeding (obsoleted by Siphash), tiny refactoring

8 years agoMerge branch 'jfoote/knot-dns-master'
Daniel Salzman [Sat, 30 Dec 2017 10:18:03 +0000 (11:18 +0100)] 
Merge branch 'jfoote/knot-dns-master'

8 years agopass flags through for oss-fuzz
Jonathan Foote [Sat, 30 Dec 2017 02:33:01 +0000 (21:33 -0500)] 
pass flags through for oss-fuzz

8 years agoMerge branch 'synthrecord_multi' into 'master'
Daniel Salzman [Fri, 29 Dec 2017 11:09:10 +0000 (12:09 +0100)] 
Merge branch 'synthrecord_multi' into 'master'

Module synthrecord: allow multiple addresses in 'network' conf option

See merge request knot/knot-dns!861

8 years agomod-synthrecord: refactoring, optimization, missing checks
Daniel Salzman [Wed, 27 Dec 2017 21:50:32 +0000 (22:50 +0100)] 
mod-synthrecord: refactoring, optimization, missing checks

8 years agomod-synthrecord: allow multiple addresses in 'network' config option
Libor Peltan [Fri, 1 Dec 2017 14:48:49 +0000 (15:48 +0100)] 
mod-synthrecord: allow multiple addresses in 'network' config option

8 years agodnssec: allow zsk-lifetime=0 (infinity)
Libor Peltan [Thu, 28 Dec 2017 14:30:00 +0000 (15:30 +0100)] 
dnssec: allow zsk-lifetime=0 (infinity)

8 years agozone load: put re-sign into journal even for reload
Libor Peltan [Thu, 28 Dec 2017 12:18:19 +0000 (13:18 +0100)] 
zone load: put re-sign into journal even for reload

8 years agoconfigure: revert double newline, remove the 'make' hint
Daniel Salzman [Wed, 27 Dec 2017 19:50:49 +0000 (20:50 +0100)] 
configure: revert double newline, remove the 'make' hint

8 years agoMerge branch 'jfoote/knot-dns-master'
Daniel Salzman [Wed, 27 Dec 2017 19:18:52 +0000 (20:18 +0100)] 
Merge branch 'jfoote/knot-dns-master'

8 years agoInitial integration with google/oss-fuzz
Jonathan Foote [Sun, 24 Dec 2017 14:27:41 +0000 (09:27 -0500)] 
Initial integration with google/oss-fuzz

Implements initial support for continuous fuzzing with [google/oss-fuzz](http://github.com/google/oss-fuzz). Changes:

- Removes `--with-santize-coverage` config flag: the clang6 `-fsanitize=fuzzer-no-link` replaces this
- Adds `--with-oss-fuzz` config flag: links `-lFuzzingEngine` into fuzz targets
- Adds logic to `make check` that runs the fuzz targets with a single seed input to ensure they exit successfully

8 years agoMerge branch 'no_resign_nsec3' into 'master'
Daniel Salzman [Fri, 22 Dec 2017 13:49:50 +0000 (14:49 +0100)] 
Merge branch 'no_resign_nsec3' into 'master'

No resign nsec3

See merge request knot/knot-dns!866

8 years agotests: fixed no_resign nsec3 zone by omitting salt
Libor Peltan [Fri, 22 Dec 2017 12:46:16 +0000 (13:46 +0100)] 
tests: fixed no_resign nsec3 zone by omitting salt

8 years agoMerge branch 'keymgr_csk' into 'master'
Daniel Salzman [Fri, 22 Dec 2017 12:28:27 +0000 (13:28 +0100)] 
Merge branch 'keymgr_csk' into 'master'

keymgr: handling CSK

See merge request knot/knot-dns!863

8 years agokeymgr: handling CSK
Libor Peltan [Fri, 8 Dec 2017 14:20:31 +0000 (15:20 +0100)] 
keymgr: handling CSK

8 years agoRevert "tests: disable dnssec/no_resign for NSEC3"
Libor Peltan [Wed, 20 Dec 2017 11:54:39 +0000 (12:54 +0100)] 
Revert "tests: disable dnssec/no_resign for NSEC3"

This reverts commit 31c75de28166210211456151a66ee975f6fae33a.

8 years agokdig: simplified query creation
Mark Karpilovskij [Thu, 21 Dec 2017 13:42:55 +0000 (14:42 +0100)] 
kdig: simplified query creation

8 years agoMerge branch 'doxygen_improvements' into 'master'
Daniel Salzman [Thu, 21 Dec 2017 13:06:59 +0000 (14:06 +0100)] 
Merge branch 'doxygen_improvements' into 'master'

Doxygen improvements

Closes #544

See merge request knot/knot-dns!841

8 years agodoc: enhance doxygen documentation
Filip Široký [Mon, 2 Oct 2017 15:33:13 +0000 (17:33 +0200)] 
doc: enhance doxygen documentation

8 years agotests-extra: fixed test for the cookies module
Mark Karpilovskij [Thu, 21 Dec 2017 08:12:20 +0000 (09:12 +0100)] 
tests-extra: fixed test for the cookies module

8 years agodnssec: fix binary comparison if the size is zero
Libor Peltan [Wed, 20 Dec 2017 15:32:57 +0000 (16:32 +0100)] 
dnssec: fix binary comparison if the size is zero

8 years agotests-extra/cookies: add zone_wait to fix valgrind delays
Daniel Salzman [Wed, 20 Dec 2017 11:43:29 +0000 (12:43 +0100)] 
tests-extra/cookies: add zone_wait to fix valgrind delays

8 years agoMerge branch 'dns-cookies' into 'master'
Daniel Salzman [Tue, 19 Dec 2017 14:56:01 +0000 (15:56 +0100)] 
Merge branch 'dns-cookies' into 'master'

DNS cookies

Closes #505

See merge request knot/knot-dns!851

8 years agocookies: cooperation with the RRL module
Mark Karpilovskij [Fri, 15 Dec 2017 11:47:15 +0000 (12:47 +0100)] 
cookies: cooperation with the RRL module

8 years agocookies: python test for the cookies module
Mark Karpilovskij [Tue, 21 Nov 2017 15:13:55 +0000 (16:13 +0100)] 
cookies: python test for the cookies module

8 years agokdig: +cookie option
Mark Karpilovskij [Fri, 3 Nov 2017 15:04:25 +0000 (16:04 +0100)] 
kdig: +cookie option

8 years agomodules: add new DNS Cookies module
Mark Karpilovskij [Mon, 11 Sep 2017 12:02:35 +0000 (14:02 +0200)] 
modules: add new DNS Cookies module

8 years agolibknot: update libknot.h
Daniel Salzman [Fri, 15 Dec 2017 08:14:43 +0000 (09:14 +0100)] 
libknot: update libknot.h

8 years agotests/cookies: add missing include
Daniel Salzman [Thu, 14 Dec 2017 20:00:11 +0000 (21:00 +0100)] 
tests/cookies: add missing include

8 years agocookies: simplify interface
Daniel Salzman [Thu, 7 Dec 2017 14:01:07 +0000 (15:01 +0100)] 
cookies: simplify interface

8 years agosiphash: fix endianity, add more test vectors
Daniel Salzman [Tue, 12 Dec 2017 15:25:14 +0000 (16:25 +0100)] 
siphash: fix endianity, add more test vectors

8 years agosiphash: fix multiple update processing
Mark Karpilovskij [Tue, 12 Dec 2017 15:47:44 +0000 (16:47 +0100)] 
siphash: fix multiple update processing

8 years agoMerge branch 'edmonds/linux-capability-rewrite' into 'master'
Daniel Salzman [Tue, 12 Dec 2017 20:35:02 +0000 (21:35 +0100)] 
Merge branch 'edmonds/linux-capability-rewrite' into 'master'

Linux capabilities rewrite

See merge request knot/knot-dns!864

8 years agolibknot: remove unused binary operations
Daniel Salzman [Tue, 12 Dec 2017 14:52:01 +0000 (15:52 +0100)] 
libknot: remove unused binary operations

8 years agoudp-handler: Remove capability dropping code
Robert Edmonds [Wed, 6 Dec 2017 18:16:09 +0000 (13:16 -0500)] 
udp-handler: Remove capability dropping code

Capabilities should already have been dropped prior to threads being
spawned.

8 years agotcp-handler: Remove #include <cap-ng.h>
Robert Edmonds [Wed, 6 Dec 2017 18:14:37 +0000 (13:14 -0500)] 
tcp-handler: Remove #include <cap-ng.h>

This commit removes the conditional import of <cap-ng.h> in tcp-handler,
because there are no dependencies on the libcap-ng API in tcp-handler.c.

8 years agodthreads: Remove capability dropping code
Robert Edmonds [Wed, 6 Dec 2017 18:13:27 +0000 (13:13 -0500)] 
dthreads: Remove capability dropping code

Capabilities should have already been dropped prior to threads being
spawned.

8 years agoknotd: Simplify POSIX capabilities setup to drop all capabilities
Robert Edmonds [Wed, 6 Dec 2017 18:01:07 +0000 (13:01 -0500)] 
knotd: Simplify POSIX capabilities setup to drop all capabilities

This commit renames knotd's setup_capabilities() to drop_capabilities(),
and makes this function simply drop all capabilities.

The call to this function from main() was previously very early, prior
to sockets being bound. Since we most likely need to retain some
capabilities in order to bind to privileged sockets, this commit moves
the dropping of capabilities to be just after the dropping of
privileges, since we also need capabilities in order to change uid/gid.

Capabilities dropping is still performed prior to any daemonization or
spawning of threads, so the interaction of capabilities with threads and
child processes should be straight forward to analyze.

We also call drop_capabilities() prior to activating any global query
modules, so any threads spawned by those modules should see the same,
minimal set of privileges and capabilities that the main thread and
worker threads will see during runtime.

8 years agoknotd: Make global query module activation occur later
Robert Edmonds [Fri, 17 Nov 2017 20:20:07 +0000 (15:20 -0500)] 
knotd: Make global query module activation occur later

This commit moves the call to conf_activate_modules() out of the
set_config() function and into main() so that global query modules are
activated after privilege dropping has occurred.

This makes the global query modules match the zone query modules a
little better. The zone query modules are activated later, after
privilege dropping has occurred.

This ensures that if a global query module launches its own threads at
startup, those threads are spawned from a main thread that has already
performed privilege dropping.

8 years agodoc: described key rollover schemes
Libor Peltan [Fri, 8 Dec 2017 12:32:32 +0000 (13:32 +0100)] 
doc: described key rollover schemes

8 years agolog: fix inconsistent zone names in structured logs
Daniel Salzman [Wed, 6 Dec 2017 10:54:14 +0000 (11:54 +0100)] 
log: fix inconsistent zone names in structured logs

fixes #560

8 years agoMerge branch 'ttl_to_rrset'
Daniel Salzman [Tue, 5 Dec 2017 14:35:13 +0000 (15:35 +0100)] 
Merge branch 'ttl_to_rrset'

8 years agoknot: don't fail if TTL mismatch, unify TTL processing
Daniel Salzman [Mon, 4 Dec 2017 14:43:05 +0000 (15:43 +0100)] 
knot: don't fail if TTL mismatch, unify TTL processing

8 years agolibknot: rdataset cleanup
Daniel Salzman [Wed, 29 Nov 2017 13:04:33 +0000 (14:04 +0100)] 
libknot: rdataset cleanup

8 years agordata: remove superfluous getters/setters
Daniel Salzman [Mon, 6 Nov 2017 15:44:44 +0000 (16:44 +0100)] 
rdata: remove superfluous getters/setters

8 years agolibknot/rdata: make it public structure
Daniel Salzman [Fri, 3 Nov 2017 14:37:27 +0000 (15:37 +0100)] 
libknot/rdata: make it public structure

8 years agotests: adapt to rdata TTL to rrset migration
Daniel Salzman [Wed, 1 Nov 2017 19:46:17 +0000 (20:46 +0100)] 
tests: adapt to rdata TTL to rrset migration

8 years agolibknot: move TTL from rdata to rrset
Daniel Salzman [Mon, 30 Oct 2017 14:59:32 +0000 (15:59 +0100)] 
libknot: move TTL from rdata to rrset

8 years agozonedb: fix parameter name in the doc
Daniel Salzman [Tue, 5 Dec 2017 14:28:30 +0000 (15:28 +0100)] 
zonedb: fix parameter name in the doc

8 years agotests/semchecks: remove unused constants
Daniel Salzman [Mon, 4 Dec 2017 11:33:30 +0000 (12:33 +0100)] 
tests/semchecks: remove unused constants

8 years agoconfigure: require shared libraries for a shared module
Daniel Salzman [Mon, 4 Dec 2017 09:12:54 +0000 (10:12 +0100)] 
configure: require shared libraries for a shared module

8 years agotests/edns: fix possible NULL dereference (Coverity)
Daniel Salzman [Sun, 3 Dec 2017 20:02:05 +0000 (21:02 +0100)] 
tests/edns: fix possible NULL dereference (Coverity)

8 years agoCheck for packet reservation everywhere
Daniel Salzman [Sun, 3 Dec 2017 19:54:10 +0000 (20:54 +0100)] 
Check for packet reservation everywhere

8 years agopkt: tiny code cleanup
Daniel Salzman [Sat, 2 Dec 2017 20:36:22 +0000 (21:36 +0100)] 
pkt: tiny code cleanup

8 years agopkt: fix malformed outgoing transfer if big zone and TSIG
Daniel Salzman [Sat, 2 Dec 2017 19:23:14 +0000 (20:23 +0100)] 
pkt: fix malformed outgoing transfer if big zone and TSIG