dnsServer

package
v0.12.10 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(logger logger.Logger) *Handler

func (*Handler) Run

func (h *Handler) Run(ctx context.Context) error

listen and serve

func (*Handler) ServeDNS

func (h *Handler) ServeDNS(w dns.ResponseWriter, r *dns.Msg)

func (*Handler) SetAddresses

func (h *Handler) SetAddresses(serverAddress net.IP, userResolverIp []net.IP, vpnResolverIp net.IP, vpnNetwork net.IPNet)

func (*Handler) StopForward

func (h *Handler) StopForward()

Jump to

Keyboard shortcuts

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