]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
10 years agotests: run testserver at allocation
Grigorii Demidov [Wed, 5 Aug 2015 12:45:37 +0000 (14:45 +0200)] 
tests: run testserver at allocation

10 years agobuild: clean travis cache from installed binaries
Marek Vavruša [Wed, 5 Aug 2015 12:36:36 +0000 (14:36 +0200)] 
build: clean travis cache from installed binaries

this is a workaround, as we don't support `make uninstall` yet

10 years agobuild: install modules before checking
Marek Vavruša [Wed, 5 Aug 2015 12:27:00 +0000 (14:27 +0200)] 
build: install modules before checking

10 years agodaemon/engine: fixed Lua 5.2 compatibility
Marek Vavruša [Tue, 21 Jul 2015 12:41:57 +0000 (14:41 +0200)] 
daemon/engine: fixed Lua 5.2 compatibility

10 years agotests: unified test script
Grigorii Demidov [Wed, 5 Aug 2015 12:12:30 +0000 (14:12 +0200)] 
tests: unified test script

10 years agolayer/validate: signature checking moved to separate compilation unit
Karel Slany [Tue, 4 Aug 2015 13:57:22 +0000 (15:57 +0200)] 
layer/validate: signature checking moved to separate compilation unit

10 years agotests: do not inherit CFLAGS for libfaketime
Marek Vavruša [Tue, 4 Aug 2015 12:56:41 +0000 (14:56 +0200)] 
tests: do not inherit CFLAGS for libfaketime

10 years agoscripts: added cwrap socket_wrapper for Travis build
Marek Vavruša [Tue, 4 Aug 2015 12:51:58 +0000 (14:51 +0200)] 
scripts: added cwrap socket_wrapper for Travis build

10 years agolib/zonecut: filter private addresses from internet
Marek Vavruša [Tue, 4 Aug 2015 12:45:32 +0000 (14:45 +0200)] 
lib/zonecut: filter private addresses from internet

zonecut should be able to hold these for testing reasons (like private
root or zone cut), but it should filter out data from the internet
a new flag: QUERY_ALLOW_LOCAL allows for being more permissive, and
letting name server query local or private address ranges

10 years agobuild: do not require Python libraries now
Marek Vavruša [Tue, 4 Aug 2015 12:31:54 +0000 (14:31 +0200)] 
build: do not require Python libraries now

10 years agolayer/validate: moved some code into separate modules
Karel Slany [Tue, 4 Aug 2015 12:19:45 +0000 (14:19 +0200)] 
layer/validate: moved some code into separate modules

10 years agotests: fixed qname minimisation tests
Marek Vavruša [Tue, 4 Aug 2015 12:17:59 +0000 (14:17 +0200)] 
tests: fixed qname minimisation tests

10 years agodaemon/engine: added option() for setting context options
Marek Vavruša [Tue, 4 Aug 2015 12:17:45 +0000 (14:17 +0200)] 
daemon/engine: added option() for setting context options

this is not documented atm as it is going to change for a module with
declarative interface and less cryptic names

10 years agotest: cleanup of old files
Marek Vavruša [Tue, 4 Aug 2015 11:40:50 +0000 (13:40 +0200)] 
test: cleanup of old files

10 years agotests: added README.rst, libfaketime as a git submodule, fixed depends
Marek Vavruša [Tue, 4 Aug 2015 11:38:08 +0000 (13:38 +0200)] 
tests: added README.rst, libfaketime as a git submodule, fixed depends

10 years agoMerge branch 'master' into cache-rrsig-wip
Karel Slany [Tue, 4 Aug 2015 10:46:09 +0000 (12:46 +0200)] 
Merge branch 'master' into cache-rrsig-wip

10 years agolayer/validate: basic NSEC exact match non-existence check
Karel Slany [Tue, 4 Aug 2015 10:34:38 +0000 (12:34 +0200)] 
layer/validate: basic NSEC exact match non-existence check

