[Dnsmasq-discuss] Logging milliseconds

Albert ARIBAUD albert.aribaud at free.fr
Mon Jun 20 14:09:20 BST 2016


Hi,

Le Mon, 20 Jun 2016 13:13:26 +0200
<mabra at manfbraun.de> a écrit:

> Hello !
> 
> I am just facing the situation, that my dns-request needing a very
> long time, and this is wether my requesting client, nor dnsmasq. It's
> the provider trying my attempt to ignore his DNSs and use free DNSs,
> as we have several here in Germany.
> 
> Its not a whole week gone, when I opened an issue about DNS blocking.
> It was that, I have enough facts - I'll not try to write whole story
> here. But at that last issue, I found me in the situation, where I
> want to analyse dnsmasq's log.
> 
> I am missing [wrote about that here more then a year ago:
> DNSMASQ log output format] the relationship between a clients
> request and dnsmasq's answer to it. There can be several in
> progress ... From the log, you'll not see it.
> 
> Today, due to the DNS blocking story, I want to make a stats over
> the log, but it contains only seconds in the timestamp, were I
> wished it to have milliseconds too. Is that possible ? I cannot
> find something about this.
> 
> Additionally, at best, I would fetch the output, if I start the
> process by myself and pipe its output directly. Probably not
> doable for me. I would write a mini program in C# ... Another
> solution would be, to create a pipe in the filesystem and define
> it as the logfile for the dnsmasq. I have done this, at least with
> apache, it works (Apache has the charm, to be able to host
> a program und pump it's output into it - but thats easy for me).
> 
> Wether or not, without milliseconds, it would be sensless.
> 
> Any help, notes and hints are very welcome !!

If you can run wireshark or even simply tcpdump on the machine that runs
dnsmasq, then you could log DNS requests and replies with accurate time
stamping. Would this be enough for you?

> Thanks anyway,

Amicalement,
-- 
Albert.



More information about the Dnsmasq-discuss mailing list