server

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const CACHE_SIZE = 2048
View Source
const MIN_TTL = 30

Variables

This section is empty.

Functions

func AddBlockedEntry

func AddBlockedEntry(name string, list string)

Add an entry to block list

func BlockFromURL added in v0.4.0

func BlockFromURL(listURL string)

func LogLists

func LogLists()

Show current log lists

Types

type CachedItem added in v0.3.0

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

type RequestHandler

type RequestHandler struct {
	Config *shared.Config
}

func NewHandler

func NewHandler(c *shared.Config) *RequestHandler

Return a request handler for the DNS server

func (*RequestHandler) ServeDNS

func (h *RequestHandler) ServeDNS(w dns.ResponseWriter, req *dns.Msg)

Jump to

Keyboard shortcuts

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