latency

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

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

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

README

CoreDNS Latency Plugin

Name

latency - let you add custom latency before answer it'll also dump the queries

Description

** 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

An extra TCP server is also run on port 2204 and accepts commands

Change current latency:

LATENCY xxx

Syntax

latency

Examples

Dump all queries.

. {
    latency
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Latency

type Latency struct {
	Next plugin.Handler
}

Latency implement the plugin interface.

func (Latency) Name

func (d Latency) Name() string

Name implements the Handler interface.

func (Latency) ServeDNS

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