handler

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedMsg added in v1.2.1

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

type Handler

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

func NewHandler

func NewHandler(strategy int, builtInCache bool,
	upstreams []*model.Upstream,
	debug bool) *Handler

func (*Handler) Exchange

func (h *Handler) Exchange(req *dns.Msg) *dns.Msg

func (*Handler) HandleRequest

func (h *Handler) HandleRequest(w dns.ResponseWriter, req *dns.Msg)

func (*Handler) LookupIP

func (h *Handler) LookupIP(host string) (ip net.IP, err error)

Jump to

Keyboard shortcuts

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