Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressAttempt ¶
AddressAttempt stores resolved address and retry count if it's unresolved
type Client ¶
type Client struct { dns.Client DCache DelegationCache LCache LookupCache // contains filtered or unexported fields }
Client is a DNS client capable of performing parallel requests.
func (*Client) ParallelQuery ¶
ParallelQuery perform an exchange using m with all servers in parallel and return all responses.
type DelegationCache ¶
type DelegationCache struct {
// contains filtered or unexported fields
}
DelegationCache store and retrive delegations.
type LookupCache ¶
type LookupCache struct {
// contains filtered or unexported fields
}
LookupCache stores mixed lookup results for A and AAAA records of labels with not support of TTL.
func (*LookupCache) Get ¶
func (c *LookupCache) Get(label string) AddressAttempt
Get retrieve the saved address or the attempt
func (*LookupCache) IncAttempt ¶
func (c *LookupCache) IncAttempt(label string)
IncAttempt increase attempt to recursive resolve the address
func (*LookupCache) Set ¶
func (c *LookupCache) Set(label string, addrs []string)
type ResponseType ¶
type ResponseType int
const ( ResponseTypeUnknown ResponseType = iota ResponseTypeDelegation ResponseTypeCNAME ResponseTypeFinal )
Click to show internal directories.
Click to hide internal directories.