From 37d7a7d984ec7679711c2d31789f033f3b6dc2c2 Mon Sep 17 00:00:00 2001 From: Jorge Niedbalski Date: Fri, 12 Jul 2019 15:34:24 -0400 Subject: resolved: switch cache option to a tri-state option (systemd#5552). Change the resolved.conf Cache option to a tri-state "no, no-negative, yes" values. If a lookup returns SERVFAIL systemd-resolved will cache the result for 30s (See 201d995), however, there are several use cases on which this condition is not acceptable (See systemd#5552 comments) and the only workaround would be to disable cache entirely or flush it , which isn't optimal. This change adds the 'no-negative' option when set it avoids putting in cache negative answers but still works the same heuristics for positive answers. Signed-off-by: Jorge Niedbalski --- NEWS | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 18fac477fc..8aa40f7ddc 100644 --- a/NEWS +++ b/NEWS @@ -178,6 +178,13 @@ CHANGES WITH 243 in spe: * systemd-resolved gained support for a new 'strict' DNS-over-TLS mode. + * systemd-resolved "Cache=" configuration option in resolved.conf has been extended + to also accept the 'no-negative' value. Previously, + only a boolean option was allowed (yes/no), having yes as the default. + If this option is set to 'no-negative', negative answers are skipped + from being cached while keeping the same cache heuristics for positive answers. + The default remains as "yes" (i. e. caching is enabled). + * The predictable naming scheme for network devices now supports generating predictable names for "netdevsim" devices. -- cgit v1.2.1