server

package
v3.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	PublicDebugQueries bool
	// contains filtered or unexported fields
}

func NewServer

func NewServer(si *monitor.ServerInfo) *Server

func (*Server) Add

func (srv *Server) Add(name string, zone *zones.Zone)

func (*Server) ListenAndServe

func (srv *Server) ListenAndServe(ip string)

func (*Server) Remove

func (srv *Server) Remove(name string)

func (*Server) ServeDNS

func (srv *Server) ServeDNS(w dns.ResponseWriter, r *dns.Msg)

func (*Server) SetQueryLogger

func (srv *Server) SetQueryLogger(logger querylog.QueryLogger)

Setup the QueryLogger. For now it only supports writing to a file (and all zones get logged to the same file).

Jump to

Keyboard shortcuts

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