Add test case to show that NULL record types are being logged.
--- /dev/null
+Verify the eve output for a DNS response with a NULL record type.
+
+The pcap contains the first two packets of
+https://redmine.openinfosecfoundation.org/attachments/2062.
--- /dev/null
+%YAML 1.1
+---
+
+outputs:
+ - eve-log:
+ enabled: yes
+ filename: eve.json
+ types:
+ - dns:
+ version: 1
--- /dev/null
+requires:
+ script:
+ - grep -q parse_rdata_null rust/src/dns/parser.rs
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: dns
+ dns.type: query
+ dns.rrtype: "NULL"
+ - filter:
+ count: 1
+ match:
+ event_type: dns
+ dns.type: answer
+ dns.rcode: NOERROR
+ dns.rrtype: "NULL"
+ dns.rdata: "VACKD\u0003\\xc5\\xe9\u0001"