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
NewResolver returns a new instance of Resolve with the given address
func (*Resolve) Resolve ¶
func (e *Resolve) Resolve(ctx context.Context, request *dnsresolverV1.ResolveRequest) (*dnsresolverV1.ResolveReply, error)
Resolve implements DnsResolverServer
type UnresolvableError ¶
UnresolvableError is sent as error for unresolvable DNS lookup
func (*UnresolvableError) Error ¶
func (e *UnresolvableError) Error() string
Click to show internal directories.
Click to hide internal directories.