636f7374 / durian.cr

⛵️ Available - Crystal Domain Name System Resolver
MIT License
23 stars 5 forks source link

support for CH class #2

Closed ilmanzo closed 4 years ago

ilmanzo commented 4 years ago

Adding the CH class allows to query the bind 'dummy' zones, in order to get statistics about the dns server itself. This is useful to analyze cache hit/miss ratio in caching resolvers.

https://miek.nl/2009/july/31/dns-classes/

some sample useful queries, tested in dnsmasq 2.80:

dig +short chaos txt version.bind
dig +short chaos txt servers.bind
dig +short chaos txt cachesize.bind
dig +short chaos txt insertions.bind
dig +short chaos txt evictions.bind
dig +short chaos txt hits.bind
dig +short chaos txt misses.bind
dig +short chaos txt auth.bind
636f7374 commented 4 years ago

Thanks for your contribution.