Only log the DNS A query

This commit is contained in:
B. Blechschmidt 2023-03-25 22:25:57 +01:00
parent 33892e28dc
commit bfface515d

View file

@ -85,7 +85,9 @@ impl VirtualDns {
return None;
}
if qtype == DnsRecordType::A as u16 {
log::info!("DNS query: {}", qname);
}
let mut response = Vec::<u8>::new();
response.extend(&data[0..offset + 4]);