]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
9 years agoallow control socket to be specified by systemd supervision
Daniel Kahn Gillmor [Sun, 17 Jul 2016 08:17:42 +0000 (10:17 +0200)] 
allow control socket to be specified by systemd supervision

When run under systemd supervision, accept a control socket from the
supervisor if the name supplied is "control".

See FileDescriptorName= in systemd.socket(5) for more details.

9 years agomodules: deprecated tinyweb, superseded by http
Marek Vavrusa [Wed, 20 Jul 2016 16:52:21 +0000 (09:52 -0700)] 
modules: deprecated tinyweb, superseded by http

this module is superseded by http module, removing

9 years agoRevert default EDNS0 buffer size to 4096
Ondřej Surý [Wed, 20 Jul 2016 12:28:50 +0000 (14:28 +0200)] 
Revert default EDNS0 buffer size to 4096

9 years agolayer/rrcache: added check for cname chain loops
Marek Vavrusa [Wed, 20 Jul 2016 05:30:22 +0000 (22:30 -0700)] 
layer/rrcache: added check for cname chain loops

iterator already checks this and also chain length,
however these checks were omitted in the rrcache
CNAME unroll loop

9 years agodaemon: lower minimum allowed edns bufsize to 512
Marek Vavrusa [Wed, 20 Jul 2016 04:36:20 +0000 (21:36 -0700)] 
daemon: lower minimum allowed edns bufsize to 512

there are cases where switches or middle-boxes
block DNS/UDP answers >512 octets completely,
this gives user an option to mitigate that.
however, there are authoritatives serving
large answers that don't support TCP, so it's
a compromise as always

9 years agodaemon: always refetch CNAME target in 'strict' mode
Marek Vavrusa [Mon, 18 Jul 2016 04:02:02 +0000 (21:02 -0700)] 
daemon: always refetch CNAME target in 'strict' mode

in normal mode, only final CNAME target is refetched, but
not intermediate CNAMEs. intermediate CNAMEs are *never* cached,
but they are used to get final name for requery. in strict mode now,
every CNAME target is explicitly fetched even if it's a chained CNAME.

9 years agomodules/http: limit graph to 1000 datapoints
Marek Vavrusa [Wed, 13 Jul 2016 16:35:36 +0000 (11:35 -0500)] 
modules/http: limit graph to 1000 datapoints

9 years agoMerge branch 'doc-cleanup' into 'master'
Ondřej Surý [Sun, 17 Jul 2016 18:37:43 +0000 (20:37 +0200)] 
Merge branch 'doc-cleanup' into 'master'

more kresd.8 cleanup

See merge request !35

9 years agoMerge branch 'help-the-emacs-users' into 'master'
Ondřej Surý [Sun, 17 Jul 2016 18:37:11 +0000 (20:37 +0200)] 
Merge branch 'help-the-emacs-users' into 'master'

emacs turds should never make it into git

See merge request !34

9 years agomore kresd.8 cleanup
Daniel Kahn Gillmor [Sun, 17 Jul 2016 11:12:16 +0000 (13:12 +0200)] 
more kresd.8 cleanup

9 years agoemacs turds should never make it into git
Daniel Kahn Gillmor [Sun, 17 Jul 2016 10:49:46 +0000 (12:49 +0200)] 
emacs turds should never make it into git

9 years agoAdd some autogenerated files to .gitignore
Ondřej Surý [Sat, 16 Jul 2016 14:46:46 +0000 (16:46 +0200)] 
Add some autogenerated files to .gitignore

9 years agoMerge branch 'doc-cleanup' into 'master'
Ondřej Surý [Sat, 16 Jul 2016 14:41:12 +0000 (16:41 +0200)] 
Merge branch 'doc-cleanup' into 'master'

Doc cleanup

This is a simple cleanup of documentation

See merge request !33

9 years agoavoid warning from nroff
Daniel Kahn Gillmor [Sat, 16 Jul 2016 14:22:13 +0000 (16:22 +0200)] 
avoid warning from nroff

9 years agodocument the long options for kresd
Daniel Kahn Gillmor [Sat, 16 Jul 2016 13:45:00 +0000 (15:45 +0200)] 
document the long options for kresd

9 years agomove URLs from http to https where supported
Daniel Kahn Gillmor [Sat, 16 Jul 2016 14:05:46 +0000 (16:05 +0200)] 
move URLs from http to https where supported

9 years agowww.gnu.org prefers https
Daniel Kahn Gillmor [Sat, 16 Jul 2016 12:06:40 +0000 (14:06 +0200)] 
www.gnu.org prefers https

9 years agodoc/build: mention geoip dependency
Vladimír Čunát [Wed, 13 Jul 2016 10:39:36 +0000 (12:39 +0200)] 
doc/build: mention geoip dependency

9 years agodoc: small issues
Marek Vavrusa [Tue, 12 Jul 2016 17:01:45 +0000 (12:01 -0500)] 
doc: small issues

9 years agolib/layer: avoiding usage of libknot's layer.h
Grigorii Demidov [Fri, 8 Jul 2016 11:38:31 +0000 (13:38 +0200)] 
lib/layer: avoiding usage of libknot's layer.h

9 years agodoc: extend license list in http module
Vladimír Čunát [Mon, 11 Jul 2016 15:45:50 +0000 (17:45 +0200)] 
doc: extend license list in http module

Suggested by @ondrej.

9 years agodoc: fix nitpicks
Vladimír Čunát [Mon, 4 Jul 2016 10:03:41 +0000 (12:03 +0200)] 
doc: fix nitpicks

9 years agodaemon/network: allow listening on part of interfaces
Marek Vavrusa [Wed, 6 Jul 2016 17:43:32 +0000 (10:43 -0700)] 
daemon/network: allow listening on part of interfaces

when whole interface is passed and some of the addresses are not bindable,
the daemon will print them, but will continue to bind to the rest of the
addresses

fixes #80

9 years agomodules: http, graphite, policy, daf support map()
Marek Vavrusa [Tue, 5 Jul 2016 07:35:15 +0000 (00:35 -0700)] 
modules: http, graphite, policy, daf support map()

all relevant modules now support running in
forked mode and polling workers for information.
for example graphite module can poll stats from
all workers and then aggregate before sending,
or HTTP module can run on the process group leader
only and then poll workers for information.

9 years agodaemon: worker publishes usage information
Marek Vavrusa [Tue, 5 Jul 2016 07:33:24 +0000 (00:33 -0700)] 
daemon: worker publishes usage information

9 years agodaemon: workers are interconnected with IPC pipes
Marek Vavrusa [Tue, 5 Jul 2016 07:32:42 +0000 (00:32 -0700)] 
daemon: workers are interconnected with IPC pipes

forks are connected with IPC pipes to process
group leader and can execute expressions on its
behalf. so running commands over all workers
is easy now:

> hostname() -- single
localhost

> map 'hostname()' -- all
localhost
localhost
localhost

9 years agodaemon/engine: fixed unpacking of POD JSON vars
Marek Vavrusa [Tue, 5 Jul 2016 07:30:02 +0000 (00:30 -0700)] 
daemon/engine: fixed unpacking of POD JSON vars

9 years agomodules/daf: RESTful API documentation, cleanup
Marek Vavrusa [Sat, 25 Jun 2016 20:11:57 +0000 (13:11 -0700)] 
modules/daf: RESTful API documentation, cleanup

9 years agomodules/http: cleanup
Marek Vavrusa [Sat, 25 Jun 2016 20:12:08 +0000 (13:12 -0700)] 
modules/http: cleanup

9 years agomodules/http: some metrics are treated as gauges
Marek Vavrusa [Fri, 24 Jun 2016 23:23:56 +0000 (16:23 -0700)] 
modules/http: some metrics are treated as gauges

9 years agomodules/http: reworked metrics interface
Marek Vavrusa [Fri, 24 Jun 2016 23:23:30 +0000 (16:23 -0700)] 
modules/http: reworked metrics interface

* the dygraphs are now leveraged for drawing as
  canvas based drawing is much faster than
  svg based rickshaw
* refreshed theme and layouts, code cleanup

9 years agotests: synced deckard
Marek Vavrusa [Thu, 23 Jun 2016 06:30:20 +0000 (23:30 -0700)] 
tests: synced deckard

9 years agodaemon/worker: reverted inbound deduping
Marek Vavrusa [Thu, 23 Jun 2016 06:12:38 +0000 (23:12 -0700)] 
daemon/worker: reverted inbound deduping

the e638f9fb6e5aa20e090ebfa52255abc36a619bfd introduced deduplication
for queries over UDP, the idea is to track same queries and answer
only once, however that introduces both constant processing and
memory overhead and could break clients who count packet loss
by queries sent/received. disabling for now.

9 years agomodules/http: keep history of last 120 datapoints
Marek Vavrusa [Thu, 23 Jun 2016 05:48:31 +0000 (22:48 -0700)] 
modules/http: keep history of last 120 datapoints

* the http module collects stats snapshots on one
  central location and then streams it to clients
* history of last 120 datapoints (at least 2min)
  is kept for convenience

9 years agomodules/daf: cleanup, proper ws closing
Marek Vavrusa [Tue, 21 Jun 2016 07:04:15 +0000 (00:04 -0700)] 
modules/daf: cleanup, proper ws closing

9 years agomodules/policy: doc update, compat with 1.0 api
Marek Vavrusa [Fri, 17 Jun 2016 05:45:21 +0000 (22:45 -0700)] 
modules/policy: doc update, compat with 1.0 api

9 years agodoc: cleanup
Marek Vavrusa [Thu, 16 Jun 2016 19:55:35 +0000 (12:55 -0700)] 
doc: cleanup

9 years agomodules/daf: new interface version, allows mirror
Marek Vavrusa [Thu, 16 Jun 2016 17:52:53 +0000 (10:52 -0700)] 
modules/daf: new interface version, allows mirror

9 years agomodules/http: allow reason next to the error code
Marek Vavrusa [Thu, 16 Jun 2016 17:52:18 +0000 (10:52 -0700)] 
modules/http: allow reason next to the error code

9 years agomodules/policy: chain rules, postrules, mirror, doc
Marek Vavrusa [Thu, 16 Jun 2016 17:50:41 +0000 (10:50 -0700)] 
modules/policy: chain rules, postrules, mirror, doc

* rules may now be chained if the rule action
  doesn't return next state. in this case, next
  matching rule will be executed. this is useful
  for snooping actions
* rules now may be paused/deleted
* implemented a new action for query mirroring to
  given destination

9 years agodaemon/worker: track query in BEGIN and dst addr
Marek Vavrusa [Thu, 16 Jun 2016 17:39:07 +0000 (10:39 -0700)] 
daemon/worker: track query in BEGIN and dst addr

* in the begin() layer, the incoming query is
  exposed as req->qsource.packet, it is invalidated
  after begin() and should not be modified
* the destination address (local interface) is
  also tracked for filtering purposes

9 years agomodules/daf: a functional web interface
Marek Vavrusa [Mon, 13 Jun 2016 17:21:26 +0000 (10:21 -0700)] 
modules/daf: a functional web interface

the interface has a declarative rule builder that
assists in building and validating rules, as well
as seeing how much traffic do they match

9 years agomodules/http: new bootstrap3 based web interface
Marek Vavrusa [Mon, 13 Jun 2016 17:18:28 +0000 (10:18 -0700)] 
modules/http: new bootstrap3 based web interface

this is going to be the building block for visual
ui as it provides many useful semantic objects and
style classes. since we already provide the
snippet system, it's possible to add subpages to
the ui without hacking everything inside

9 years agomodules/http: added safe stream handler, doc
Marek Vavrusa [Mon, 13 Jun 2016 17:13:08 +0000 (10:13 -0700)] 
modules/http: added safe stream handler, doc

