--- /dev/null
+Test the 'dns.response' sticky buffer.
+
+This test verifies that data in a name field or an rdata field
+of a DNS response will trigger a signature.
\ No newline at end of file
--- /dev/null
+# Will alert on name field of Query section in response
+alert dns any any -> any any (dns.response; content: "dne.oisf.net"; sid:1; rev:1;)
+
+# Will alert on rdata field of Authority section in response
+alert dns any any -> any any (dns.response; content: "ns-110.awsdns-13.com"; sid:2; rev:1;)
--- /dev/null
+requires:
+ min-version: 8
+
+pcap: ../../dns-eve-v2-udp-nxdomain-soa/dns-udp-nxdomain-soa.pcap
+
+checks:
+ - filter:
+ count: 1
+ match:
+ alert.signature_id: 1
+ direction: to_client
+ app_proto: dns
+ - filter:
+ count: 1
+ match:
+ alert.signature_id: 2
+ direction: to_client
+ app_proto: dns
+