any

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 14

README

any

Name

any - gives a minimal response to ANY queries.

Description

any basically blocks ANY queries by responding to them with a short HINFO reply. See RFC 8482 for details.

Syntax

any

Examples

example.org {
    whoami
    any
}

A dig +nocmd ANY example.org +noall +answer now returns:

example.org.  8482	IN	HINFO	"ANY obsoleted" "See RFC 8482"

See Also

RFC 8482.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Any

type Any struct {
	Next plugin.Handler
}

Any is a plugin that returns a HINFO reply to ANY queries.

func (Any) Name

func (a Any) Name() string

Name implements the Handler interface.

func (Any) ServeDNS

func (a Any) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *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