if header.flags & 0x0080 != 0 {
js.set_bool("ra", true)?;
}
+ if header.flags & 0x0040 != 0 {
+ js.set_bool("z", true)?;
+ }
for query in &response.queries {
js.set_string_from_bytes("rrname", &query.name)?;
if header.flags & 0x0080 != 0 {
js.set_bool("ra", true)?;
}
+ if header.flags & 0x0040 != 0 {
+ js.set_bool("z", true)?;
+ }
js.set_string("rcode", &dns_rcode_string(header.flags))?;
js.set_string_from_bytes("rrname", &answer.name)?;
js.set_string("rrtype", &dns_rrtype_string(answer.rrtype))?;