resolver

package
v0.0.0-...-9ab011e Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSResolver

type DNSResolver struct {
	Nameserver      string
	Timeout         time.Duration
	ResolveAttempts uint
	UseCache        bool
}

func NewDNSResolver

func NewDNSResolver() *DNSResolver

func (*DNSResolver) DialContext

func (r *DNSResolver) DialContext(ctx context.Context, network, address string) (net.Conn, error)

func (*DNSResolver) Lookup

func (r *DNSResolver) Lookup(ctx context.Context, network, addr string) (net.IP, error)

type NativeDNSResolver

type NativeDNSResolver struct {
	Nameserver string
	Timeout    time.Duration
}

func NewNativeDNSResolver

func NewNativeDNSResolver() *NativeDNSResolver

func (*NativeDNSResolver) DialContext

func (r *NativeDNSResolver) DialContext(ctx context.Context, network, address string) (net.Conn, error)

Jump to

Keyboard shortcuts

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