dns-wire
js/internal/net/dns-wire.ts
internal:net/dns-wire - DNS packet helpers shared by DNS-family modules.
This module is intentionally internal. Public code should use
fino:net/dns and fino:net/mdns; these helpers expose raw packet
encoding, decoding, and parser behavior for runtime modules and focused
protocol tests.
Constants
Functions
function _parseResolvConf(text: string): DnsServer[]
function _randomQueryId(): number
function _buildQuery(
id: number,
name: string,
qtype: number,
options: { dnssec?: boolean; udpPayloadSize?: number } = {},
): Uint8Array
function _decodeName(
msg: Uint8Array,
startOffset: number,
): { name: string; nextOffset: number }
function _reverseIP(ip: string): string