testdns

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 4 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 {
	Truncate     bool
	Arecords     map[string][]string
	TXTrecords   map[string][]string
	CNAMErecords map[string][]string
}

func (*Handler) ServeDNS

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

type Server

type Server struct {
	Addr                   string
	TCPPort                string
	UDPPort                string
	TCPHandler, UDPHandler *Handler
}

func (*Server) Run

func (s *Server) Run()

Jump to

Keyboard shortcuts

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