10 years agotests: libfaketime.dylib were added
Grigorii Demidov [Tue, 4 Aug 2015 09:25:12 +0000 (11:25 +0200)] 
tests: libfaketime.dylib were added

10 years agotests: single-threaded version
Grigorii Demidov [Tue, 4 Aug 2015 08:53:32 +0000 (10:53 +0200)] 
tests: single-threaded version

10 years agolib: build compat
Marek Vavruša [Mon, 3 Aug 2015 16:05:19 +0000 (18:05 +0200)] 
lib: build compat

10 years agolib/resolve: no pointless cleanup (mempool allocated)
Marek Vavruša [Mon, 3 Aug 2015 15:45:53 +0000 (17:45 +0200)] 
lib/resolve: no pointless cleanup (mempool allocated)

10 years agoMerge branch 'lua-fastcall'
Marek Vavruša [Mon, 3 Aug 2015 15:08:28 +0000 (17:08 +0200)] 
Merge branch 'lua-fastcall'

10 years agodaemon: cleanup
Marek Vavruša [Mon, 3 Aug 2015 15:08:15 +0000 (17:08 +0200)] 
daemon: cleanup

10 years agolayer/validate: Signed data reconstruction detects wild cards.
Karel Slany [Mon, 3 Aug 2015 13:55:20 +0000 (15:55 +0200)] 
layer/validate: Signed data reconstruction detects wild cards.

10 years agobuild: disabled default debug messages, optional with -DWITH_DEBUG
Marek Vavruša [Mon, 3 Aug 2015 12:35:07 +0000 (14:35 +0200)] 
build: disabled default debug messages, optional with -DWITH_DEBUG

this is a small step for me, but a huge step for resolver

10 years agolib/utils: common integer time diff (msecs)
Marek Vavruša [Mon, 3 Aug 2015 12:34:23 +0000 (14:34 +0200)] 
lib/utils: common integer time diff (msecs)

based on _BSD_SOURCE timersub macro

10 years agolib/resolve: count early finished requests as done
Marek Vavruša [Mon, 3 Aug 2015 12:33:00 +0000 (14:33 +0200)] 
lib/resolve: count early finished requests as done

this fixes stats for canceled/blocked or forwarded queries without
started name resolution

10 years agobuild: build LuaJIT by default
Marek Vavruša [Mon, 3 Aug 2015 11:44:18 +0000 (13:44 +0200)] 
build: build LuaJIT by default

this also fixes static linking missing a math library

10 years agomodules/block: reworked for new FFI bindings
Marek Vavruša [Mon, 3 Aug 2015 02:00:26 +0000 (04:00 +0200)] 
modules/block: reworked for new FFI bindings

10 years agodaemon/bindings: replaced old Lua/C bindings with LuaJIT FFI
Marek Vavruša [Mon, 3 Aug 2015 02:00:01 +0000 (04:00 +0200)] 
daemon/bindings: replaced old Lua/C bindings with LuaJIT FFI

this is a first step of leaning towards LuaJIT.
the FFI bindings are much faster, simpler and don’t abort traces

daemon core scripting engine is still going to support interpreted Lua, but modules requiring library bindings (such as ‘block’) will require LuaJIT for FFI

10 years agodaemon/ffimodule: simplified pointer to layer capi
Marek Vavruša [Sun, 2 Aug 2015 21:28:42 +0000 (23:28 +0200)] 
daemon/ffimodule: simplified pointer to layer capi

previously the pointer for C layer API was stored in Lua, it is stored directly in module data now for fast access. this doesn’t disturb VM when processing requests.

10 years agolib/resolve: use begin layer for resolution start
Marek Vavruša [Sun, 2 Aug 2015 21:27:21 +0000 (23:27 +0200)] 
lib/resolve: use begin layer for resolution start

this provides a useful callback for per-request operations that can’t wait until the query is completed (e.g. blocking or logging started queries)

10 years agotests: libfaketime config generation
Grigorii Demidov [Mon, 3 Aug 2015 07:30:27 +0000 (09:30 +0200)] 
tests: libfaketime config generation

