as112

package
v0.6.45 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

README

Name

as112 - an AS112 black hole server

Description

as112 is a AS112 black hole handler. It (if it is configured to receive those queries) replies to all queries in the following zones with a no data response:

  • 10.in-addr.arpa
  • 254.169.in-addr.arpa
  • 168.192.in-addr.arpa
  • 16.172.in-addr.arpa
  • 17.172.in-addr.arpa
  • 18.172.in-addr.arpa
  • 19.172.in-addr.arpa
  • 20.172.in-addr.arpa
  • 21.172.in-addr.arpa
  • 22.172.in-addr.arpa
  • 23.172.in-addr.arpa
  • 24.172.in-addr.arpa
  • 25.172.in-addr.arpa
  • 26.172.in-addr.arpa
  • 27.172.in-addr.arpa
  • 28.172.in-addr.arpa
  • 29.172.in-addr.arpa
  • 30.172.in-addr.arpa
  • 31.172.in-addr.arpa

Syntax

as112

Examples

. {
    log
    as112
}

See Also

Also see https://www.as112.net/.

Documentation

Index

Constants

View Source
const SOA string = "@ SOA localhost. root. 1 604800 86400 2419200 604800"

Variables

This section is empty.

Functions

func Err added in v0.5.2

func Err(err error) slog.Attr

Types

type As112

type As112 int

As112 returns refused for queries below the following zone, for other it calls the next handler

- 10.in-addr.arpa. - 254.169.in-addr.arpa. - 168.192.in-addr.arpa. - 16.172.in-addr.arpa. - 17.172.in-addr.arpa. - 18.172.in-addr.arpa. - 19.172.in-addr.arpa. - 20.172.in-addr.arpa. - 21.172.in-addr.arpa. - 22.172.in-addr.arpa. - 23.172.in-addr.arpa. - 24.172.in-addr.arpa. - 25.172.in-addr.arpa. - 26.172.in-addr.arpa. - 27.172.in-addr.arpa. - 28.172.in-addr.arpa. - 29.172.in-addr.arpa. - 30.172.in-addr.arpa. - 31.172.in-addr.arpa.

See https://www.as112.net/.

func (*As112) Err

func (a *As112) Err(err error) error

func (*As112) HandlerFunc

func (a *As112) HandlerFunc(next dns.HandlerFunc) dns.HandlerFunc

func (*As112) Key

func (a *As112) Key() string

Jump to

Keyboard shortcuts

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