9 years agomodules/policy: unique ids for rules, match counter
Marek Vavrusa [Mon, 13 Jun 2016 16:56:13 +0000 (09:56 -0700)] 
modules/policy: unique ids for rules, match counter

these are used as a handle to patch/modify rules
later in their lifetime, also added a rule match
counter to find out which rules match inbound
traffic

9 years agomodules/http: patched h2_stream
Marek Vavrusa [Mon, 13 Jun 2016 16:53:58 +0000 (09:53 -0700)] 
modules/http: patched h2_stream

9 years agodaemon/engine: fixed json pack for str-encoded int
Marek Vavrusa [Mon, 13 Jun 2016 16:53:11 +0000 (09:53 -0700)] 
daemon/engine: fixed json pack for str-encoded int

string encoded integers are treated as possible
numbers, so a more strict typecheck is needed

9 years agomodules/daf: support for first firewall rules
Marek Vavrusa [Thu, 9 Jun 2016 07:42:59 +0000 (00:42 -0700)] 
modules/daf: support for first firewall rules

the format of rules resembles libpcap filters,
but it also requires action that should be taken
when the filter(s) match.

the action can be anything the policy module
supports, and the filters can be both policy
module or view module based (so it's possible to
filter on source address and packet contents at
the same time)

9 years agomodules/policy: now can reroute/rewrite responses
Marek Vavrusa [Thu, 9 Jun 2016 07:38:26 +0000 (00:38 -0700)] 
modules/policy: now can reroute/rewrite responses

* REROUTE action rewrites all addresses in
  final answers matching given subnet to
  addresses in target subnet (or single address)
* REWRITE action rewrites rdata in final answers
  matching given owner and type (only works on
  A/AAAA now)

9 years agomodules/daf: trivial rule compiler implemented
Marek Vavrusa [Wed, 8 Jun 2016 07:26:13 +0000 (00:26 -0700)] 
modules/daf: trivial rule compiler implemented

the fw can now parse simple rules such as:
'qname = *.example.com AND src = 127.0.0.1/8 deny'

and turn it into filter actions.

this is a building block for custom firewall rules
based on query/answer contents that leverage
existing policy/view modules, but turn those into
easier to write (and eventually persistent) rule
sets

9 years agomodules/stats: stats.upstreams()
Marek Vavrusa [Wed, 8 Jun 2016 07:23:18 +0000 (00:23 -0700)] 
modules/stats: stats.upstreams()

the new function returns a list of upstream
authoritative servers that resolver contacted
recently and the RTT information for them,
this is useful for sampling information about
the quality of outbound connections for speculative
keepalive and other purposes

9 years agomodules/stats: more granular latency measurements
Marek Vavrusa [Wed, 8 Jun 2016 07:20:40 +0000 (00:20 -0700)] 
modules/stats: more granular latency measurements

now including <1ms, <50ms, <250ms, <500ms, <1.5s

9 years agolib/resolve: store auth addr/rtt in consume() layer
Marek Vavrusa [Wed, 8 Jun 2016 07:08:13 +0000 (00:08 -0700)] 
lib/resolve: store auth addr/rtt in consume() layer

during the consume step, the information about
upstream authoritative (address and current rtt)
is exposed in the request structure, just like
information about current query

9 years agodaemon/engine: safer json packing with mixed table
Marek Vavrusa [Wed, 8 Jun 2016 07:06:55 +0000 (00:06 -0700)] 
daemon/engine: safer json packing with mixed table

9 years agodaemon/engine: prefer local import path first
Marek Vavrusa [Wed, 8 Jun 2016 07:05:00 +0000 (00:05 -0700)] 
daemon/engine: prefer local import path first

9 years agomodules/http: graphs, prometheus metrics, websocks
Marek Vavrusa [Wed, 8 Jun 2016 07:04:21 +0000 (00:04 -0700)] 
modules/http: graphs, prometheus metrics, websocks

