[Dnsmasq-discuss] Stats improvement

Simon Kelley simon at thekelleys.org.uk
Tue Mar 25 21:37:12 UTC 2014

Hash: SHA1

My feeling it that this should use TXT records, then they can be
extracted into any application using eg

dig +short chaos txt stats.bind

or the equivalent, which outputs the string to stdout.

The current code has,

cache-size, insertions which evicted unexpired cache entries, queries
forwarded, queries answered locally, queries for auth zones.

then for each upstream server,

queries sent, and queries retried or failed.

We could have

size.bind and evictions.bind for cache size and evictions
local.bind, upstream.bind and auth.bind for queries.

But how to handle the variable number of upstream servers. Just free text?


On 24/03/14 22:53, Olivier Mauras wrote:
> On Mon, 2014-03-24 at 21:55 +0000, Simon Kelley wrote:
>> On 24/03/14 11:25, Olivier Mauras wrote:
>>> Hello,
>>> I was wondering what would be the effort, and if there'd 
>>> actually be any interest for some dnsmasq statistics
>>> improvements. (Yes i'm splitting dicussions ^^) For
>>> monitoring/graph purposes, actual dnsmasq stats are a bit
>>> difficult to use and completely unusable if using "log_queries"
>>> as it takes too long to retrieve them inside logs.
>>> I'd love to see a stats "interface" that would output 
>>> total_queries, cache_hits, cache_misses, memory used by cache, 
>>> etc....
>>> Thanks, Olivier
>> There's an idea to make this available as a DNS query, in the
>> same way that
>> dig chaos txt version.bind
>> returns the version number.
>> Comments?
>> Cheers,
>> Simon.
> That would be a really good way of doing it!

Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/


More information about the Dnsmasq-discuss mailing list