dns53

package
v0.0.0-...-ea10d50 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MPL-2.0 Imports: 23 Imported by: 1 module, 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

Index

Constants

View Source
const (
	Port       = "53"        // default DNS port
	PortU16    = uint16(53)  // default DNS port as uint16
	DotPort    = "853"       // default DNS over TLS port
	DotPortU16 = uint16(853) // default DNS over TLS port as uint16

)

Variables

This section is empty.

Functions

func NewErrorerTransport

func NewErrorerTransport(id string) *errorer

NewErrorerTransport returns a DNS transport that always errors out on queries.

func NewGoosTransport

func NewGoosTransport(pctx context.Context, pxs ipn.ProxyProvider) (t *goosr, err error)

NewGoosTransport returns the default Go DNS resolver

func NewGroundedTransport

func NewGroundedTransport(id string) (t dnsx.Transport)

NewGroundedTransport returns a DNS transport that blocks all DNS queries.

func NewMDNSTransport

func NewMDNSTransport(pctx context.Context, protos string, pxr ipn.ProxyProvider) *dnssd

NewMDNSTransport returns a DNS transport that sends all DNS queries to mDNS endpoint.

func NewTLSTransport

func NewTLSTransport(ctx context.Context, id, rawurl string, addrs []string, px ipn.ProxyProvider) (t *dot, err error)

NewTLSTransport returns a DNS over TLS transport, ready for use.

func NewTransport

func NewTransport(ctx context.Context, id, ip, port string, px ipn.ProxyProvider) (t *transport, err error)

NewTransport returns a DNS53 transport serving from ip & port, ready for use.

func NewTransportFrom

func NewTransportFrom(ctx context.Context, id string, ipp netip.AddrPort, px ipn.Proxies) (t dnsx.Transport, err error)

NewTransportFrom returns a DNS53 transport serving from ipp, ready for use.

func NewTransportFromHostname

func NewTransportFromHostname(ctx context.Context, id, hostOrHostport string, ipcsv string, px ipn.ProxyProvider) (t *transport, err error)

NewTransportFromHostname returns a DNS53 transport serving from hostname, ready for use.

Types

This section is empty.

Jump to

Keyboard shortcuts

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