serverip

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

README

ServerIP

A simple CoreDNS plugin that returns the IP via which the server was accessed.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Serverip

type Serverip struct{}

func (Serverip) Name

func (si Serverip) Name() string

Name implements the Handler interface.

func (Serverip) ServeDNS

func (si Serverip) 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