]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
8 years agoMerge !203: .gitignore: add some entries
Vladimír Čunát [Wed, 15 Feb 2017 10:14:45 +0000 (11:14 +0100)] 
Merge !203: .gitignore: add some entries

8 years ago.gitignore: add some entries
Vladimír Čunát [Wed, 15 Feb 2017 10:11:12 +0000 (11:11 +0100)] 
.gitignore: add some entries

All either generated by the build system or some "standard tools".

8 years agoMerge !196: Query name minimization tests in CI
Vladimír Čunát [Mon, 13 Feb 2017 10:15:53 +0000 (11:15 +0100)] 
Merge !196: Query name minimization tests in CI

8 years agoMerge !181: module: document the API and simplify the code
Vladimír Čunát [Mon, 13 Feb 2017 10:12:20 +0000 (11:12 +0100)] 
Merge !181: module: document the API and simplify the code

8 years agoMerge branch 'ta-multiple' into 'master'
Ondřej Surý [Fri, 10 Feb 2017 07:58:36 +0000 (08:58 +0100)] 
Merge branch 'ta-multiple' into 'master'

trust anchor fixes

Closes #151

See merge request !193

8 years agotrust anchors: nitpicks
Vladimír Čunát [Mon, 6 Feb 2017 14:48:58 +0000 (15:48 +0100)] 
trust anchors: nitpicks

- Remove abstraction of the refresh callback, as we always use the same
  function.  This way the code is significantly easier to understand.
- Add a couple more comments.

8 years agotrust anchors: remove key missing for too long
Vladimír Čunát [Thu, 9 Feb 2017 13:22:58 +0000 (14:22 +0100)] 
trust anchors: remove key missing for too long

It was strange to keep it indefinitely, and the code was already
half-prepared for this change.  Theoretically, if a resolver has been
stopped for too long to miss a key's period of Revoked status, it would
continue to trust the key forever.

8 years agoQUERY_NO_CACHE: sync description and reality
Vladimír Čunát [Mon, 6 Feb 2017 14:41:16 +0000 (15:41 +0100)] 
QUERY_NO_CACHE: sync description and reality

- The description was very misleading (far from reality).
- The removed condition in rrcache was bogus.

8 years agotrust anchors: nitpicks
Vladimír Čunát [Mon, 6 Feb 2017 13:10:11 +0000 (14:10 +0100)] 
trust anchors: nitpicks

- printing refresh time in milliseconds could've been confusing;
- move syntactic sugar definitions close to the rest of the table;

8 years agotrust anchors: make bootstrap configurable
Vladimír Čunát [Mon, 6 Feb 2017 16:56:50 +0000 (17:56 +0100)] 
trust anchors: make bootstrap configurable

... via trust_anchors.{bootstrap_url,bootstrap_ca}

8 years agotrust anchors: verbose-log the RRset when adding
Vladimír Čunát [Fri, 3 Feb 2017 16:18:35 +0000 (17:18 +0100)] 
trust anchors: verbose-log the RRset when adding

8 years agotrust anchor bootstrapping: parse multiple records
Vladimír Čunát [Fri, 3 Feb 2017 16:17:26 +0000 (17:17 +0100)] 
trust anchor bootstrapping: parse multiple records

8 years agoCI: Run Deckard tests in parallel
Petr Špaček [Thu, 9 Feb 2017 12:14:12 +0000 (13:14 +0100)] 
CI: Run Deckard tests in parallel

8 years agoRun Deckard tests with qmin on & off
Petr Špaček [Thu, 9 Feb 2017 11:35:53 +0000 (12:35 +0100)] 
Run Deckard tests with qmin on & off

Latest version of Deckard provides script kresd_run.sh which executes
all the tests twice:
- without query name minimization
- with query name minimization

Let's use this for CI!

8 years agoMerge !194: kresc: misc improvements
Vladimír Čunát [Wed, 8 Feb 2017 13:17:23 +0000 (14:17 +0100)] 
Merge !194: kresc: misc improvements

8 years agolua cache.* fixes
Vladimír Čunát [Wed, 8 Feb 2017 12:13:57 +0000 (13:13 +0100)] 
lua cache.* fixes

