dns

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is a ridiculously primitive DNS server that returns the loopback address for all A and AAAA record queries.

func NewServer

func NewServer(logger *zap.Logger, zone string) *Server

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(ctx context.Context, listenAddr string) error

Jump to

Keyboard shortcuts

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