resolver

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 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]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