dns

package
v1.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DNSMap is a map of hostnames with their corresponding IP addresses
	DNSMap = map[string]string{}
)

Functions

This section is empty.

Types

type EdgeDNS

type EdgeDNS struct {
	ListenIP            net.IP
	Server              *mdns.Server
	Exit                chan interface{}
	Feed                feed.If
	UpdateResolvConf    bool
	ResolvConf          string
	RemoveSearchDomains bool
}

EdgeDNS is a node-level dns resolver

func NewEdgeDNS

func NewEdgeDNS(config *config.DNSConfig) (dns *EdgeDNS, err error)

NewEdgeDNS creates a new EdgeDNS instance

func (*EdgeDNS) Run

func (dns *EdgeDNS) Run()

Run starts the DNS server

func (*EdgeDNS) Stop

func (dns *EdgeDNS) Stop() error

Stop stops the DNS server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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