Skip to main content

create_dns

Function create_dns 

Source
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 probes
  • worker_id - the unique worker ID of this worker
  • dst - the destination address for the DNS packet
  • is_chaos - whether this is a CHAOS measurement
  • qname - the DNS record to request

§Returns

A DNS packet (including the IP header) as a byte vector. DNS probe identity (worker + measurement).