Skip to content

Commit

Permalink
dns-tcp-www-google-com: v2 and v3 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonish committed Jul 5, 2024
1 parent ba8a520 commit 9135570
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions tests/dns/dns-tcp-www-google-com/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
pcap: ../../dns-tcp-www-google-com-v1/dns.pcap

checks:
- filter:
count: 1
match:
src_ip: "10.16.1.11"
dest_ip: "8.8.4.4"
event_type: dns
dns.type: request
- filter:
count: 1
match:
src_ip: "10.16.1.11"
dest_ip: "8.8.4.4"
event_type: dns
dns.type: response
2 changes: 2 additions & 0 deletions tests/dns/v2/dns-tcp-www-google-com/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
A basic TCP DNS test that sends one request with a response that
contains multiple answers.
13 changes: 13 additions & 0 deletions tests/dns/v2/dns-tcp-www-google-com/suricata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
%YAML 1.1
---

# Remove stats logging.
stats:
enabled: no

outputs:
- eve-log:
enabled: yes
types:
- dns:
version: 2
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
pcap: ../dns-tcp-www-google-com-v1/dns.pcap

requires:
features:
- HAVE_LIBJANSSON
pcap: ../../../dns-tcp-www-google-com-v1/dns.pcap

checks:
- filter:
Expand Down

0 comments on commit 9135570

Please sign in to comment.