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: ? 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

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