mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
DNS: Implement NAPTR RR support
My phone is sending NAPTR queries and we reported an unknown RR type 35 in weird.log for the response, so figured I'd just add it.
This commit is contained in:
parent
25b5cabab7
commit
4f1fc296b6
11 changed files with 121 additions and 0 deletions
11
testing/btest/scripts/base/protocols/dns/naptr.zeek
Normal file
11
testing/btest/scripts/base/protocols/dns/naptr.zeek
Normal file
|
@ -0,0 +1,11 @@
|
|||
# @TEST-EXEC: zeek -b -r $TRACES/dns/naptr.pcap %INPUT >out
|
||||
# @TEST-EXEC: btest-diff out
|
||||
# @TEST-EXEC: zeek-cut -m uid query qclass_name qtype_name answers < dns.log > dns.log.cut
|
||||
# @TEST-EXEC: btest-diff dns.log.cut
|
||||
|
||||
@load base/protocols/dns
|
||||
|
||||
event dns_NAPTR_reply(c: connection, msg: dns_msg, ans: dns_answer, naptr: dns_naptr_rr)
|
||||
{
|
||||
print "NAPTR", msg, ans, naptr;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue