docker

package module
v0.0.0-...-4159845 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

README

dump

Name

dump - dumps all incoming queries on standard output.

Description

dump uses the synax from the log plugin, and defaults to this format:

{remote} - {>id} {type} {class} {name} {proto} {port}

So a query will show up as:

:1 - 3644 MX IN example.net. udp 46481

Note that this is shorter than the default for log so you can distinguish between the two outputs. log only logs queries that have seen a response, so this plugin can be used as a debugging aid to just dump all incoming queries.

Syntax

dump

Examples

Dump all queries.

. {
    dump
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Docker

type Docker struct {
	Next plugin.Handler
}

Docker implement the plugin interface.

func (Docker) Name

func (d Docker) Name() string

Name implements the Handler interface.

func (Docker) ServeDNS

func (d Docker) 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