dnsproxy

package
v0.0.0-...-e27f806 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Id        string
	Listen    string
	Acl       string
	Forwarder string
	Spoof     rrSlice
}

type DNSProxy

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

func New

func New(config Config, access access.Checker, logger log15.Logger) (dnsProxy *DNSProxy)

func (*DNSProxy) ServeDNS

func (dnsProxy *DNSProxy) ServeDNS(w dns.ResponseWriter, req *dns.Msg)

func (*DNSProxy) Stop

func (dnsProxy *DNSProxy) Stop()

Jump to

Keyboard shortcuts

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