Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parallel ¶
type Parallel []ResolverInterface
func NewParallel ¶
func NewParallel(resolvers ...ResolverInterface) Parallel
NewParallel return parallel resolver
func (Parallel) LookupIPAddr ¶
LookupIPAddr return ip addresses of host, used underly resolvers in parallel If any of resolvers return ips - return sum array of the ips (may duplicated) If all resolvers return error - return any of they errors
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolve IPs for A and AAAA records of domains it use direct dns query without cache
func NewResolver ¶
NewResolver return direct dns resolver
Click to show internal directories.
Click to hide internal directories.