dnsserver

package
v0.0.0-...-7fa21a5 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSServer

type DNSServer struct {
	Zones map[string]*config.Zone
	// contains filtered or unexported fields
}

func (*DNSServer) ServeDNS

func (ds *DNSServer) ServeDNS(w dns.ResponseWriter, r *dns.Msg)

func (*DNSServer) Shutdown

func (ds *DNSServer) Shutdown() error

Shutdown the server. Returns errors on unstarted servers or failed shutdowns.

func (*DNSServer) Start

func (ds *DNSServer) Start(listenSpec string) error

Start returns after the servers have started, and launches a UDP and TCP server in the background on the network specification.

Jump to

Keyboard shortcuts

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