tordns

package module
v0.0.0-...-4ffd4a6 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: MIT Imports: 13 Imported by: 0

README

Make your dns requests over tor

In order to use this plugin you'll have to clone coredns and modify the plugin.cfg file to include the following line: remotehosts:github.com/schoentoon/tordns After this you can just build coredns the way you usually build it which is simply calling make. After this confirm that the plugin was build correctly into coredns using the following command.

$ ./coredns -plugins | grep tordns
  dns.tordns

Configuration

Now to actually configure the plugin have a look at the following Corefile example

. {
  tordns {
    controlsocket /var/lib/tor/control
  }
}

In this case it'll connect with tor through the control socket at /var/lib/tor/control. From there on it'll resolve the actual dns queries using the builtin tor resolver. Do keep in mind that due to the way this resolver works we can only do A and AAAA queries, so you may want to add another resolver to catch other types.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TorDns

type TorDns struct {
	Conn *control.Conn
	// contains filtered or unexported fields
}

type TorDnsPlugin

type TorDnsPlugin struct {
	*TorDns

	Next plugin.Handler
}

func (TorDnsPlugin) Name

func (t TorDnsPlugin) Name() string

func (TorDnsPlugin) ServeDNS

func (t TorDnsPlugin) ServeDNS(ctx context.Context, w 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