dns53

package
v0.0.0-...-bc08e03 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MPL-2.0 Imports: 25 Imported by: 0

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 AddIPMapper

func AddIPMapper(r dnsx.Resolver, protos string, clear bool)

AddIPMapper adds or removes the IPMapper.

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