rewriteip

package module
v0.0.0-...-9cc8ddb Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

README

rewriteip

Name

rewriteip

Description

rewriteip - rewrites A/AAAA answers.

Syntax

rewriteip TO

Where TO is valid IP address

Examples

rewriteip 127.0.0.1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RewriteIP

type RewriteIP struct {
	Next plugin.Handler
	To   net.IP
}

RewriteIP is a plugin that rewrites IP response for A, AAA, SRV responses

func (*RewriteIP) Name

func (i *RewriteIP) Name() string

Name implements the Handler interface.

func (*RewriteIP) ServeDNS

func (i *RewriteIP) 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