dns

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(st *stack.Stack, vip net.IP, tcpPort int, hostnameMap map[string]net.IP) (*dns.Server, error)

func NewClientConfig

func NewClientConfig() (*dns.ClientConfig, error)

func NewHandler

func NewHandler(hostnameMap map[string]net.IP) (dns.Handler, error)

func NewStaticClientConfig

func NewStaticClientConfig(ips []net.IP) (*dns.ClientConfig, error)

Types

type Handler

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

func (*Handler) ServeDNS

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

Jump to

Keyboard shortcuts

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