dns

package
v0.3.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 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

type Record

type Record interface {
	A() IPResponse
	AAAA() IPResponse
}

func NewRecord

func NewRecord(a IPResponse, aaaa IPResponse) Record

Jump to

Keyboard shortcuts

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