dns53

package
v0.0.0-...-dd04f72 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MPL-2.0 Imports: 23 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

)

Variables

This section is empty.

Functions

func AddIPMapper

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

AddIPMapper adds or removes the IPMapper.

func NewGoosTransport

func NewGoosTransport(pxs ipn.Proxies, ctl protect.Controller) (t dnsx.Transport, 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(protos string) (t dnsx.Transport)

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

func NewTLSTransport

func NewTLSTransport(id, rawurl string, addrs []string, px ipn.Proxies, ctl protect.Controller) (t dnsx.Transport, err error)

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

func NewTransport

func NewTransport(id, ip, port string, px ipn.Proxies, ctl protect.Controller) (t dnsx.Transport, err error)

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

func NewTransportFrom

func NewTransportFrom(id string, ipp netip.AddrPort, px ipn.Proxies, ctl protect.Controller) (t dnsx.Transport, err error)

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

func NewTransportFromHostname

func NewTransportFromHostname(id, hostname string, ipcsv string, px ipn.Proxies, ctl protect.Controller) (t dnsx.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