Categorygithub.com/ncruces/go-dns
modulepackage
1.2.7
Repository: https://github.com/ncruces/go-dns.git
Documentation: pkg.go.dev

# README

net.Resolver instances with caching, opportunistic encryption, and DNS over TLS/HTTPS

Go Reference Go Coverage

# Functions

DoHAddresses sets the network addresses of the resolver.
DoHCache adds caching to the resolver, with the given options.
DoHTransport sets the http.Transport used by the resolver.
DoTAddresses sets the network addresses of the resolver.
DoTCache adds caching to the resolver, with the given options.
DoTConfig sets the tls.Config used by the resolver.
DoTDialFunc sets the DialFunc used by the resolver.
MaxCacheEntries sets the maximum number of entries to cache.
MaxCacheTTL sets the maximum time-to-live for entries in the cache.
MinCacheTTL sets the minimum time-to-live for entries in the cache.
NegativeCache sets whether to cache negative responses.
NewCachingDialer adds caching to a [net.Resolver.Dial] function.
NewCachingResolver creates a caching [net.Resolver] that uses parent to resolve names.
NewDoHResolver creates a DNS over HTTPS resolver.
NewDoTResolver creates a DNS over TLS resolver.

# Constants

No description provided by the author

# Variables

OpportunisticResolver opportunistically tries encrypted DNS over TLS using the local resolver.

# Interfaces

A CacheOption customizes the resolver cache.
A DoHOption customizes the DNS over HTTPS resolver.
A DoTOption customizes the DNS over TLS resolver.

# Type aliases

DialFunc is a [net.Resolver.Dial] function.