dns

package
v0.0.0-...-039bb7d Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNxDomain = errors.New("NXDOMAIN")

Functions

This section is empty.

Types

type ExtResolver

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

ExtResolver is a convenience wrapper for miekg/dns library that provides access to certain low-level functionality (notably, AD flag in responses, indicating whether DNSSEC verification was performed by the server).

func NewExtResolver

func NewExtResolver() (*ExtResolver, error)

func (ExtResolver) AuthLookupAddr

func (e ExtResolver) AuthLookupAddr(ctx context.Context, addr string) (ad bool, names []string, err error)

func (ExtResolver) AuthLookupHost

func (e ExtResolver) AuthLookupHost(ctx context.Context, host string) (ad bool, addrs []string, err error)

func (ExtResolver) AuthLookupIPAddr

func (e ExtResolver) AuthLookupIPAddr(ctx context.Context, host string) (ad bool, addrs []net.IPAddr, err error)

func (ExtResolver) AuthLookupMX

func (e ExtResolver) AuthLookupMX(ctx context.Context, name string) (ad bool, mxs []*net.MX, err error)

func (ExtResolver) AuthLookupTLSA

func (e ExtResolver) AuthLookupTLSA(ctx context.Context, name string) (ad bool, recs []dns.TLSA, err error)

func (ExtResolver) AuthLookupTXT

func (e ExtResolver) AuthLookupTXT(ctx context.Context, name string) (ad bool, recs []string, err error)

Jump to

Keyboard shortcuts

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