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.