zeek/testing/btest/scripts/policy/protocols/dns/detect-external-names-mdns-broadcast.zeek
Johanna Amann 7a1a2c8d63 IPv6 support for detect-external-names and testcase
This commit builds on top of GH-4183 and adds IPv6 support for
policy/protocols/dns/detect-external-names.

Additionally it adds a test-case for this file testing it with mDNS
queries.
2025-02-04 17:34:43 +00:00

27 lines
678 B
Text

# Test verifies that mDNS broadcasts are not logged by default.
# @TEST-EXEC: zeek -b -C -r $TRACES/dns/mdns.pcap %INPUT
# @TEST-EXEC: touch notice.log
# @TEST-EXEC: btest-diff notice.log
##! First test - no log
@load base/protocols/dns
@load policy/protocols/dns/detect-external-names
redef Site::local_zones += {"example.inalid"};
@TEST-START-NEXT
##! second test - should output log due to changed config
@load base/protocols/dns
@load policy/protocols/dns/detect-external-names
@load base/frameworks/config
redef Site::local_zones += {"example.inalid"};
event zeek_init()
{
print Site::local_nets;
Config::set_value("DNS::skip_resp_host_port_pairs", set());
}