dns

package
v0.0.0-...-1c5da1f Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Axrf

func Axrf(hostname string, servers []string) (results []string, err error)

Types

type DnsResolver

type DnsResolver struct {
	Servers    []string
	RetryTimes int
	// contains filtered or unexported fields
}

func New

func New(servers []string) *DnsResolver

func (*DnsResolver) LookupHost

func (r *DnsResolver) LookupHost(host string) ([]net.IP, error)

func (*DnsResolver) LookupNS

func (r *DnsResolver) LookupNS(host string) ([]string, error)

Jump to

Keyboard shortcuts

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