From 8f059b2841770791a12d26d74de2fb9c326bd609 Mon Sep 17 00:00:00 2001 From: Tom DeCanio Date: Thu, 18 Feb 2016 14:24:26 -0800 Subject: [PATCH] output-json-dns: add logging of NS answer record content. --- src/output-json-dns.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) ?