--- /dev/null
+Test the `dns.answer.name` sticky buffer.
+
+The PCAP here was a request created with Scapy to include answers in
+the request. However the response is from a real DNS server with the
+provided request.
--- /dev/null
+# Should alert in both directions as no flow is provided.
+alert dns any any -> any any (dns.answer.name; content:"oisf"; sid:1; rev:1;)
+
+# Should only alert in the request direction.
+alert dns any any -> any any (dns.answer.name; content:"oisf"; flow:to_server; sid:2; rev:1;)
+
+# Should only alert in the response direction.
+alert dns any any -> any any (dns.answer.name; content:"oisf"; flow:to_client; sid:3; rev:1;)