- docs: fix cache.current_* since long ago d5272b4
- don't allow "cache.foo = 'bar'" for abitrary foo
- restore cache['nic.cz'] after b31bad2ccf while not breaking completion
- #cache won't work on lua 5.1, so remove it

8 years agoMerge branch 'k_param' into 'master'
Ondřej Surý [Wed, 8 Feb 2017 12:23:07 +0000 (13:23 +0100)] 
Merge branch 'k_param' into 'master'

Fix -k argument processing to avoid out-of-bounds memory accesses

See merge request !195

8 years agoFix -k argument processing to avoid out-of-bounds memory accesses
Petr Špaček [Fri, 3 Feb 2017 14:18:49 +0000 (15:18 +0100)] 
Fix -k argument processing to avoid out-of-bounds memory accesses

Mangling of keyfile_dir and allocation of keyfile_path led to rare
crashes (and Valgrind complaints).

The error was introduced in 21f3a6b9d0ed3b4ae05d4d1f1612f0f277235723.

8 years agokresc: fix unfree'd strings
Štěpán Balážik [Mon, 6 Feb 2017 19:14:38 +0000 (20:14 +0100)] 
kresc: fix unfree'd strings

8 years agokresc: refactor `complete` to multiple functions
Štěpán Balážik [Mon, 6 Feb 2017 17:18:14 +0000 (18:18 +0100)] 
kresc: refactor `complete` to multiple functions

8 years agokresc: fix coverity warning 155938
Vladimír Čunát [Mon, 6 Feb 2017 10:41:19 +0000 (11:41 +0100)] 
kresc: fix coverity warning 155938

The FD leak happened only when we exit the process, but still...

8 years agokresc: fix: possible uninitialized variable
Stepan Balazik [Mon, 6 Feb 2017 09:38:15 +0000 (10:38 +0100)] 
kresc: fix: possible uninitialized variable

8 years agoMerge branch 'add_libedit_2' into 'master'
Petr Špaček [Fri, 3 Feb 2017 18:48:05 +0000 (19:48 +0100)] 
Merge branch 'add_libedit_2' into 'master'

Added client (kresc) for interacting with daemon using command prompt with history and tab-completion

See merge request !177

8 years agolua sandbox: fix syntactic sugar for `cache` table in order for tab-completion to...
Štěpán Balážik [Wed, 1 Feb 2017 14:19:56 +0000 (15:19 +0100)] 
lua sandbox: fix syntactic sugar for `cache` table in order for tab-completion to work properly

8 years agodaemon TTY: comment nitpicks
Vladimír Čunát [Tue, 31 Jan 2017 17:07:58 +0000 (18:07 +0100)] 
daemon TTY: comment nitpicks

8 years agodaemon TTY: don't skip lua_settop in binary mode
Vladimír Čunát [Tue, 31 Jan 2017 16:28:54 +0000 (17:28 +0100)] 
daemon TTY: don't skip lua_settop in binary mode

This might help if the lua command returns an unexpected number of
arguments.

8 years agodaemon TTY: use network byte order in binary output
Vladimír Čunát [Tue, 31 Jan 2017 15:50:56 +0000 (16:50 +0100)] 
daemon TTY: use network byte order in binary output

That's to allow tunnelling the TTY to a different endian.

8 years agodaemon TTY: remove an unused variable
Vladimír Čunát [Tue, 31 Jan 2017 15:40:34 +0000 (16:40 +0100)] 
daemon TTY: remove an unused variable

8 years agodaemon TTY: fix handling of buffer
Vladimír Čunát [Tue, 31 Jan 2017 15:37:31 +0000 (16:37 +0100)] 
daemon TTY: fix handling of buffer

It was possible to write past the end of the buffer, if very unlucky.

8 years agokresc: improve libedit/editline based history and tab-completion
Štěpán Balážik [Wed, 25 Jan 2017 15:47:49 +0000 (16:47 +0100)] 
kresc: improve libedit/editline based history and tab-completion

8 years agokresc: add basic tab-completion
Štěpán Balážik [Wed, 18 Jan 2017 13:35:02 +0000 (14:35 +0100)] 
kresc: add basic tab-completion

8 years agokresc: add a mock-up of the client
Vladimír Čunát [Fri, 11 Nov 2016 20:51:11 +0000 (21:51 +0100)] 
kresc: add a mock-up of the client

