go-ipfs-config: feat: add DNS.MaxCacheTTL for DNS-over-HTTPS resolvers (#161)
Thibault Meunier committed
Jan 20, 2022 at 20:04 UTC
9a0bd0fa7a67c8d646b261bd74b69311195a85ea
1 file changed
+2
config/dns.go
+2
@@ -12,4 +12,6 @@ type DNS struct {
12
// - Custom resolver for ENS: `eth.` → `https://eth.link/dns-query`
13
// - Override the default OS resolver: `.` → `https://doh.applied-privacy.net/query`
14
Resolvers map[string]string
15
+ // MaxCacheTTL is the maximum duration DNS entries are valid in the cache.
16
+ MaxCacheTTL *OptionalDuration `json:",omitempty"`
17
}