doh

package module
v0.0.0-...-607e3e8 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 14 Imported by: 0

README

Go Test

go-dnssec-resolver

DoH resolver with option to enable DNSSEC.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProofFromContext

func GetProofFromContext(ctx context.Context) ([]dns.RR, error)

func WithContextDNSSECWrapper

func WithContextDNSSECWrapper(ctx context.Context) context.Context

Types

type Option

type Option func(*Resolver) error

func WithCacheDisabled

func WithCacheDisabled() Option

func WithDNSSECEnabled

func WithDNSSECEnabled() Option

func WithMaxCacheTTL

func WithMaxCacheTTL(maxCacheTTL time.Duration) Option

Specifies the maximum time entries are valid in the cache A maxCacheTTL of zero is equivalent to `WithCacheDisabled`

type Resolver

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

func NewResolver

func NewResolver(url string, opts ...Option) (*Resolver, error)

func (*Resolver) GetProof

func (r *Resolver) GetProof() ([]dns.RR, error)

func (*Resolver) LookupIPAddr

func (r *Resolver) LookupIPAddr(ctx context.Context, domain string) (result []net.IPAddr, err error)

func (*Resolver) LookupTXT

func (r *Resolver) LookupTXT(ctx context.Context, domain string) ([]string, error)

Jump to

Keyboard shortcuts

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