resolve

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package resolve is a CoreDNS plugin that establishes a grpc endpoint listening for DnsResolver requests and reformats them into ordinary dns requests which in turn is sent to the ordinary CoreDNS endpoint.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionIdKey added in v0.2.8

type CollectionIdKey struct{}

CollectionIdKey is used as context value key for collectionId

type ExecutionIdKey added in v0.3.0

type ExecutionIdKey struct{}

type Resolve

type Resolve struct {
	Next plugin.Handler
	dnsresolverV1.UnimplementedDnsResolverServer

	*grpc.Server
	// contains filtered or unexported fields
}

Resolve is a plugin which converts requests from a DnsResolverServer (grpc) to an ordinary dns request.

func NewResolver added in v0.1.2

func NewResolver(addr string) *Resolve

NewResolver returns a new instance of Resolve with the given address

func (*Resolve) Name added in v0.3.1

func (s *Resolve) Name() string

Name implements the Handler interface.

func (*Resolve) OnStartup

func (e *Resolve) OnStartup() error

func (*Resolve) OnStop added in v0.2.8

func (e *Resolve) OnStop() error

func (*Resolve) Resolve

Resolve implements DnsResolverServer

type UnresolvableError

type UnresolvableError struct {
	Host  string
	Rcode int
	Err   error
}

UnresolvableError is sent as error for unresolvable DNS lookup

func (*UnresolvableError) Error

func (e *UnresolvableError) Error() string

Jump to

Keyboard shortcuts

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