-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Feature: Dashboard: Add DNS top permitted domains - pihole Object #29
Comments
actually you can easily apply a filter or KQL filter to achieve this. You can also safe that filter for later use. Its a little bit exaggerated in my oppionen to create a whole new visualization for just this change. Hope that helps :) |
while I thought a little more about this it would maybe be better to just replace the viz to just show the permitted domain. I guess it would be more logical to have a viz showing the blocked domains and another showing only permitted ones. Thanks for pointing me in this direction |
Is what I was thinking as well....same concept on the pihole's native dashboard I'll play around with the viz for now.... |
"not blocked_domain :*" filter does not work. All it does is remove the piholed results, but the top Domains results still show all the results. On the Dashboard and Viz views... |
Not here. If I apply this filter every event containing a blocked_domain field is excluded on every viz and the top blocked domains vis is empty. Do I misunderstand you ? BTW the Screenshot above also shows 0 pinholed Domains in the diagram as we excluded the blocked field -> you only see domains which were accepted and not blocked |
You are right thanks. I'm on mobile right now but I guess I know why Top domains is counting the requests and at this time there is no actual information about the result (blocked or not) |
No rush.....appreciate the effort. :-) |
this gets more complicated than I thought. what do you think about: "is" should grab all reponse events (regardless of type) but I'm not sure if I miss something //e |
Busy testing your suggestions....getting a lot of inconsistencies. I'll feedback once I know more... |
@dbouwer I've made some progress. I've implemented a new field "ip_or_domain_response" which we can use in the permitted domain viz. This way, we can easily show the results which are NOT piholed. However it would be great if you some spare time to test it because right now I'm not 100% sure the counting works 100% correctly. Advice would be to create a new viz with the new field next to the old one to have a better comparization. updated: grok logic: #30 by the way: there maybe some strange differences between the domains being displayed betwenn the old and the new viz but I suspect this sources from the fact pihole is NOT blocking CNAME until now: https://discourse.pi-hole.net/t/apply-pi-hole-blocking-to-cnames/25445/89
got the idea? |
there is another issue we face since we are evaluating the responses because if the response is different from the actual domain query if the answer is a CNAME see here: domain answer not equal domain reponse because of cname (imap-mail.outlook.com vs VIE-efz.ms-acdc.office.com)
answer equal domain (heise.de vs heise.de)
any ideas? |
Hi nin9s I tested the new field and the results are not there just yet. Top Blocked and piholed is exactly the same. |
could it be related to: https://discourse.pi-hole.net/t/total-queries-in-dashboard/9786 |
""We’re counting the queries from inside the resolver (FTLDNS), so it might be different from a program looking at the log."" Ok so we shouldn't really compare them directly. Only issue I see then is that the ip_or_domain_response filter is removing valid permitted domains if you just look at the following 2 URL's from the previous screenshot... They don't even show up in the ip_or_domain_response results |
for mtalk.google.com this would fall under the CNAME issue mentioned above. ip_or_domain_response is populated by the answer, not the request! So if we query for mtalk.google.com the response would be a cname mobile-gtalk.l.google.com. But to be fair, mobile-gtalk.l.google.com isnt showing up either :(
but the count of the permitted domains in general or way to low in arent they? There is still something we might miss here ... |
I'm still investigating to see if I can find an easier pattern in the pihole.log file... |
and what happens with replies like this?? 1 query, 10 replies query[A] za-odc.samsungapps.com from 172.21.0.99 |
what happens is the same as with the other CNAME records
the old behavior was to count the actual request e.g. za-odc.samsungapps.com but the new behavior is to count the response to decide if it a blocked domain or not.
and they look the same as if it wasnt a CNAME reply but a [A] response. and thats also the reason why the count is actually so different Currently I'm thinking of a way to query the pihole api concerning its blocked domain status und only populate "domain_request" if its not a blocked domain.
|
New Feature: Can you please add "DNS Top Permitted Domains" object?
Currently, the DNS top domains object includes all domains and there is no way of only showing the permitted domains.
The text was updated successfully, but these errors were encountered: