dns

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DISABLE level = iota
	BLOCK
	SPEEDUP
)

Variables

This section is empty.

Functions

func GetDefaultDNSServer added in v0.4.0

func GetDefaultDNSServer() (string, error)

func ListSuggestLevels added in v0.6.0

func ListSuggestLevels() []string

func LoadRules added in v0.6.0

func LoadRules(blocklist, suggestions, whitelist []string, host string)

LoadRules init rules from config

func StartDNS

func StartDNS(dnsServer, listenIP string, suggestCh chan<- string, level string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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