server

package
v0.0.0-...-103085b Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDOHProxyHandler

func BuildDOHProxyHandler(serverURI string, serverAddr string) pigdns.Handler

func BuildProxyChain

func BuildProxyChain(
	datadir string, cacheSize int,
	upstream, blocklists, whitelists []string) pigdns.Handler

func BuildRecursorHandler

func BuildRecursorHandler(
	datadir string, allowedNets []string,
	blocklists []string, whitelists []string, cacheSize int) pigdns.Handler

BuildRecursorHandler creates an handler that resolves recursively starting from root NS

func BuildZoneHandler

func BuildZoneHandler(zoneFilePath string, zoneName string, regexipEnable bool, certmanEnable bool) pigdns.Handler

BuildZoneHandler craetes an handler that resolves custom zone

Types

type Server

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

func NewServer

func NewServer(mux *dns.ServeMux, listenAddress string) *Server

func (*Server) Start

func (s *Server) Start()

Jump to

Keyboard shortcuts

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