resolver

package
v0.2.0-beta-1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(work <-chan string, wg *sync.WaitGroup, resolvers []string, timeout time.Duration, countSuccess *int, ipv4 *regexp.Regexp, verbose bool) map[string]map[string]bool

Types

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver is a DNS resolver client that can work with multiple DNS servers.

func NewResolver

func NewResolver(servers []string, timeout time.Duration) *Resolver

NewResolver creates a new Resolver with the given list of DNS servers and timeout.

func (*Resolver) Resolve

func (r *Resolver) Resolve(d string) ([]miekdns.RR, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL