mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

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.
27 lines
678 B
Text
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());
|
|
}
|