* http embeds modified lua-http server code that
  reuses single cqueue for all h2 client sockets,
  this is also because the API in upstream is unstable
* http embeds rickshaw for real-time graphs over
  websockets, it displays latency heatmap by default
  and can show several other metrics
* http shows a world map with pinned recently contacted
  authoritatives, where diameter represents number
  of queries sent and colour its average RTT, so
  you can see where the queries are going
* http now exports several endpoints and websockets:
  /stats for statistics in JSON, and /metrics for
  metrics in Prometheus text format

9 years agomodules/daf: initial commit
Marek Vavrusa [Wed, 1 Jun 2016 07:08:20 +0000 (00:08 -0700)] 
modules/daf: initial commit

9 years agomodules/http: doc, auto-tls, cert renewal, ...
Marek Vavrusa [Wed, 1 Jun 2016 07:08:00 +0000 (00:08 -0700)] 
modules/http: doc, auto-tls, cert renewal, ...

added documentation, many fixes in the H2 fallback
code and H2 stream handling, TLS is enabled by
default using ephemeral key and certificate that
is automatically renewed, but custom certificates
are also supported

this also allows other modules to place code
snippets on the webpage

9 years agomodules/http: stream stats and outbound name freq
Marek Vavrusa [Fri, 27 May 2016 07:34:23 +0000 (00:34 -0700)] 
modules/http: stream stats and outbound name freq

9 years agomodules/http: realtime stats over websockets
Marek Vavrusa [Thu, 26 May 2016 00:15:16 +0000 (17:15 -0700)] 
modules/http: realtime stats over websockets

9 years agodaemon/bindings: event.reschedule(ev, timeout)
Marek Vavrusa [Thu, 26 May 2016 00:14:52 +0000 (17:14 -0700)] 
daemon/bindings: event.reschedule(ev, timeout)

this allows for efficient variable-interval
running events, so that the timer doesn't have
to be closed and recreated for each iteration

9 years agomodules/http: initial commit
Marek Vavrusa [Mon, 23 May 2016 01:07:48 +0000 (18:07 -0700)] 
modules/http: initial commit

9 years agoMerge branch 'prefix-sbindir-changes' into 'master'
Marek Vavrusa [Tue, 5 Jul 2016 07:45:39 +0000 (09:45 +0200)] 
Merge branch 'prefix-sbindir-changes' into 'master'

Daemons should be in sbin, make destination variables overridable

According to FHS the 'Non-essential system binaries, e.g., daemons for various network-services.' should be installed in /usr/sbin

Also changed `:=` to `?=` to allow variable override without patching `config.mk`.

See merge request !32

9 years agolib/cache: fixed incorrect ranking in some places
Marek Vavrusa [Fri, 1 Jul 2016 17:47:11 +0000 (10:47 -0700)] 
lib/cache: fixed incorrect ranking in some places

fixed incorrect tagging in rrmap where secure rank would overflow

found by @gdemidov

9 years agoFix bin to sbin in scripts
Ondřej Surý [Thu, 30 Jun 2016 08:50:14 +0000 (10:50 +0200)] 
Fix bin to sbin in scripts

9 years agoDaemons should be in sbin, make destination variables overridable
Ondřej Surý [Thu, 30 Jun 2016 08:40:41 +0000 (10:40 +0200)] 
Daemons should be in sbin, make destination variables overridable

9 years agoscripts: updated apparmor file
Marek Vavrusa [Wed, 29 Jun 2016 03:56:19 +0000 (20:56 -0700)] 
scripts: updated apparmor file

9 years agoMerge branch 'clean-tests' into 'master'
Marek Vavrusa [Wed, 22 Jun 2016 18:26:45 +0000 (20:26 +0200)] 
Merge branch 'clean-tests' into 'master'

build: clean tests/mock_cmodule.o

See merge request !30

9 years agobuild: clean tests/mock_cmodule.o
Jan Vcelak [Wed, 22 Jun 2016 09:35:28 +0000 (11:35 +0200)] 
build: clean tests/mock_cmodule.o

