dnsproxy

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSServer

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

func New

func New(opts DNSServerOpts) (*DNSServer, error)

func (*DNSServer) Close

func (d *DNSServer) Close() error

func (*DNSServer) Lookup

func (d *DNSServer) Lookup(m *dns.Msg) (*dns.Msg, error)

func (*DNSServer) ServeDNS

func (d *DNSServer) ServeDNS(w dns.ResponseWriter, r *dns.Msg)

type DNSServerOpts added in v0.3.0

type DNSServerOpts struct {
	Upstream []string
}

Jump to

Keyboard shortcuts

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