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?
Asked
Active
Viewed 1,185 times
2

showkey
- 115
- 1
- 4
- 19
1 Answers
1
To dump the cache of dnsmasq, you have to need to enable log-queries.
Then type:
# kill -SIGUSR1 `pgrep dnsmasq`
Also for keep the TTL for cache expiration to 3600 seconds, you need to start dnsmasq with:
--max-cache-ttl=<time>

ebal
- 187
- 3