blowback

package module
v0.0.0-...-5e14738 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

README

blowback

CoreDNS plugin designed for utilization wtih ipin to establish tunnels between two destinations. Almost entirely modeled off of https://github.com/miekg/dump.

implement private rr data used to transmit cipher information

https://miek.nl/2014/september/21/idn-and-private-rr-in-go-dns/

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClosePrivateRrdata

func ClosePrivateRrdata()

func DnsClientTest

func DnsClientTest()

func Register

func Register()

Types

type Blowback

type Blowback struct {
	Next plugin.Handler
	// the url of the proxy server which we will initiate
	// a callback to the dns client requestor
	// todo(bonedaddy): require access control
	ProxyServerURL string
}

Dump implement the plugin interface.

func New

func New() *Blowback

func (Blowback) Name

func (b Blowback) Name() string

Name implements the Handler interface.

func (Blowback) Resolve

func (b Blowback) Resolve(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (*dns.Msg, int, error)

taken from https://github.com/wenerme/coredns-ipin

func (Blowback) ServeDNS

func (b Blowback) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)

ServeDNS implements the plugin.Handler interface.

type DataBundle

type DataBundle struct {
	Target string
	Extra  string
}

func (*DataBundle) Copy

func (db *DataBundle) Copy(dest dns.PrivateRdata) error

func (*DataBundle) Len

func (db *DataBundle) Len() int

func (*DataBundle) Pack

func (db *DataBundle) Pack(buf []byte) (int, error)

func (*DataBundle) Parse

func (db *DataBundle) Parse(sx []string) error

func (*DataBundle) String

func (db *DataBundle) String() string

func (*DataBundle) Unpack

func (db *DataBundle) Unpack(buf []byte) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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