package
0.75.0
Repository: https://github.com/adguardteam/dnsproxy.git
Documentation: pkg.go.dev

# Functions

DefaultHostsPaths returns the slice of default paths to system hosts files.
ListenConfig returns the default [net.ListenConfig] used by the plain-DNS servers in this module.
ParseSubnet parses s either as a CIDR prefix itself, or as an IP address, returning the corresponding single-IP CIDR prefix.
UDPGetOOBSize returns maximum size of the received OOB data.
UDPRead reads the message from conn using buf and receives a control-message payload of size udpOOBSize from it.
UDPSetOptions sets flag options on a UDP socket to be able to receive the necessary OOB data.
UDPWrite writes the data to the remoteAddr using conn.