summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-manager.h
diff options
context:
space:
mode:
authorJorge Niedbalski <jnr@metaklass.org>2019-07-12 15:34:24 -0400
committerJorge Niedbalski <jnr@metaklass.org>2019-07-17 10:42:53 -0400
commit37d7a7d984ec7679711c2d31789f033f3b6dc2c2 (patch)
treef4fb302ef3b0aa7d51e2e50e4ec4cc6444b53231 /src/resolve/resolved-manager.h
parent81c07a955590b44fe2b1f21780df353c0d8b62f6 (diff)
downloadsystemd-37d7a7d984ec7679711c2d31789f033f3b6dc2c2.tar.gz
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 <jnr@metaklass.org>
Diffstat (limited to 'src/resolve/resolved-manager.h')
-rw-r--r--src/resolve/resolved-manager.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-manager.h b/src/resolve/resolved-manager.h
index 0f7d8ee5ee..7f7d3a6b9c 100644
--- a/src/resolve/resolved-manager.h
+++ b/src/resolve/resolved-manager.h
@@ -37,7 +37,7 @@ struct Manager {
ResolveSupport mdns_support;
DnssecMode dnssec_mode;
DnsOverTlsMode dns_over_tls_mode;
- bool enable_cache;
+ DnsCacheMode enable_cache;
DnsStubListenerMode dns_stub_listener_mode;
#if ENABLE_DNS_OVER_TLS