dns

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: Apache-2.0 Imports: 15 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 {
	*dns.Server
	// contains filtered or unexported fields
}

func New

func New(addr string, entityClient *entityserver_v1alpha.EntityAccessClient, log *slog.Logger) (*Server, error)

New creates a new DNS forwarding server

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe starts the DNS server

func (*Server) Shutdown

func (s *Server) Shutdown() error

Shutdown gracefully shuts down the server

func (*Server) Watch

func (s *Server) Watch(ctx context.Context) error

Watch starts watching sandbox entities and maintains in-memory DNS mappings

Jump to

Keyboard shortcuts

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