outbound

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 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 Dispatcher

type Dispatcher struct {
	PrimaryDNS     []*common.DNSUpstream
	AlternativeDNS []*common.DNSUpstream
	OnlyPrimaryDNS bool

	WhenPrimaryDNSAnswerNoneUse string
	IPNetworkPrimaryList        []*net.IPNet
	IPNetworkAlternativeList    []*net.IPNet
	DomainPrimaryList           matcher.Matcher
	DomainAlternativeList       matcher.Matcher
	RedirectIPv6Record          bool
	AlternativeDNSConcurrent    bool

	MinimumTTL   int
	DomainTTLMap map[string]uint32

	Hosts *hosts.Hosts
	Cache *cache.Cache
	// contains filtered or unexported fields
}

func (*Dispatcher) Exchange

func (d *Dispatcher) Exchange(query *dns.Msg, inboundIP string) *dns.Msg

func (*Dispatcher) Init

func (d *Dispatcher) Init()

Directories

Path Synopsis
Package outbound implements multiple dns client and dispatcher for outbound connection.
Package outbound implements multiple dns client and dispatcher for outbound connection.
resolver
Package outbound implements multiple dns client and dispatcher for outbound connection.
Package outbound implements multiple dns client and dispatcher for outbound connection.

Jump to

Keyboard shortcuts

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