[Dnsmasq-discuss] can dnsmasq report DNS resolve time in ms?

Olaf Westrik weizen_42 at ipcop-forum.de
Tue Sep 28 12:23:04 BST 2010


On 2010-09-03 01:40, Adam Dingle wrote:

> I'm running dnsmasq on my Ubuntu machine, and I'd like to gather
> statistics about how quickly my ISP's DNS server handles all the DNS
> queries I throw at it.  So I'd like dnsmasq to report how many
> milliseconds it takes the upstream DNS server to respond to queries.  I
> tried logging to a file, but the timestamp on each line has a 1-second
> resolution, which is not good enough since I want a count in
> milliseconds.  So I can't see any way to get this information from
> dnsmasq - is this correct?  Would you accept a patch that caused dnsmasq
> to report elapsed milliseconds on each response from a DNS server
> (possibly enabled via yet another command-line option?)

Would it not be better/easier/generally useful to report some kind of 
statistic (min., average, max. response times) as part of the log output 
generated by sending SIGUSR1 ?


Olaf



More information about the Dnsmasq-discuss mailing list