miekgdns

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultResolvConfPath = "/etc/resolv.conf"

DefaultResolvConfPath is a common, default resolv.conf file present on linux server.

Variables

View Source
var ErrNoSuchHost = errors.New("no such host")

Functions

This section is empty.

Types

type Resolver

type Resolver struct {
	ResolvConf string
}

Resolver is a drop-in Resolver for *part* of std lib Golang net.DefaultResolver methods.

func (*Resolver) IsNotFound

func (r *Resolver) IsNotFound(err error) bool

func (*Resolver) LookupIPAddr

func (r *Resolver) LookupIPAddr(ctx context.Context, host string) ([]net.IPAddr, error)

func (*Resolver) LookupSRV

func (r *Resolver) LookupSRV(ctx context.Context, service, proto, name string) (cname string, addrs []*net.SRV, err error)

Jump to

Keyboard shortcuts

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