whoami

package module
v0.0.0-...-05a6653 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

README

coredns-whoami

fork of the coredns plugin whoami(https://github.com/coredns/coredns/tree/master/plugin/whoami) where we return the IP address in the Answer section instead of the Additional section.

Documentation

Overview

Package whoami implements a plugin that returns details about the resolving querying it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Whoami

type Whoami struct{}

Whoami is a plugin that returns your IP address, port and the protocol used for connecting to CoreDNS.

func (Whoami) Name

func (wh Whoami) Name() string

Name implements the Handler interface.

func (Whoami) ServeDNS

func (wh Whoami) 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