⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

build_query

Function build_query 

Source
pub fn build_query(
    buf: &mut [u8],
    id: u16,
    name: &str,
    rtype: DnsRecordType,
) -> Result<usize, DnsError>
Expand description

Build a DNS query message for the given name and record type.

Returns the number of bytes written to buf.