dev

Setup Dnsmasq#

Just run the docker command (image page):

docker run \
--name dnsmasq \
-d \
-p 53:53/udp \
--cap-add=NET_ADMIN \
andyshinn/dnsmasq

Gather metrics.#

See cache statistics section.

The cache statistics are also available in the DNS as answers to queries of class CHAOS and type TXT in domain bind. The domain names are cachesize.bind, insertions.bind, evictions.bind, misses.bind, hits.bind, auth.bind and servers.bind. An example command to query this, using the dig utility would be:

dig +short chaos txt cachesize.bind @127.0.0.1

Last updated on

Monitor everything in real time โ€“ for free

Troubleshoot slowdowns and anomalies in your infrastructure with thousands of per-second metrics, meaningful visualizations, and insightful health alarms with zero configuration.

Get Netdata