tunnelshell

package module
v0.0.0-...-25f037f Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: AGPL-3.0 Imports: 11 Imported by: 0

README

Reverse DNS Shell Extension for coredns

Add tunnelshell in plugin.cfg for coredns and rebuild it, for example, after hosts

plugin.cfg hosts:hosts tunnelshell:github.com/adc/coredns-tunnelshell

then type make

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tunnel

type Tunnel struct {
	Next            plugin.Handler
	PendingOutbound []string
	Conns           []net.Conn
	OutCounter      int
	InCounter       int
	sync.Mutex
}

func New

func New() *Tunnel

func (*Tunnel) Name

func (t *Tunnel) Name() string

Name implements the Handler interface.

func (*Tunnel) ServeDNS

func (t *Tunnel) ServeDNS(ctx context.Context, rw dns.ResponseWriter, r *dns.Msg) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL