]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
output-json-dns: add logging of NS answer record content.
authorTom DeCanio <decanio.tom@gmail.com>
Thu, 18 Feb 2016 22:24:26 +0000 (14:24 -0800)
committerVictor Julien <victor@inliniac.net>
Mon, 22 Feb 2016 10:50:01 +0000 (11:50 +0100)
src/output-json-dns.c

index c44be89a43acfe73fb01d75298a3f653ffb84e74..7165d80e136bd8927fd2e545c4dd38dd939c3c58 100644 (file)
@@ -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) ?