Dnsmasq cache dump
9,607
SIGUSR1 works for me, but you must have log-queries parameter enabled in dnsmasq configuration.
Related videos on Youtube
Author by
xpt
Updated on September 18, 2022Comments
-
xpt almost 2 years
How to dump the cache of
dnsmasq
?This,
How to see dnsmasq cache contents
https://www.snbforums.com/threads/how-to-see-dnsmasq-cache-contents.36478/says
sent SIGUSR1 to dump the cache to syslog
I followed it, but get only very few entries. In fact almost all of them are my local settings which is not what I'm after.
So, how to dump the cache of
dnsmasq
? -
DavidPostill over 6 yearsWhile this may answer the question, it would be a better answer if you could provide some explanation for how to enable log queries.
-
mehturt over 6 yearsHow to enable log queries was not the original question. But to answer it, log-queries is the name of configuration parameter of dnsmasq, there's an example in /etc/dnsmasq.conf, though I'm not sure if the path of this configuration file can be different based on distribution the OP is using.
-
DavidPostill over 6 yearsThat should be in your answer not a comment.
-
mehturt over 6 yearsNot sure if that's better now.