10 years agomodules/block: comparison without copying
Marek Vavruša [Sat, 1 Aug 2015 17:53:05 +0000 (19:53 +0200)] 
modules/block: comparison without copying

10 years agodaemon: more aggressive Lua GC, forced GC steps
Marek Vavruša [Sat, 1 Aug 2015 17:51:13 +0000 (19:51 +0200)] 
daemon: more aggressive Lua GC, forced GC steps

the memory could go through the roof with sufficiently high pps, GC now runs at 4x the speed of allocations and doesn’t wait for increase, some callbacks also perform full collection cycle on completion

10 years agomodules/block: cleanup, faster matching
Marek Vavruša [Sat, 1 Aug 2015 16:07:25 +0000 (18:07 +0200)] 
modules/block: cleanup, faster matching

10 years agodaemon/ffimodule: call Lua modules unless in FAIL state
Marek Vavruša [Sat, 1 Aug 2015 16:07:03 +0000 (18:07 +0200)] 
daemon/ffimodule: call Lua modules unless in FAIL state

10 years agodaemon/engine: priority prefix ‘<‘ for modules
Marek Vavruša [Sat, 1 Aug 2015 16:06:32 +0000 (18:06 +0200)] 
daemon/engine: priority prefix ‘<‘ for modules

if the configured modules name is prefixed with ‘<‘ it takes precedence before all others,
e.g. modules = { ‘hints’, ‘<block’ }
means that the ‘hints’ module will be executed in-order (last), and ‘block’ module layer will be called as first in query processing

10 years agodaemon/ffimodule: store layer callbacks in registry
Marek Vavruša [Fri, 31 Jul 2015 16:15:03 +0000 (18:15 +0200)] 
daemon/ffimodule: store layer callbacks in registry

calling a Lua layer now takes only O(1) registry lookup and
pushing the right parameters

10 years agotests: raw query
Grigorii Demidov [Fri, 31 Jul 2015 12:59:37 +0000 (14:59 +0200)] 
tests: raw query

10 years agotests: libfaketime search
Grigorii Demidov [Fri, 31 Jul 2015 09:36:18 +0000 (11:36 +0200)] 
tests: libfaketime search

10 years agotests: libfaketime search
Grigorii Demidov [Fri, 31 Jul 2015 09:31:10 +0000 (11:31 +0200)] 
tests: libfaketime search

10 years agotests/integration: fixed missing cache in config
Marek Vavruša [Thu, 30 Jul 2015 17:55:33 +0000 (19:55 +0200)] 
tests/integration: fixed missing cache in config

10 years agotests/integration: added libfaketime support, fixes TIME_PASSES
Marek Vavruša [Thu, 30 Jul 2015 17:55:18 +0000 (19:55 +0200)] 
tests/integration: added libfaketime support, fixes TIME_PASSES

this needs more work to find the correct libfaketime library
(newer version is required for FAKETIME_TIMESTAMP_FILE)
we may bundle it as it's small

10 years agolayer/validate: layer is issuing requests for missing DS records
Karel Slany [Thu, 30 Jul 2015 14:06:04 +0000 (16:06 +0200)] 
layer/validate: layer is issuing requests for missing DS records

10 years agotests/validate: fixed syntax error
Karel Slany [Thu, 30 Jul 2015 13:43:43 +0000 (15:43 +0200)] 
tests/validate: fixed syntax error

10 years agotests: using cwrap
Grigorii Demidov [Thu, 30 Jul 2015 11:35:17 +0000 (13:35 +0200)] 
tests: using cwrap

10 years agotests: using cwrap
Grigorii Demidov [Thu, 30 Jul 2015 10:57:08 +0000 (12:57 +0200)] 
tests: using cwrap

10 years agolayer/validate: configured trust anchor is automatically added when missing
Karel Slany [Tue, 28 Jul 2015 12:17:49 +0000 (14:17 +0200)] 
layer/validate: configured trust anchor is automatically added when missing

