Dnstap CLIENT_RESPONSE and query time information

Borja Marcos borjam at sarenet.es
Wed Nov 23 10:47:13 UTC 2022



> On 23 Nov 2022, at 10:09, Borja Marcos <borjam at sarenet.es> wrote:
> 
> Hi,
> 
> I am working on some DNS monitoring using Dnstap. I have noticed that RR messages include
> *both* the query time and response time but, despite being recommended on the Protobuf
> specification (I know, it’s just a recommendation!) the CR messages do not include it. 
> 
> Is there any particular reason for it? Looking at lib/dnstap.c, there is a switch clause which
> especifically prevents Dnstap message types other than RR and FR from obtaining
> a query time. 

I made a simple modification to dnstap.c (line 816, so that it allows CR messages to obtain
the query timestamp and it works, the query time (qtime) is already passed to dns_dt_send().

I have tried with 9.18.9 for now.


Cheers,



Borja.








More information about the bind-users mailing list