9 years agodaemon: fixed memleak on exit
Marek Vavrusa [Tue, 21 Jun 2016 17:18:32 +0000 (10:18 -0700)] 
daemon: fixed memleak on exit

fixes #77

9 years agolib/pktcache: stricter using TTL for pktcache
Marek Vavrusa [Tue, 21 Jun 2016 07:02:07 +0000 (00:02 -0700)] 
lib/pktcache: stricter using TTL for pktcache

* SOA MINTTL always preferred for negative answers
* only SOA used for negative answers

refs #75

9 years agolib/iterate: drop minimisation when getting REFUSED
Marek Vavrusa [Fri, 17 Jun 2016 05:39:28 +0000 (22:39 -0700)] 
lib/iterate: drop minimisation when getting REFUSED

this is required to avoid REFUSED loops if the origin doesn't handle
minimisation well

9 years agoMerge branch 'rrcache_fix'
Marek Vavrusa [Thu, 16 Jun 2016 17:35:47 +0000 (10:35 -0700)] 
Merge branch 'rrcache_fix'

9 years agolayer/rrcache: fix ANSWER section processing
Grigorii Demidov [Tue, 31 May 2016 12:57:29 +0000 (14:57 +0200)] 
layer/rrcache: fix ANSWER section processing

9 years agobuild: bumped version to 1.1.0
Marek Vavrusa [Thu, 16 Jun 2016 17:19:04 +0000 (10:19 -0700)] 
build: bumped version to 1.1.0

9 years agodaemon: fix serialization of empty nested tables
Marek Vavrusa [Fri, 27 May 2016 07:33:54 +0000 (00:33 -0700)] 
daemon: fix serialization of empty nested tables

9 years agomodules/predict: fixed a typo
Marek Vavrusa [Wed, 8 Jun 2016 07:20:57 +0000 (00:20 -0700)] 
modules/predict: fixed a typo

9 years agodaemon/worker: fix outbound TCP queries
Marek Vavrusa [Thu, 16 Jun 2016 17:12:51 +0000 (10:12 -0700)] 
daemon/worker: fix outbound TCP queries

previously the buffer for TCP pkt reassembly was
not correctly cleared and fragmented answers
were rejected

9 years agolib/utils: fixed full subnet mask length calc
Marek Vavrusa [Thu, 16 Jun 2016 17:11:54 +0000 (10:11 -0700)] 
lib/utils: fixed full subnet mask length calc

previously, if no subnet was given (127.0.0.0),
it was treated as 127.0.0.0/0. now it is treated
as full address length, e.g. 127.0.0.0/32

9 years agodaemon,lib: cleanup
Marek Vavrusa [Thu, 16 Jun 2016 17:10:17 +0000 (10:10 -0700)] 
daemon,lib: cleanup

9 years agomodules/predict: fixup
Marek Vavrusa [Tue, 31 May 2016 18:01:29 +0000 (11:01 -0700)] 
modules/predict: fixup

9 years agoservice: remove obsolete dependencies
Jan Vcelak [Tue, 31 May 2016 09:04:52 +0000 (11:04 +0200)] 
service: remove obsolete dependencies

After=network.target is still needed because we don't have IP_FREEBIND.

9 years agoMerge branch 'rel_cleanup' into 'master' v1.0.0
Grigorii Demidov [Mon, 30 May 2016 16:22:25 +0000 (18:22 +0200)] 
Merge branch 'rel_cleanup' into 'master'

Release cleanup

Write a comment or drag your files here...

See merge request !28

9 years agosynced deckard
Grigorii Demidov [Mon, 30 May 2016 16:13:50 +0000 (18:13 +0200)] 
synced deckard

9 years agolib/resolve: cleanup
Grigorii Demidov [Mon, 30 May 2016 16:06:48 +0000 (18:06 +0200)] 
lib/resolve: cleanup

9 years agolib: sync before clearing, cleanup
Marek Vavrusa [Sun, 29 May 2016 20:27:57 +0000 (13:27 -0700)] 
lib: sync before clearing, cleanup

