dns

package
v0.3.1-rc.4 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNS

type DNS interface {
	LookupIP(domain string) ([]net.IP, error)
	Record(domain string, _ dnsmessage.Type) (IPResponse, error)
	Do([]byte) ([]byte, error)
	// Resolver() *net.Resolver
	io.Closer
}

func NewErrorDNS

func NewErrorDNS(err error) DNS

type IPResponse

type IPResponse interface {
	IPs() []net.IP
	TTL() uint32
}

func NewIPResponse

func NewIPResponse(ips []net.IP, ttl uint32) IPResponse

Jump to

Keyboard shortcuts

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