This changes the logic a bit for v2, checking the rrtype of the
query to see if the response should be logged.
uint64_t flags)
{
do {
- if (!DNSRRTypeEnabled(entry->type, flags)) {
- continue;
- }
-
json_t *jdata = json_object();
if (jdata == NULL) {
return;
SCLogDebug("got a DNS response and now logging !!");
if (aft->dnslog_ctx->version == DNS_VERSION_2) {
+ DNSQueryEntry *query = TAILQ_FIRST(&tx->query_list);
+ if (query && !DNSRRTypeEnabled(query->type, aft->dnslog_ctx->flags)) {
+ return;
+ }
OutputAnswerV2(aft, js, tx);
} else {
DNSAnswerEntry *entry = NULL;