|
|
|
@ -503,6 +503,9 @@ fn dns_log_json_answer(js: &mut JsonBuilder, response: &DNSResponse, flags: u64)
|
|
|
|
|
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)?;
|
|
|
|
@ -705,6 +708,9 @@ fn dns_log_json_answer_v1(header: &DNSHeader, answer: &DNSAnswerEntry)
|
|
|
|
|
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))?;
|
|
|
|
|