dnstunnel

package
v0.2.2-dev.5 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: AGPL-3.0 Imports: 28 Imported by: 0 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.

Documentation

Overview

Package dnstunnel is the node's DNS tunnel engine (experimental): the Mistgate fork of MasterDnsVPN, in-process. The node is the authoritative server of one zone per inbound, and the tunnel rides inside ordinary DNS queries that the devices' recursive resolvers deliver to it, so it works where only DNS gets out. The engine owns the sockets (UDP and TCP port 53 on each public IPv4 address of the node, see listen.go) and feeds every DNS message to the fork's server; the fork answers the zone itself (SOA, NS, A, REFUSED for names outside it), decrypts the tunnel and calls the engine to connect a stream (through Env.Egress) or to resolve a DNS query (through the node's resolvers).

Nothing runs until an enabled inbound exists: no socket, no goroutine, no key file.

Index

Constants

View Source
const Protocol = "dnstunnel"

Variables

View Source
var Addrs = hostAddrs

Addrs lists the IPv4 addresses the engine listens on. Production: every public-looking address of the node's interfaces (hostAddrs); tests replace it with loopback.

Functions

func FactoryAt

func FactoryAt(keyPath string) engine.Factory

FactoryAt returns the engine factory; keyPath is the file that holds the node's static key, made at the first enabled inbound (key.go).

Types

This section is empty.

Jump to

Keyboard shortcuts

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