Documentation ¶
Overview ¶
Package libresolve implements a recursive and stub resolver for RAINS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct { RootNameServers []net.Addr Forwarders []net.Addr Mode ResolutionMode InsecureTLS bool DialTimeout time.Duration FailFast bool Delegations *safeHashMap.Map Connections cache.Connection MaxCacheValidity util.MaxCacheValidity MaxRecursiveCount int // contains filtered or unexported fields }
Resolver provides methods to resolve names in RAINS.
func New ¶
func New(rootNS, forwarders []net.Addr, rootKeyPath string, mode ResolutionMode, addr net.Addr, maxConn int, maxCacheValidity util.MaxCacheValidity, maxRecursiveCount int) (*Resolver, error)
New creates a resolver with the given parameters and default settings
func (*Resolver) ClientLookup ¶
ClientLookup forwards the query to the specified forwarders or performs a recursive lookup starting at the specified root servers. It returns the received information.
Click to show internal directories.
Click to hide internal directories.