10 years agolib/zonecut: implemented function for trust anchor copying
Karel Slany [Tue, 28 Jul 2015 09:25:47 +0000 (11:25 +0200)] 
lib/zonecut: implemented function for trust anchor copying

10 years agotest/validate: changed result to meet the obtained value
Karel Slany [Fri, 24 Jul 2015 10:34:25 +0000 (12:34 +0200)] 
test/validate: changed result to meet the obtained value

10 years agolayer/validate: resolver queries for missing DNSKEYS
Karel Slany [Fri, 24 Jul 2015 10:32:52 +0000 (12:32 +0200)] 
layer/validate: resolver queries for missing DNSKEYS

10 years agolayer/validate: removed the addition of DNSKEY query as it didn't work
Karel Slany [Thu, 23 Jul 2015 16:52:02 +0000 (18:52 +0200)] 
layer/validate: removed the addition of DNSKEY query as it didn't work

10 years agotests/validate: added DNSKEY for cz.
Karel Slany [Thu, 23 Jul 2015 16:50:17 +0000 (18:50 +0200)] 
tests/validate: added DNSKEY for cz.

Updated whole scenario because of conflicting timestamps.

10 years agotests/test_integration: missing global OPT
Marek Vavruša [Thu, 23 Jul 2015 15:17:26 +0000 (17:17 +0200)] 
tests/test_integration: missing global OPT

10 years agolib/resolve: set DO=1 option too early
Marek Vavruša [Thu, 23 Jul 2015 15:04:27 +0000 (17:04 +0200)] 
lib/resolve: set DO=1 option too early

10 years agoMerge branch 'master' into cache-rrsig-wip
Marek Vavruša [Thu, 23 Jul 2015 14:54:41 +0000 (16:54 +0200)] 
Merge branch 'master' into cache-rrsig-wip

Conflicts:
lib/layer/rrcache.c
lib/resolve.c
lib/resolve.h
lib/rplan.h
lib/zonecut.c
modules/stats/stats.c

10 years agodaemon/engine: fixed Lua 5.2 compatibility
Marek Vavruša [Tue, 21 Jul 2015 12:41:57 +0000 (14:41 +0200)] 
daemon/engine: fixed Lua 5.2 compatibility

10 years agolayer/validate: DNSKEY query is planned after delegation update
Karel Slany [Thu, 23 Jul 2015 14:19:08 +0000 (16:19 +0200)] 
layer/validate: DNSKEY query is planned after delegation update

10 years agolib/zonecut: DNSKEY must not be present as long as the trust anchor exists
Karel Slany [Thu, 23 Jul 2015 14:16:37 +0000 (16:16 +0200)] 
lib/zonecut: DNSKEY must not be present as long as the trust anchor exists

10 years agolayer/validate: implemented update_delegation()
Karel Slany [Thu, 23 Jul 2015 14:11:11 +0000 (16:11 +0200)] 
layer/validate: implemented update_delegation()

10 years agolayer/validate: fixed bug in kr_rrset_validate_with_key()
Karel Slany [Thu, 23 Jul 2015 11:30:22 +0000 (13:30 +0200)] 
layer/validate: fixed bug in kr_rrset_validate_with_key()

10 years agolayer/validate: excluding authority NS records from validation
Karel Slany [Thu, 23 Jul 2015 11:27:02 +0000 (13:27 +0200)] 
layer/validate: excluding authority NS records from validation

10 years agolib/zonecut: kr_zonecut_set() does not reset TA and DNSKEY
Karel Slany [Wed, 22 Jul 2015 17:30:37 +0000 (19:30 +0200)] 
lib/zonecut: kr_zonecut_set() does not reset TA and DNSKEY

The trust anchor and keys are not changed in order not to disrupt packet
validation.

10 years agolib/resolve: use maximum unfragmented UDP payload for iter as default
Marek Vavruša [Wed, 22 Jul 2015 10:47:20 +0000 (12:47 +0200)] 
lib/resolve: use maximum unfragmented UDP payload for iter as default

this is a saner default for large answers. instead of waiting for
probably lost/thrown away fragmented packet, do the query over TCP
instead

