aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.go1
-rw-r--r--zdnsrc2
2 files changed, 2 insertions, 1 deletions
diff --git a/config.go b/config.go
index 2bee622..d98d218 100644
--- a/config.go
+++ b/config.go
@@ -64,6 +64,7 @@ func newConfig() Config {
c.DNS.ListenHTTP = "127.0.0.1:8053"
c.DNS.Protocol = "udp"
c.DNS.CacheSize = 4096
+ c.DNS.CachePrefetch = true
c.DNS.RefreshInterval = "48h"
c.DNS.Resolvers = []string{
"1.1.1.1:853",
diff --git a/zdnsrc b/zdnsrc
index 95e9906..41f58b7 100644
--- a/zdnsrc
+++ b/zdnsrc
@@ -20,7 +20,7 @@
# may lead to slightly stale entries, but cached requests will never block
# waiting for the upstream resolver.
#
-# cache_prefetch = false
+# cache_prefetch = true
# Cache persistence.
#