dns

package
v0.3.1-rc.6 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 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) (IPRecord, error)
	Do(domain string, raw []byte) ([]byte, error)
	io.Closer
}

func NewErrorDNS

func NewErrorDNS(f func(domain string) error) DNS

type IPRecord

type IPRecord struct {
	IPs []net.IP
	TTL uint32
}

func (IPRecord) String

func (i IPRecord) String() string

Jump to

Keyboard shortcuts

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