resolver

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: MIT Imports: 19 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(dc *ctx.Context)

ServeDNS implements the Handle interface.

type Resolver

type Resolver struct {
	Ncache *authcache.NSCache
	// 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(Net string, req *dns.Msg, servers *authcache.AuthServers, root bool, depth int, level int, nsl bool, parentdsrr []dns.RR, extra ...bool) (*dns.Msg, error)

Resolve will try find nameservers recursively

Jump to

Keyboard shortcuts

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