[Dnsmasq-discuss] dnsmasq cache dump
Simon Kelley
simon at thekelleys.org.uk
Mon Feb 11 09:11:47 GMT 2013
On 11/02/13 09:02, trang dang wrote:
> Hello,
>
> I use dnsmasq 2.63 on debian, only dns is on, and want to read cache
> dump with a small script. Till now the cache dump has been written in
> extra log file (log-facility is on) or in syslog.
> Is there any way to get an extra cache file? It will be easier to parse
> the content of the cache.
> Furthermore, the host name in the log is cut after about 39 characters.
> Is there any way to get the complete content?
>
There's not way to do either of those, sorry. You best bet is probably
to start hacking on the existing cache dumping code in src/cache.c to
make it do what you want.
Simon.
More information about the Dnsmasq-discuss
mailing list