- Jan 04, 2018
- Dec 08, 2017
-
-
Check differences between real and monotonic time. It clears cache when this diffrence changes since last cache clear.
-
Monotonic time from libuv function uv_now (wrapped in kr_now) is used for query timeout, stats and RTT in reputation cache. Cache, DNSSEC Validation and Cookies use real time.
-
Petr Špaček authored
Some RR type definitions present in IANA DNS parameters registry were missing in kresd. This commit synchronizes the tables with IANA registry as of 2017-12-08 13:20 UTC. At the same time, this commit is fixup! converted constant tables, support kres.type.TYPE1234 The mentioned commit accidentally removed NULL definition which broke TA signaling module.
-
- Dec 07, 2017
-
-
This module is enabled by default, but disabled in Deckard tests.
-
- Dec 04, 2017
-
-
Vitezslav Kriz authored
-
- Nov 28, 2017
- Nov 24, 2017
-
-
Marek Vavruša authored
Also fixed improper promotion of `ffi` to global variable. ``` $ luacheck --codes daemon/lua/ Checking daemon/lua/config.lua OK Checking daemon/lua/kres-gen.lua OK Checking daemon/lua/kres.lua OK Checking daemon/lua/sandbox.lua OK Checking daemon/lua/trust_anchors.lua OK Checking daemon/lua/zonefile.lua OK Total: 0 warnings / 0 errors in 6 files ```
-
Marek Vavruša authored
The library now depends on libknot >= 2.4.0 (in Debian stable), this allows us to remove a dead code and sed-ing of the kres.lua Added a basic config tests to check that constants still work, and basic interface to rrsets still works after the change.
-
Marek Vavruša authored
-
Marek Vavruša authored
The difficulty with using structs as constant tables is that access to non-existent fields throws an error. This is difficult to handle without wrapping every access in a pcall, for example in predict module: ``` error: /usr/local/lib/kdns_modules/predict.lua:34: 'struct rr_type' has no member named 'TYPE65535' ``` So I converted the constant tables into regular Lua tables, and added a metatable for RR types to allow looking up unnamed types, in the TYPE%d format. Looking up non-existent fields will now return nil instead of throwing an error.
-
Marek Vavruša authored
The config tests locked up on error as if error was raised from the event callback, it would never reach the `quit()` statement, so server would never close on error. Added a script to make running these types of tests a little bit nicer and to allow concurrent execution of config tests. Added a test for the predict module, that fails on prediction of unknown types: ``` error: /usr/local/lib/kdns_modules/predict.lua:34: 'struct rr_type' has no member named 'TYPE65535' ```
-
- Nov 20, 2017
-
-
Vladimír Čunát authored
For now I didn't touch the generator to be correct on this line, as we will probably want to change it after bumping minimal libknot version.
-
Vladimír Čunát authored
-
- Nov 02, 2017
- Nov 01, 2017
-
-
Petr Špaček authored
- Sep 11, 2017
-
-
Vladimír Čunát authored
- expose the function as hints.root_file - use the same filename as Debian - remove the unneeded script - docs and some nitpicks
-
- Sep 07, 2017
-
-
Vitezslav Kriz authored
-
- Aug 03, 2017
-
-
Vladimír Čunát authored
- the returned value is up to max-1 and not max (tiny bias) - improve efficiency slightly - unsigned -> uint32_t, as that's the range it supports (mostly equal)
-
- Aug 01, 2017
-
-
Vladimír Čunát authored
It was rather low-level anyway.
-
Vladimír Čunát authored
-
Vladimír Čunát authored
-
Vladimír Čunát authored
-
Vladimír Čunát authored
-
- Jul 11, 2017
-
-
Vladimír Čunát authored
In particular, try to make the locally-served zones valid, including SOA and NS in apex, empty non-terminal vs. NXDOMAIN, etc. I might've missed something, but it should certainly be closer to ideal.
-
- Jul 07, 2017
-
-
Vladimír Čunát authored
-
Vladimír Čunát authored
-
Vitezslav Kriz authored
If CNAME chain occurs CNAME is placed before AAAA.
-
- Jun 13, 2017
-
-
Vladimír Čunát authored
-
- Jun 01, 2017
-
-
Vladimír Čunát authored
Casting is dangerous, e.g. it's easy to misconfigure policy with policy.add(policy.FORWARD('some address')) which lead to segfault without showing any indication of the cause. Now this case will show as .../policy.lua:98: 'struct kr_query' has no member named 'current' and only abort the policy module instead of the whole process.
-
-
- May 17, 2017
-
-
Vladimír Čunát authored
-
- Apr 05, 2017
-
-
Vladimír Čunát authored
Also rename NOAUTH->NONAUTH.
-
Vladimír Čunát authored
... *if* we only want to ask the NSs, i.e. not to be put into answer. This fixes iter_cname_cache test.
-
- Mar 21, 2017
-
-
Vladimír Čunát authored
I see no sane way to set the flags from lua, so I made a C function.
-
Vladimír Čunát authored
-
Vladimír Čunát authored
function `add_file` is added as an alias to `config`, but otherwise the interface is almost identical.
-