Documentation ¶
Overview ¶
Package libresolve implements a recursive and stub resolver for RAINS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct { RootNameServers []connection.Info Forwarders []connection.Info Mode ResolutionMode InsecureTLS bool DialTimeout time.Duration FailFast bool Delegations *safeHashMap.Map Connections map[connection.Info]net.Conn //FIXME make this map concurency safe, use the connection cache from rainsd }
Resolver provides methods to resolve names in RAINS.
func New ¶
func New(rootNS, forwarders []connection.Info, mode ResolutionMode, addr connection.Info) *Resolver
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.
func (*Resolver) ServerLookup ¶
ServerLookup forwards the query to the specified forwarders or performs a recursive lookup starting at the specified root servers. It sends the received information to conInfo.
Click to show internal directories.
Click to hide internal directories.