upstream

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package upstream abstracts a upstream lookups so that plugins can handle them in an unified way.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Upstream

type Upstream struct {
	Forward *proxy.Proxy
	// contains filtered or unexported fields
}

Upstream is used to resolve CNAME targets

func NewUpstream

func NewUpstream(dests []string) (Upstream, error)

NewUpstream creates a new Upstream for given destination(s)

func (Upstream) Lookup

func (u Upstream) Lookup(state request.Request, name string, typ uint16) (*dns.Msg, error)

Lookup routes lookups to Self or Forward

Jump to

Keyboard shortcuts

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