dnsresolver

package
v0.0.0-...-39d52a8 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: AGPL-3.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	TIMEOUT   time.Duration = 5 * time.Second
	RATELIMIT uint          = 100
)

Variables

This section is empty.

Functions

func GetDefaultResolvers

func GetDefaultResolvers() []string

getResolvers will read the list of resolvers from /etc/resolv.conf

func Ip2Resolver

func Ip2Resolver(server string) string

Types

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func New

func New(resolvers []string) *Resolver

func (*Resolver) Resolv

func (self *Resolver) Resolv(qname string, qtype uint16) []dns.RR

resolv will send a query and return the result

Jump to

Keyboard shortcuts

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