9 years agodaemon/io: freed handle could be touched in libuv
Marek Vavrusa [Sun, 29 May 2016 20:27:19 +0000 (13:27 -0700)] 
daemon/io: freed handle could be touched in libuv

the daemon wrongly freed handle that returned 0,
as in "no more data". this socket is going to be
closed, but it still could be touched by libuv
so it must be freed wit uv_close() handler

9 years agodaemon/bindings: check if cache is open
Marek Vavrusa [Fri, 27 May 2016 21:49:45 +0000 (14:49 -0700)] 
daemon/bindings: check if cache is open

9 years agolib/cache: fixed reinsert of invalidated record
Marek Vavrusa [Fri, 27 May 2016 21:06:11 +0000 (14:06 -0700)] 
lib/cache: fixed reinsert of invalidated record

when opening an empty database, an invalidated key
value was written resulting in possible corruption
of the cache

9 years agopre-release cleanup
Marek Vavrusa [Fri, 27 May 2016 06:14:36 +0000 (23:14 -0700)] 
pre-release cleanup

9 years agodaemon: fixed socket mempool cleanup on exit
Marek Vavrusa [Fri, 27 May 2016 05:52:39 +0000 (22:52 -0700)] 
daemon: fixed socket mempool cleanup on exit

fixes #73 small leak in cleaning up per-socket
mempool on daemon exit

9 years agobuild: unbroken Go build checks
Marek Vavrusa [Fri, 27 May 2016 05:34:44 +0000 (22:34 -0700)] 
build: unbroken Go build checks

9 years agolib/resolve: added synchronous cache option
Marek Vavrusa [Fri, 27 May 2016 05:00:40 +0000 (22:00 -0700)] 
lib/resolve: added synchronous cache option

9 years agoMerge branch 'test_cache_fix' into 'master'
Marek Vavrusa [Fri, 27 May 2016 04:19:20 +0000 (06:19 +0200)] 
Merge branch 'test_cache_fix' into 'master'

tests/test_cache: fix broken test

See merge request !27

9 years agotests/test_cache: fix broken test
Grigorii Demidov [Wed, 25 May 2016 11:32:21 +0000 (13:32 +0200)] 
tests/test_cache: fix broken test

9 years agoMerge branch 'cname_fix' into 'master'
Marek Vavrusa [Wed, 25 May 2016 04:53:48 +0000 (06:53 +0200)] 
Merge branch 'cname_fix' into 'master'

layer/iterate: CNAME chain unrolling improvement

Write a comment or drag your files here...

See merge request !26

9 years agolayer/iterate: CNAME chain unrolling improvement
Grigorii Demidov [Mon, 23 May 2016 09:46:17 +0000 (11:46 +0200)] 
layer/iterate: CNAME chain unrolling improvement

9 years agodaemon: support event.socket(fd, cb) for I/O events
Marek Vavrusa [Mon, 23 May 2016 00:56:50 +0000 (17:56 -0700)] 
daemon: support event.socket(fd, cb) for I/O events

this allows embedding other event loops or just
asynchronous events triggered by socket activity.
this is required for things like cooperative
HTTP server, monitoring endpoint or remote
configuration daemon/controller

9 years agolib/resolve: never read rcode if answer not exists
Marek Vavrusa [Sun, 22 May 2016 03:59:59 +0000 (20:59 -0700)] 
lib/resolve: never read rcode if answer not exists

9 years agoworker: fixed corruption when follower timeouts, early free
Marek Vavrusa [Sun, 22 May 2016 03:58:11 +0000 (20:58 -0700)] 
worker: fixed corruption when follower timeouts, early free

* when enqueued task terminated earlier than leader
  task because of timeout, it wasn't dequeued from
  the waitlist immediately, but it didn't have any
  outstanding outbound queries. when leader task
  terminated, it removed this task and updated its
  outbound query, which didn't exist. this triggered
  a 16B write in undefined location
* fixed timeout timer being scheduled for closing
  without holding reference to parent task