chaos

package
v0.0.0-...-71af635 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

README

chaos

The chaos middleware allows CoreDNS to respond to TXT queries in the CH class. This is useful for retrieving version or author information from the server.

Syntax

chaos [version] [authors...]
  • version the version to return. Defaults to CoreDNS-, if not set.
  • authors what authors to return. No default.

Note that you have to make sure that this middleware will get actual queries for the following zones: version.bind, version.server, authors.bind, hostname.bind and id.server.

Examples

chaos CoreDNS-001 "Miek Gieben" miek@miek.nl

Documentation

Overview

Package chaos implements a middleware that answer to 'CH version.bind TXT' type queries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chaos

type Chaos struct {
	Next    middleware.Handler
	Version string
	Authors map[string]bool
}

Chaos allows CoreDNS to reply to CH TXT queries and return author or version information.

func (Chaos) ServeDNS

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

ServeDNS implements the middleware.Handler interface.

Jump to

Keyboard shortcuts

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