dnsproxy

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MIN_TTL               = 1
	QUERY_TIMEOUT         = 3 * time.Second
	BACKGROUND_REFRESH_AT = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSProxy

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

func NewDNSProxy

func NewDNSProxy() *DNSProxy

func (*DNSProxy) RunServer

func (d *DNSProxy) RunServer()

func (*DNSProxy) ServeDNS

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

Handler to forward DNS requests to upstream servers

Jump to

Keyboard shortcuts

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