The build system is prepared for libedit.

8 years agodaemon TTY: support binary output
Vladimír Čunát [Fri, 11 Nov 2016 20:29:09 +0000 (21:29 +0100)] 
daemon TTY: support binary output

... via "__binary" pseudocommand

8 years agolua sandbox: export the list of original names
Vladimír Čunát [Fri, 11 Nov 2016 14:19:27 +0000 (15:19 +0100)] 
lua sandbox: export the list of original names

That will allow us to discover the top-level symbols for completion.
For others we can e.g.: for n in pairs(net) do print(n); end
I must admit I fail to understand some of the related lua magic.

8 years agoMerge !192: doc build nitpicks
Vladimír Čunát [Fri, 3 Feb 2017 10:33:15 +0000 (11:33 +0100)] 
Merge !192: doc build nitpicks

8 years agodoc build: missing hexdump/xxd, swapped footnotes
Vladimír Čunát [Thu, 2 Feb 2017 13:13:20 +0000 (14:13 +0100)] 
doc build: missing hexdump/xxd, swapped footnotes

8 years agodoc build: add optional sphinx_rtd_theme
Vladimír Čunát [Mon, 30 Jan 2017 13:39:24 +0000 (14:39 +0100)] 
doc build: add optional sphinx_rtd_theme

The theme is no longer included in newer Sphinx versions,
so some systems (at least) will require specifying it explicitly.
(The docs refuse to build without it.)

8 years agoMerge !182: policy: support IPv6 link-local addresses
Vladimír Čunát [Fri, 3 Feb 2017 10:26:07 +0000 (11:26 +0100)] 
Merge !182: policy: support IPv6 link-local addresses

Closes #101.

8 years agoMerge !191: modules/policy: allow QTRACE chaining
Vladimír Čunát [Fri, 3 Feb 2017 10:03:08 +0000 (11:03 +0100)] 
Merge !191: modules/policy: allow QTRACE chaining

8 years agoMerge !180: hints module fixes, add hints.add_hosts(path)
Vladimír Čunát [Fri, 3 Feb 2017 10:00:09 +0000 (11:00 +0100)] 
Merge !180: hints module fixes, add hints.add_hosts(path)

8 years agomodules/policy: allow QTRACE policy to be chained with other policies
Grigorii Demidov [Fri, 3 Feb 2017 09:59:07 +0000 (10:59 +0100)] 
modules/policy: allow QTRACE policy to be chained with other policies

8 years agoMerge !190: lib/resolve: fix zonecut fetching for DS queries
Vladimír Čunát [Fri, 3 Feb 2017 09:34:11 +0000 (10:34 +0100)] 
Merge !190: lib/resolve: fix zonecut fetching for DS queries

8 years agolib/resolve: fix zonecut fetching for explicit DS queries
Grigorii Demidov [Thu, 2 Feb 2017 13:36:35 +0000 (14:36 +0100)] 
lib/resolve: fix zonecut fetching for explicit DS queries

8 years agoMerge branch 'release-1.2.1' into 'master' v1.2.1
Ondřej Surý [Wed, 1 Feb 2017 19:27:39 +0000 (20:27 +0100)] 
Merge branch 'release-1.2.1' into 'master'

Final 1.2.1 changelog update

See merge request !189

8 years agoFinal changelog update
Ondřej Surý [Wed, 1 Feb 2017 19:25:44 +0000 (20:25 +0100)] 
Final changelog update

8 years agoMerge branch 'deckard-rhybar.cz' into 'master'
Ondřej Surý [Wed, 1 Feb 2017 19:22:49 +0000 (20:22 +0100)] 
Merge branch 'deckard-rhybar.cz' into 'master'

Merge deckard test for negative CD/no-AD answers (using rhybar.cz)

See merge request !188

8 years agoMerge deckard test for negative CD/no-AD answers (using rhybar.cz)
Ondřej Surý [Wed, 1 Feb 2017 19:08:05 +0000 (20:08 +0100)] 
Merge deckard test for negative CD/no-AD answers (using rhybar.cz)

8 years agoMerge branch 'policy-qtrace-documentation' into 'master'
Ondřej Surý [Wed, 1 Feb 2017 19:19:22 +0000 (20:19 +0100)] 
Merge branch 'policy-qtrace-documentation' into 'master'

