Discussion:
[Dnsmasq-discuss] list dns cache and expiration
水静流深
2016-07-27 22:46:51 UTC
Permalink
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?
2.how to keep the dns cache expiration till 3600 seconds on dnsmasq?
Albert ARIBAUD
2016-07-28 16:27:41 UTC
Permalink
Hi,

Le Thu, 28 Jul 2016 06:46:51 +0800
Post by 水静流深
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
process).
Post by 水静流深
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.

Amicalement,
--
Albert.
Loading...