resolver

package
v0.0.0-...-9022d3d Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResolver

func NewResolver(nameservers []NameServer, opts ...Option) (resolver.Resolver, error)

Types

type NameServer

type NameServer struct {
	Addr     string
	Chain    chain.Chainer
	TTL      time.Duration
	Timeout  time.Duration
	ClientIP net.IP
	Prefer   string
	Hostname string // for TLS handshake verification
	Async    bool
	Only     string
	// contains filtered or unexported fields
}

type Option

type Option func(opts *options)

func DomainOption

func DomainOption(domain string) Option

func LoggerOption

func LoggerOption(logger logger.Logger) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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