Fix policy.TRACE -> policy.QTRACE mistake in the documentation

See merge request !187

8 years agoFix policy.TRACE -> policy.QTRACE mistake in the documentation
Ondřej Surý [Wed, 1 Feb 2017 19:16:29 +0000 (20:16 +0100)] 
Fix policy.TRACE -> policy.QTRACE mistake in the documentation

8 years agoMerge branch 'pktcache-insecure' into 'master'
Grigorii Demidov [Wed, 1 Feb 2017 17:09:06 +0000 (18:09 +0100)] 
Merge branch 'pktcache-insecure' into 'master'

Fix a possible Insecure vs Bogus bad cache reuse for negative answers

See merge request !186

8 years agorelease 1.2.1
Vladimír Čunát [Wed, 1 Feb 2017 14:33:49 +0000 (15:33 +0100)] 
release 1.2.1

8 years agopktcache: fix mixup of BOGUS and INSECURE DNSSEC
Vladimír Čunát [Wed, 1 Feb 2017 14:08:26 +0000 (15:08 +0100)] 
pktcache: fix mixup of BOGUS and INSECURE DNSSEC

A negative answer cached from a +cd query could be mistakenly used
even for a later query without +cd.

8 years agoMerge !185: lua: make the map command check its arguments
Vladimír Čunát [Tue, 31 Jan 2017 13:28:26 +0000 (14:28 +0100)] 
Merge !185: lua: make the map command check its arguments

8 years agolua: make the map command check its arguments
Vladimír Čunát [Tue, 31 Jan 2017 13:25:29 +0000 (14:25 +0100)] 
lua: make the map command check its arguments

Fixes #147.

8 years agoMerge !183: lua: get rid of knot_rrset_txt_dump
Vladimír Čunát [Fri, 27 Jan 2017 18:33:10 +0000 (19:33 +0100)] 
Merge !183: lua: get rid of knot_rrset_txt_dump

8 years agolua: get rid of knot_rrset_txt_dump
Vladimír Čunát [Fri, 27 Jan 2017 18:28:16 +0000 (19:28 +0100)] 
lua: get rid of knot_rrset_txt_dump

I believe it was unused, so no risk was caused, but better remove it.
There's the complication that its signature has changed since libknot-2.4.0.
Fixes https://gitlab.labs.nic.cz/knot/resolver/issues/146

8 years agobump the soname, as kr_nsrep_set changed API+ABI
Vladimír Čunát [Fri, 27 Jan 2017 17:13:21 +0000 (18:13 +0100)] 
bump the soname, as kr_nsrep_set changed API+ABI

8 years agolibkresd: link against libuv
Vladimír Čunát [Fri, 27 Jan 2017 17:10:06 +0000 (18:10 +0100)] 
libkresd: link against libuv

8 years agopolicy.MIRROR: support IPv6 link-local addresses
Vladimír Čunát [Fri, 27 Jan 2017 16:48:34 +0000 (17:48 +0100)] 
policy.MIRROR: support IPv6 link-local addresses

8 years agopolicy.FORWARD: support IPv6 link-local addresses
Vladimír Čunát [Fri, 27 Jan 2017 15:57:16 +0000 (16:57 +0100)] 
policy.FORWARD: support IPv6 link-local addresses

These shouldn't make any problems:
- the verbose messages don't print any scope, and
- reputation cache doesn't consider scope.

8 years agomodule: document the API and simplify the code
Vladimír Čunát [Fri, 20 Jan 2017 17:43:01 +0000 (18:43 +0100)] 
module: document the API and simplify the code

This does NOT change the module API/ABI in any way.

8 years agohints.add_hosts(path): a new property
Vladimír Čunát [Thu, 26 Jan 2017 15:02:41 +0000 (16:02 +0100)] 
hints.add_hosts(path): a new property

So far it wasn't possible to load multiple files (!).  Real use case:
https://forum.turris.cz/t/how-to-configure-local-address-dns-resoultion-on-omnia/1000/14

8 years agohints: more NULL checks
Vladimír Čunát [Thu, 26 Jan 2017 14:10:03 +0000 (15:10 +0100)] 
hints: more NULL checks

Calling `hints.del()` would cause a crash.
It wasn't apparent to me that NULL could be passed through.

