How do I clear DNS response cache on NxFilter without restarting it?

https://forum.nxfilter.org/tips-tricks/65-how-do-i-clear-dns-response-cache-on-nxfilter-without-restarting-it

Date: 2021-08-16 00:04:25


User: jahastech

Since v4.3.9.4, we have 'cachecon.sh' script in /nxfilter/bin directory.



Code:
To clear out the in-memory cache,

cachecon.sh -m

To clear out the persistent cache,

cachecon.sh -p

You also can delete cache for single domain,

cachecon.sh -m google.com
cachecon.sh -p google.com

If you want view the current cache info for a domain,

cachecon.sh -s google.com

You also can specify query type. If it's for MX query,

cachecon.sh -s google.com 15
cachecon.sh -m google.com 15