From: Tom DeCanio Date: Thu, 18 Feb 2016 22:24:26 +0000 (-0800) Subject: output-json-dns: add logging of NS answer record content. X-Git-Tag: suricata-3.0.1RC1~135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f059b2841770791a12d26d74de2fb9c326bd609;p=thirdparty%2Fsuricata.git output-json-dns: add logging of NS answer record content. --- diff --git a/src/output-json-dns.c b/src/output-json-dns.c index c44be89a43..7165d80e13 100644 --- a/src/output-json-dns.c +++ b/src/output-json-dns.c @@ -161,7 +161,8 @@ static void OutputAnswer(LogDnsLogThread *aft, json_t *djs, DNSTransaction *tx, } else if (entry->data_len == 0) { json_object_set_new(js, "rdata", json_string("")); } else if (entry->type == DNS_RECORD_TYPE_TXT || entry->type == DNS_RECORD_TYPE_CNAME || - entry->type == DNS_RECORD_TYPE_MX || entry->type == DNS_RECORD_TYPE_PTR) { + entry->type == DNS_RECORD_TYPE_MX || entry->type == DNS_RECORD_TYPE_PTR || + entry->type == DNS_RECORD_TYPE_NS) { if (entry->data_len != 0) { char buffer[256] = ""; uint16_t copy_len = entry->data_len < (sizeof(buffer) - 1) ?