8 years agoMerge !179: doc nitpicks
Vladimír Čunát [Thu, 26 Jan 2017 15:07:04 +0000 (16:07 +0100)] 
Merge !179: doc nitpicks

8 years agodocs: misc warning fixes
Vladimír Čunát [Thu, 26 Jan 2017 14:50:26 +0000 (15:50 +0100)] 
docs: misc warning fixes

8 years agoredis doc: fix some hyperlinks
Vladimír Čunát [Fri, 20 Jan 2017 12:15:17 +0000 (13:15 +0100)] 
redis doc: fix some hyperlinks

I must say I have a hard time getting used to rst syntax myself.

8 years agoMerge !178: update link to Linux kernel coding style
Vladimír Čunát [Thu, 26 Jan 2017 09:32:30 +0000 (10:32 +0100)] 
Merge !178: update link to Linux kernel coding style

8 years agoupdate link to Linux kernel coding style
Petr Špaček [Thu, 26 Jan 2017 09:27:51 +0000 (10:27 +0100)] 
update link to Linux kernel coding style

8 years agoMerge branch 'release-1.2.0' into 'master' v1.2.0
Ondřej Surý [Wed, 25 Jan 2017 13:16:25 +0000 (14:16 +0100)] 
Merge branch 'release-1.2.0' into 'master'

Knot DNS Release 1.2.0

See merge request !176

8 years agoKnot Resolver 1.2.0
Ondřej Surý [Wed, 25 Jan 2017 12:55:46 +0000 (13:55 +0100)] 
Knot Resolver 1.2.0

8 years agoUpdate copyright information with 2017
Ondřej Surý [Wed, 25 Jan 2017 13:14:13 +0000 (14:14 +0100)] 
Update copyright information with 2017

8 years agoUse NEWS as a reference date for timestamp in man page
Ondřej Surý [Wed, 25 Jan 2017 13:06:27 +0000 (14:06 +0100)] 
Use NEWS as a reference date for timestamp in man page

8 years agoUpdate copyright in documentation
Ondřej Surý [Wed, 25 Jan 2017 13:06:09 +0000 (14:06 +0100)] 
Update copyright in documentation

8 years agoMerge branch 'deckard-update' into 'master'
Ondřej Surý [Wed, 25 Jan 2017 13:00:29 +0000 (14:00 +0100)] 
Merge branch 'deckard-update' into 'master'

Update deckard to latest version

See merge request !175

8 years agoUpdate deckard to latest version
Ondřej Surý [Wed, 25 Jan 2017 12:57:08 +0000 (13:57 +0100)] 
Update deckard to latest version

8 years agoMerge branch 'misc-issues' into 'master'
Ondřej Surý [Tue, 24 Jan 2017 22:12:10 +0000 (23:12 +0100)] 
Merge branch 'misc-issues' into 'master'

Fix insecure CNAME pointing to secure target returning AD flag in error

Closes #144

See merge request !174

8 years agoAdd a deckard test for www.nic.mx issue
Ondřej Surý [Tue, 24 Jan 2017 22:00:56 +0000 (23:00 +0100)] 
Add a deckard test for www.nic.mx issue

8 years agominor spelling fixes
Ondřej Surý [Tue, 24 Jan 2017 21:54:59 +0000 (22:54 +0100)] 
minor spelling fixes

8 years agolayer/iterate: revert some previous changes
Grigorii Demidov [Tue, 24 Jan 2017 19:23:15 +0000 (20:23 +0100)] 
layer/iterate: revert some previous changes

8 years agolayer/validate: fix for issue 144
Grigorii Demidov [Tue, 24 Jan 2017 15:55:31 +0000 (16:55 +0100)] 
layer/validate: fix for issue 144

8 years agoMerge !173: doc: fix luasec links
Vladimír Čunát [Tue, 24 Jan 2017 09:54:34 +0000 (10:54 +0100)] 
Merge !173: doc: fix luasec links

8 years agodoc: fix luasec links
Vladimír Čunát [Tue, 24 Jan 2017 09:51:58 +0000 (10:51 +0100)] 
doc: fix luasec links

8 years agoMerge branch '1.2.0-rc3' into 'master' v1.2.0-rc3
Ondřej Surý [Tue, 24 Jan 2017 09:21:24 +0000 (10:21 +0100)] 
Merge branch '1.2.0-rc3' into 'master'

