[Dnsmasq-discuss] list dns cache and expiration
albert.aribaud at free.fr
Thu Jul 28 17:27:41 BST 2016
Le Thu, 28 Jul 2016 06:46:51 +0800
"水静流深" <1248283536 at qq.com> a écrit:
> Dnsmasq have been installed on my os.
> cache-size=1024 was written in /etc/dnsmasq.conf.
> 1.how to list all the dns cache on my dnsmasq?
See the dnsmasq manpage for the log-queries option (note that if you
intend on processing the cache dump, you may want to configure your
system so that the log from dnsmasq is directed to a specific file
where no other process logs anything, or even avoid the system log
altogether and instead feed the dnsmasq output directly to some
> 2.how to keep the dns cache expiration till 3600 seconds on dnsmasq?
The dnsmasq manpage lists all TTL-related options. Watch out, dnsmasq
does not give you full control on the TTL, though.
More information about the Dnsmasq-discuss