reverselookup

package
v5.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginType = "reverse_lookup"
)

Variables

This section is empty.

Functions

func Init

func Init(bp *coremain.BP, args any) (any, error)

func NewReverseLookup

func NewReverseLookup(bp *coremain.BP, args *Args) (any, error)

Types

type Args

type Args struct {
	Size      int  `yaml:"size"` // Default is 64*1024
	HandlePTR bool `yaml:"handle_ptr"`
	TTL       int  `yaml:"ttl"` // Default is 7200 (2h)
}

type ReverseLookup

type ReverseLookup struct {
	// contains filtered or unexported fields
}

func (*ReverseLookup) Close

func (p *ReverseLookup) Close() error

func (*ReverseLookup) Exec

func (*ReverseLookup) ResponsePTR

func (p *ReverseLookup) ResponsePTR(q *dns.Msg) *dns.Msg

func (*ReverseLookup) ServeHTTP

func (p *ReverseLookup) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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