resolver

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSHandler

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

DNSHandler type

func New

func New(cfg *config.Config) *DNSHandler

New returns a new Handler

func (*DNSHandler) Name

func (h *DNSHandler) Name() string

Name return middleware name

func (*DNSHandler) ServeDNS

func (h *DNSHandler) ServeDNS(ctx context.Context, dc *ctx.Context)

ServeDNS implements the Handle interface.

type Resolver

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

Resolver type

func NewResolver

func NewResolver(cfg *config.Config) *Resolver

NewResolver return a resolver

func (*Resolver) Resolve

func (r *Resolver) Resolve(ctx context.Context, proto string, req *dns.Msg, servers *authcache.AuthServers, root bool, depth int, level int, nsl bool, parentdsrr []dns.RR, extra ...bool) (*dns.Msg, error)

Resolve iterate recursively over the domains

Jump to

Keyboard shortcuts

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