AdguardTeam / AdGuardHome

Network-wide ads & trackers blocking DNS server
https://adguard.com/adguard-home.html
GNU General Public License v3.0
25.08k stars 1.8k forks source link

DNS caching and DNS query statistics. #1453

Open MasterArmory opened 4 years ago

MasterArmory commented 4 years ago

DNS Caching: This is helpful in speeding up requests. If it's currently implemented, I am not aware of it.

DNS Query Statistics: This is a feature form PiHole. On the dashboard, I would like to see a pie chart of where my DNS resolutions are originating. As a bouns, the average response time from each source would also be good to know.

Thank you.

ameshkov commented 4 years ago

This is helpful in speeding up requests. If it's currently implemented, I am not aware of it.

It is, there are no stats, though.

This is a feature form PiHole. On the dashboard, I would like to see a pie chart of where my DNS resolutions are originating. As a bouns, the average response time from each source would also be good to know.

Could you please explain what exact stats on this pie chart would you like to see?

MasterArmory commented 4 years ago

Could you please explain what exact stats on this pie chart would you like to see?

Yes, I would like to see the total for responses for each DNS Server used and the cache. For example: If I have 200 DNS lookups.
I would like to see a chart showing:

Extra credit if the pie chart or graph also showed the average response time for each DNS Server.

ariqmuhammadt commented 4 years ago

I think it doesn't have dns caching because i can't find it listed as a feature, it is better if you add stats or status in the query if it cached or not and response time like in the PiHole. Thanks

ameshkov commented 4 years ago

Well, it's just so basic that listing it as a feature would be strange.

Currently, you can configure just the DNS cache size: https://github.com/AdguardTeam/AdGuardHome/wiki/Configuration#configuration-file

alexiri commented 4 years ago

Those statistics would be a great addition! It would be nice if we could also see what was in the cache.

timkgh commented 3 years ago

+1 for cache stats: hits, misses, eviction because of TTL vs no room in cache, etc. It helps with cache sizing also to see how the cache is being used.

timkgh commented 3 years ago

Stats per upstream would be very useful also. There's "Average processing time" but I would like to see numbers per upstream.

yuxuan0107 commented 2 years ago

我也需要这个功能

becks0815 commented 2 years ago

Also +1 for more etailed stats. At the moment I am blind concernning relevant settings like TTL data, cache size usage (percentage of cache hits) or different dns servers reaction times, amount of requests sent to the dns servers or even cache usage (percentage of the assigned memory)

adrianmace commented 2 years ago

The DNS pie chart would also give insights into how the weighted load balancing algorithm is working.

My AGH is configured with multiple upstream providers like so, and racing them against each other using Parallel Requests.

# NextDNS
45.90.28.0
45.90.30.0
# Cloudflare (with enhanced Security)
1.1.1.2
1.0.0.2
# Quad 9 (with ECS)
9.9.9.11
149.112.112.11
# Google
8.8.8.8
8.8.4.4

Through the query log I can see that NextDNS is winning most of the time, but I'd like a visualisation with percentage breakdown on the home screen.

ely105 commented 1 year ago

+1 on this. It would be nice to have simple cache stats on the dashboard. Cache hits % is mostly useful to see how effective the cache is for the time period displayed.

Kani3D commented 1 year ago

+1 on this

peepsnet commented 1 year ago

I want to see this too... On the dashboard page...

Upstream DNS Server Requestes Avg
Cached 12522 2ms
tls://1.1.1.1 9855 19ms
https://1.1.1.1/query 5578 16ms
8.8.8.8 452 33ms

https://github.com/AdguardTeam/AdGuardHome/issues/2013

gyCfjSnO commented 1 year ago

It's now past three (3) years since this request was raised 😂😂😂😂

schzhn commented 1 year ago

Upstream statistics added in v0.107.37.

ainar-g commented 1 year ago

@schzhn, there are still cache statistics to figure out.

timkgh commented 1 year ago

@ainar-g It would also be useful to add stats for parental_block_host and safebrowsing_block_host response times under "Average processing time".

ainar-g commented 1 year ago

@timkgh, I'm not entirely sure what you mean, but please make a separate feature request about that.

timkgh commented 1 year ago

@timkgh, I'm not entirely sure what you mean, but please make a separate feature request about that.

If "browsing security" and "parental control" are enabled in "General settings", then standard-block.dns.adguard.com and family-block.dns.adguard.com are used for these features, via DNS queries. The Dashboard UI should also show DNS stats for these 2 servers, in the "Average processing time" card. I think it's relevant in this issue as it also relates to DNS stats.

zgqq commented 3 months ago

Need to hit cache stats.