]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
modules/hints,lib/rules: rework TTL defaults
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 23 Aug 2023 09:58:39 +0000 (11:58 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 12 Sep 2023 10:12:55 +0000 (12:12 +0200)
commitfffdc6222e08e34eaf29d50eecb6e5c500a1bf78
treeb2b76c970fc30f131da67d34a46348cbe7868a9d
parent5eb8b57fe1dbdc02048fcbe3445f05464a096c81
modules/hints,lib/rules: rework TTL defaults

It was a bit wide, with 5s and 3h, and distinction between
these two "groups" of rules was a bit random wrt. TTL choice.
Now: 5m for user's rules and 1h for RFC-default rules.

I found it relatively hard to choose defaults, but at least for
user-supplied rules it's trivial to configure a different default.
lib/rules/api.c
lib/rules/api.h
lib/rules/defaults.c
lib/rules/impl.h
lib/rules/zonefile.c
modules/hints/hints.c