Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
feat: add DNS.MaxCacheTTL for DNS-over-HTTPS resolvers (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
thibmeu authored Jan 20, 2022
1 parent ce20398 commit 0a6e6d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

0 comments on commit 0a6e6d1

Please sign in to comment.