dns

package
v0.0.0-...-5fbd3a7 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0 Imports: 12 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 represents a DNS server instance.

func NewServer

func NewServer(db *db.Cluster, retriever ZoneRetriever) *Server

NewServer returns a new server instance.

func (*Server) Debug

func (s *Server) Debug(zone string) string

Debug returns a dump of the current configuration.

func (*Server) Reconfigure

func (s *Server) Reconfigure(address string) error

Reconfigure updates the listener with a new configuration.

func (*Server) Start

func (s *Server) Start(address string) error

Start sets up the DNS listener.

func (*Server) Stop

func (s *Server) Stop() error

Stop tears down the DNS listener.

func (*Server) UpdateTSIG

func (s *Server) UpdateTSIG() error

UpdateTSIG fetches all TSIG keys and loads them into the DNS server.

type Zone

type Zone struct {
	Info    api.NetworkZone
	Content string
}

Zone represents a DNS zone configuration and its content.

type ZoneRetriever

type ZoneRetriever func(name string, full bool) (*Zone, error)

ZoneRetriever is a function which fetches a DNS zone.

Jump to

Keyboard shortcuts

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