Discussion:
[Dnsmasq-discuss] dnsmasq end of cache dump
Shankara Ramamurthy
2018-07-30 11:34:40 UTC
Permalink
Hi,
I'm currently running dnsmasq v2.79 and have redirected logging to a named pipe and I periodically send SIGUSR1 from my application to get a dump of the cache contents. When the cache is dumped, is there a mechanism to indicate that the cache dump is complete or some indication on the number of cache entries about to be dumped? 
Thanks & Regards,-Shankara R.
Simon Kelley
2018-07-31 15:08:32 UTC
Permalink
There's no end-of-dump marker; I guess your application was never
envisaged. A patch to add one would be simple.

As a woraround: a cache dump always _starts_ with the line

time <number>

so if you dumped the cache twice, the start of the second dump would
serve as a unique marker for the end of the first.

Cheers,

Simon.
Post by Shankara Ramamurthy
Hi,
I'm currently running dnsmasq v2.79 and have redirected logging to a
named pipe and I periodically send SIGUSR1 from my application to get a
dump of the cache contents. When the cache is dumped, is there a
mechanism to indicate that the cache dump is complete or some indication
on the number of cache entries about to be dumped? 
Thanks & Regards,
-Shankara R.
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Loading...