dnssrv

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package dnssrv is the agent's DNS server for tasks (§8.1). It answers the internal zone from the last service directory the controller sent (so it keeps working during a controller outage) and forwards other names.

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
}

func New

func New(zone string, log *slog.Logger) *Server

func (*Server) Close

func (s *Server) Close()

Close stops the server.

func (*Server) Listen

func (s *Server) Listen(ip string) error

Listen (re)starts the server on ip:53 for UDP and TCP.

func (*Server) ServeDNS

func (s *Server) ServeDNS(w dns.ResponseWriter, req *dns.Msg)

func (*Server) SetRecords

func (s *Server) SetRecords(recs map[string][]string)

SetRecords replaces the internal records (names without trailing dots).

Jump to

Keyboard shortcuts

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