miekgdns

package
v0.13.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

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

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

Variables

This section is empty.

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) 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