From 9a0bd0fa7a67c8d646b261bd74b69311195a85ea Mon Sep 17 00:00:00 2001 From: Thibault Meunier Date: Thu, 20 Jan 2022 20:04:53 +0100 Subject: [PATCH] go-ipfs-config: feat: add DNS.MaxCacheTTL for DNS-over-HTTPS resolvers (#161) --- config/dns.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/dns.go b/config/dns.go index 5c4e62da0..b0f7b2710 100644 --- a/config/dns.go +++ b/config/dns.go @@ -12,4 +12,6 @@ type DNS struct { // - Custom resolver for ENS: `eth.` → `https://eth.link/dns-query` // - Override the default OS resolver: `.` → `https://doh.applied-privacy.net/query` Resolvers map[string]string + // MaxCacheTTL is the maximum duration DNS entries are valid in the cache. + MaxCacheTTL *OptionalDuration `json:",omitempty"` }