From 100d9a7433f3fc4a0ced7c1c9cd3444edaed2440 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Tue, 23 Jul 2019 16:13:22 +0300 Subject: [PATCH] dnscrypt-proxy.toml: move cache above & add comments & min cache TTL 300 --- etc/dnscrypt-proxy/dnscrypt-proxy.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/etc/dnscrypt-proxy/dnscrypt-proxy.toml b/etc/dnscrypt-proxy/dnscrypt-proxy.toml index 1fb5ce58..8665e90b 100644 --- a/etc/dnscrypt-proxy/dnscrypt-proxy.toml +++ b/etc/dnscrypt-proxy/dnscrypt-proxy.toml @@ -9,6 +9,10 @@ listen_addresses = [] # mikaela.internal / my hosts file #cloaking_rules = '/etc/dnscrypt-proxy/hosts-mikaela.txt' +# Disable cache in case of another server caching resolver in front of +# DNSCrypt-proxy (Unbound) +cache = true + # When server_names isn't specified the criteria below disabled_server_names # gets used, if it's specified, this overrides the criteria. @@ -46,8 +50,9 @@ use_syslog = true cert_refresh_delay = 240 # Shouldn't take that much MEM and I imagine it's subject to TTL anyway. -cache = true cache_size = 10000 +# cache for 5 minutes even if the TTL wass shorter +cache_min_ttl = 300 # Load-balancing # fastest (first in 2.0.24+)= always fastest, p2 = random between two fastest, ph = random