Prepare 1.2.0-rc3 release

See merge request !171

8 years agoPrepare 1.2.0-rc3 release
Ondřej Surý [Mon, 23 Jan 2017 15:00:47 +0000 (16:00 +0100)] 
Prepare 1.2.0-rc3 release

8 years agoMerge branch 'fix-arpa-ds' into 'master'
Ondřej Surý [Tue, 24 Jan 2017 09:05:27 +0000 (10:05 +0100)] 
Merge branch 'fix-arpa-ds' into 'master'

layer/validate: some bugfixes

See merge request !170

8 years agoMerge branch 'policy-TRACE-docs' into 'master'
Grigorii Demidov [Tue, 24 Jan 2017 09:02:34 +0000 (10:02 +0100)] 
Merge branch 'policy-TRACE-docs' into 'master'

Update policy.TRACE documentation

See merge request !169

8 years agoMention that TRACE also prints answers for all subqueries
Ondřej Surý [Tue, 24 Jan 2017 08:59:38 +0000 (09:59 +0100)] 
Mention that TRACE also prints answers for all subqueries

8 years agolayer/validate: some bugfixes
Grigorii Demidov [Mon, 23 Jan 2017 20:14:29 +0000 (21:14 +0100)] 
layer/validate: some bugfixes

8 years agoUpdate policy.TRACE documentation
Ondřej Surý [Mon, 23 Jan 2017 15:07:16 +0000 (16:07 +0100)] 
Update policy.TRACE documentation

8 years agoMerge branch 'qry-trace' into 'master'
Ondřej Surý [Mon, 23 Jan 2017 14:55:30 +0000 (15:55 +0100)] 
Merge branch 'qry-trace' into 'master'

TRACE policy

See merge request !167

8 years agoMerge !168: iterate: fix typo from !165
Vladimír Čunát [Mon, 23 Jan 2017 14:52:42 +0000 (15:52 +0100)] 
Merge !168: iterate: fix typo from !165

8 years agoiterate: fix typo from !165
Vladimír Čunát [Mon, 23 Jan 2017 14:49:32 +0000 (15:49 +0100)] 
iterate: fix typo from !165

Oh, I failed to notice this typo. Clang is just better than gcc in this.

8 years agoUse WITH_VERBOSE instead of NDEBUG to enable debug printing via policy.TRACE()
Ondřej Surý [Mon, 23 Jan 2017 14:37:19 +0000 (15:37 +0100)] 
Use WITH_VERBOSE instead of NDEBUG to enable debug printing via policy.TRACE()

8 years agoMerge !166: accept packets with junk after end (by default)
Vladimír Čunát [Mon, 23 Jan 2017 14:00:18 +0000 (15:00 +0100)] 
Merge !166: accept packets with junk after end (by default)

Closes #133.

8 years agolib/utils: QTRACE plicy - turn off OPT rrset
Grigorii Demidov [Mon, 23 Jan 2017 12:53:41 +0000 (13:53 +0100)] 
lib/utils: QTRACE plicy - turn off OPT rrset

8 years agoPerform the excessive size (junk at the end of the packet) only in strict_mode
Ondřej Surý [Mon, 23 Jan 2017 12:06:30 +0000 (13:06 +0100)] 
Perform the excessive size (junk at the end of the packet) only in strict_mode

8 years agolib/utils: Merge conflicts were resolved
Grigorii Demidov [Mon, 23 Jan 2017 11:11:44 +0000 (12:11 +0100)] 
lib/utils: Merge conflicts were resolved

8 years agolib/utils: debug print improvements
Grigorii Demidov [Mon, 23 Jan 2017 11:05:27 +0000 (12:05 +0100)] 
lib/utils: debug print improvements

8 years agomodules/policy: set QTRACE flag for current query too
Grigorii Demidov [Fri, 20 Jan 2017 10:26:43 +0000 (11:26 +0100)] 
modules/policy: set QTRACE flag for current query too

8 years agomodules/policy: QTRACE policy; some improvements
Grigorii Demidov [Wed, 18 Jan 2017 12:29:49 +0000 (13:29 +0100)] 
modules/policy: QTRACE policy; some improvements