From 0a6e6d171398633bea6834486a7e34bf4645c0a5 Mon Sep 17 00:00:00 2001 From: Thibault Meunier Date: Thu, 20 Jan 2022 20:04:53 +0100 Subject: [PATCH] feat: add DNS.MaxCacheTTL for DNS-over-HTTPS resolvers (#161) --- dns.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dns.go b/dns.go index 5c4e62d..b0f7b27 100644 --- a/dns.go +++ b/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"` }