autoipv6ptr

package
v0.0.0-...-2a0e2a1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const AUTOIPV6PTR_PLUGIN_NAME string = "autoipv6ptr"

Variables

This section is empty.

Functions

func AddColons

func AddColons(input string) string

func AddHyphens

func AddHyphens(input string) string

func RemoveDots

func RemoveDots(input string) string

func RemoveHyphens

func RemoveHyphens(input string) string

func RemoveIP6DotArpa

func RemoveIP6DotArpa(input string) string

func RemoveSuffix

func RemoveSuffix(input string, suffix string) string

func ReverseString

func ReverseString(input string) string

Types

type AutoIPv6PTR

type AutoIPv6PTR struct {
	Next plugin.Handler

	// Presets are static entries which should not be generated
	Presets map[string]string
	TTL     uint32

	Suffix string
}

func (AutoIPv6PTR) Name

func (a AutoIPv6PTR) Name() string

func (AutoIPv6PTR) ServeDNS

func (v6ptr AutoIPv6PTR) ServeDNS(ctx context.Context, writer dns.ResponseWriter, request *dns.Msg) (int, error)

ServeDNS implements the plugin.Handler interface.

Jump to

Keyboard shortcuts

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