10 years agodaemon/engine: build OPT RR in advance
Marek Vavruša [Wed, 22 Jul 2015 10:45:03 +0000 (12:45 +0200)] 
daemon/engine: build OPT RR in advance

10 years agolayer/validate: fixed error in validate_section()
Karel Slany [Wed, 22 Jul 2015 10:38:44 +0000 (12:38 +0200)] 
layer/validate: fixed error in validate_section()

All RRSets in section must be signed properly. (Currently no checking for
non-authoritative RRSets is implemented.)

10 years agolayer/rrcache: only RRSIGs are stored in special cache
Karel Slany [Wed, 22 Jul 2015 10:35:59 +0000 (12:35 +0200)] 
layer/rrcache: only RRSIGs are stored in special cache

10 years agotravis: changed knot commit because of bugs in functionality
Karel Slany [Wed, 22 Jul 2015 10:32:45 +0000 (12:32 +0200)] 
travis: changed knot commit because of bugs in functionality

10 years agolib/zonecut: fixed bug when materialising cache content
Karel Slany [Wed, 22 Jul 2015 10:30:33 +0000 (12:30 +0200)] 
lib/zonecut: fixed bug when materialising cache content

10 years agolib/resolve: fixed qry flags clearing on NS switch
Marek Vavruša [Wed, 22 Jul 2015 08:39:25 +0000 (10:39 +0200)] 
lib/resolve: fixed qry flags clearing on NS switch

10 years agodaemon/worker: per-pkt pools
Marek Vavruša [Tue, 21 Jul 2015 16:00:25 +0000 (18:00 +0200)] 
daemon/worker: per-pkt pools

10 years agolib/zonecut: check if the label hopping failed
Marek Vavruša [Tue, 21 Jul 2015 14:20:14 +0000 (16:20 +0200)] 
lib/zonecut: check if the label hopping failed

10 years agodaemon/main: fixed CID#126582, CID#126580
Marek Vavruša [Tue, 21 Jul 2015 12:45:49 +0000 (14:45 +0200)] 
daemon/main: fixed CID#126582, CID#126580

10 years agodaemon/engine: fixed Lua 5.2 compatibility
Marek Vavruša [Tue, 21 Jul 2015 12:41:57 +0000 (14:41 +0200)] 
daemon/engine: fixed Lua 5.2 compatibility

10 years agobuild: fixed .travis.yml
Marek Vavruša [Tue, 21 Jul 2015 12:33:08 +0000 (14:33 +0200)] 
build: fixed .travis.yml

10 years agodaemon/main: added check for dupfd
Marek Vavruša [Tue, 21 Jul 2015 12:29:54 +0000 (14:29 +0200)] 
daemon/main: added check for dupfd

fixed CID#125374

10 years agoMerge branch 'predict'
Marek Vavruša [Tue, 21 Jul 2015 12:23:21 +0000 (14:23 +0200)] 
Merge branch 'predict'

10 years agolayer/validate: validate_records()
Karel Slany [Tue, 21 Jul 2015 11:53:47 +0000 (13:53 +0200)] 
layer/validate: validate_records()

10 years agomodules/stats: sample all expiring records
Marek Vavruša [Mon, 20 Jul 2015 22:46:53 +0000 (00:46 +0200)] 
modules/stats: sample all expiring records

10 years agolib/resolve: overlay is not copied on startup
Marek Vavruša [Mon, 20 Jul 2015 22:42:48 +0000 (00:42 +0200)] 
lib/resolve: overlay is not copied on startup

this fixes a problem when a module was removed, but pending
queries referenced it, causing a crash. usually when the
server was busy and a module was unloaded.
as we don’t need to copy layers at all, they’re just iterated
from the array of modules using a macro

10 years agolayer/validate: implemented kr_rrset_validate()
Karel Slany [Mon, 20 Jul 2015 13:54:17 +0000 (15:54 +0200)] 
layer/validate: implemented kr_rrset_validate()

