dns

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: Apache-2.0 Imports: 16 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. It processes the initial snapshot synchronously so DNS is warm before returning, then consumes live changes in the background.

Jump to

Keyboard shortcuts

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