donutdns

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginName = "donutdns"
	ServerType = "dns"
)

Variables

This section is empty.

Functions

func Setup added in v0.3.0

func Setup(c *caddy.Controller) error

Setup will parse plugin config and register the donutdns plugin with the CoreDNS core server.

todo: test with TestController

Types

type DonutDNS

type DonutDNS struct {
	Next plugin.Handler
	// contains filtered or unexported fields
}

func (DonutDNS) Name

func (dd DonutDNS) Name() string

func (DonutDNS) Ready

func (dd DonutDNS) Ready() bool

func (DonutDNS) ServeDNS

func (dd DonutDNS) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)

Jump to

Keyboard shortcuts

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