10 years agomodules/predict: turn off prediction by setting empty period
Marek Vavruša [Sun, 19 Jul 2015 21:39:26 +0000 (23:39 +0200)] 
modules/predict: turn off prediction by setting empty period

10 years agomodules/predict: cleanup
Marek Vavruša [Sun, 19 Jul 2015 12:23:26 +0000 (14:23 +0200)] 
modules/predict: cleanup

10 years agogeneric/lru: 16bit refcounts/length
Marek Vavruša [Sun, 19 Jul 2015 12:23:14 +0000 (14:23 +0200)] 
generic/lru: 16bit refcounts/length

10 years agotests: fixed rplan tests
Marek Vavruša [Sat, 18 Jul 2015 23:56:12 +0000 (01:56 +0200)] 
tests: fixed rplan tests

10 years agolib/rplan: ability to refetch expiring queries
Marek Vavruša [Sat, 18 Jul 2015 22:56:03 +0000 (00:56 +0200)] 
lib/rplan: ability to refetch expiring queries

10 years agolayer/rrcache: minttl 5s default
Marek Vavruša [Sat, 18 Jul 2015 22:55:48 +0000 (00:55 +0200)] 
layer/rrcache: minttl 5s default

10 years agolib/resolve: per-request options, worker.resolve() support
Marek Vavruša [Sat, 18 Jul 2015 22:55:29 +0000 (00:55 +0200)] 
lib/resolve: per-request options, worker.resolve() support

10 years agomodules/predict: cleaned up implementation, doc
Marek Vavruša [Sat, 18 Jul 2015 22:53:25 +0000 (00:53 +0200)] 
modules/predict: cleaned up implementation, doc

10 years agomodules/prefetch: frequent sampling, fetch iteration
Marek Vavruša [Sat, 18 Jul 2015 11:57:15 +0000 (13:57 +0200)] 
modules/prefetch: frequent sampling, fetch iteration

10 years agomodules/prefetch: 5x multisampling, 20% jitter
Marek Vavruša [Fri, 17 Jul 2015 22:10:29 +0000 (00:10 +0200)] 
modules/prefetch: 5x multisampling, 20% jitter

10 years agomodules/prefetch: multisampling, expiring prefetch, configurable window
Marek Vavruša [Fri, 17 Jul 2015 16:19:29 +0000 (18:19 +0200)] 
modules/prefetch: multisampling, expiring prefetch, configurable window

10 years agomodules/stats: log frequent and expiring queries
Marek Vavruša [Fri, 17 Jul 2015 16:17:03 +0000 (18:17 +0200)] 
modules/stats: log frequent and expiring queries

10 years agomodules/prefetch: wip
Marek Vavruša [Wed, 15 Jul 2015 08:21:44 +0000 (10:21 +0200)] 
modules/prefetch: wip

10 years agolib/resolve: fixed TCP retransmit
Marek Vavruša [Fri, 17 Jul 2015 14:57:20 +0000 (16:57 +0200)] 
lib/resolve: fixed TCP retransmit

10 years agodaemon/worker: cleanup ioreq recycling, correct checking of ioreq validity
Marek Vavruša [Fri, 17 Jul 2015 14:57:07 +0000 (16:57 +0200)] 
daemon/worker: cleanup ioreq recycling, correct checking of ioreq validity

before only current I/O handle was tracked for each subrequest, but the
requests may have outlived it (connect request isn't cancelable for
example), if such request terminated after the request was finished,
it checked the address of potentially stale task

10 years agoAlways change results from travis to gitter.im since it doesn't clutter main chat
Ondřej Surý [Fri, 17 Jul 2015 09:38:22 +0000 (11:38 +0200)] 
Always change results from travis to gitter.im since it doesn't clutter main chat

10 years agoAdded Gitter badge
The Gitter Badger [Thu, 16 Jul 2015 14:51:46 +0000 (14:51 +0000)] 
Added Gitter badge

10 years agoCall the webhook only on change/change
Ondřej Surý [Thu, 16 Jul 2015 15:12:10 +0000 (17:12 +0200)] 
Call the webhook only on change/change