mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
dns: Remove AD and CD flags from log
There was a misunderstanding whether to include them by default in the dns.log, so remove them again. There had also been a discussion and quirk that AD of a request would always be overwritten by reply in the dns.log unless the reply is missing. For now, let users extend dns.log themselves for what best fits their requirements, rather than adding these flags by default. Add a btest to print AD and CD flags for smoke testing still.
This commit is contained in:
parent
e25d9bdee9
commit
cf2da5160b
29 changed files with 121 additions and 109 deletions
|
@ -64,13 +64,6 @@ export {
|
|||
## using DNSSEC. This field represents the 3-bit Z field using
|
||||
## the specification from RFC 1035.
|
||||
Z: count &log &default=0;
|
||||
## The DNSSEC Authentic Data bit in a response message indicates
|
||||
## that the name server has authenticated all the data in the
|
||||
## answer and authority sections.
|
||||
AD: bool &log &default=F;
|
||||
## The DNSSEC Checking Disabled bit in a query indicates that
|
||||
## pending, non-authenticated data is acceptable to the sender
|
||||
CD: bool &log &default=F;
|
||||
## The set of resource descriptions in the query answer.
|
||||
answers: vector of string &log &optional;
|
||||
## The caching intervals of the associated RRs described by the
|
||||
|
@ -372,8 +365,6 @@ hook DNS::do_reply(c: connection, msg: dns_msg, ans: dns_answer, reply: string)
|
|||
# the request, which is not what we want to track.
|
||||
return;
|
||||
|
||||
c$dns$AD = msg$AD;
|
||||
|
||||
if ( ans$answer_type == DNS_ANS )
|
||||
{
|
||||
if ( ! c$dns?$query )
|
||||
|
@ -438,8 +429,6 @@ event dns_request(c: connection, msg: dns_msg, query: string, qtype: count, qcla
|
|||
c$dns$qtype = qtype;
|
||||
c$dns$qtype_name = query_types[qtype];
|
||||
c$dns$Z = msg$Z;
|
||||
c$dns$AD = msg$AD;
|
||||
c$dns$CD = msg$CD;
|
||||
|
||||
# Decode netbios name queries
|
||||
# Note: I'm ignoring the name type for now. Not sure if this should be
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue