pub fn create_dns(
src: &Address,
dst: &Address,
sport: u16,
id: &DnsProbeId,
is_chaos: bool,
qname: &str,
) -> Vec<u8> ⓘExpand description
Creates a DNS packet.
§Arguments
origin- the source address and port values we use for our probesworker_id- the unique worker ID of this workerdst- the destination address for the DNS packetis_chaos- whether this is a CHAOS measurementqname- the DNS record to request
§Returns
A DNS packet (including the IP header) as a byte vector. DNS probe identity (worker + measurement).