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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址