Ticket #3340:
https://redmine.openinfosecfoundation.org/issues/3340
event_type: "dns"
dns.rrtype: "A"
+ # Also check that the source and destination addresses and ports are
+ # as expected.
+ - filter:
+ filename: only-a.json
+ count: 1
+ match:
+ pcap_cnt: 1
+ src_ip: "10.16.1.11"
+ src_port: 54888
+ dest_ip: "8.8.8.8"
+ dest_port: 53
+ dns.type: "query"
+ - filter:
+ filename: only-a.json
+ count: 1
+ match:
+ pcap_cnt: 2
+ src_ip: "10.16.1.11"
+ src_port: 54888
+ dest_ip: "8.8.8.8"
+ dest_port: 53
+ dns.type: "answer"
+
# Check that we only have A and AAAA requests.
- filter:
filename: a-and-aaaa-requests-only.json
match:
event_type: dns
dns.type: answer
+
+ - filter:
+ count: 1
+ match:
+ event_type: dns
+ dns.type: answer
+ src_ip: "10.16.1.11"
+ dest_ip: "8.8.4.4"
dns.answers[0].rrtype: CNAME
dns.answers[1].rrtype: A
dns.answers[2].rrtype: A
+
+ - filter:
+ count: 1
+ match:
+ event_type: dns
+ dns.type: answer
+ src_ip: "10.16.1.11"
+ dest_ip: "10.16.1.1"
- filter:
count: 1
match:
+ src_ip: "10.16.1.11"
+ dest_ip: "8.8.4.4"
event_type: dns
dns.type: query
- filter:
count: 12
match:
+ src_ip: "10.16.1.11"
+ dest_ip: "8.8.4.4"
event_type: dns
dns.type: answer