Pihole is blocking but not showing in dashboard (queries blocked and percentage are 0)

Please follow the below template, it will help us to help you!

If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx instead of lighttpd, or there is some other aspect of your install that is customised) - please use the Community Help category.

Expected Behaviour:

Hardware: Rapberry PI 5
OS: Linux piholeRPI5 6.6.47+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.47-1+rpt1 (2024-09-02) aarch64 GNU/Linux
Pihole should show working counters and tables on the dashboard

Actual Behaviour:

Pihole is blocking what it should but the dashboard is not showing (queries blocked and percentage blocked is 0).
'Total queries' and 'Domains in adlists' is working fine

Debug Token:

https://tricorder.pi-hole.net/vP6dizBM/

Anyone please?
I've browsed the forum here and there are similar issues but not one that is identical.
Thanks in advance.

Could you upload a fresh debug log and post the token again pls?
They expire after 48 hours and the mods/devs that can review them are all volunteers doing this in their free time.

Make sure that under Tools>Privacy you have DNS resolver privacy level set to "show everything".

Yes of course. I understand.
Here is the token: https://tricorder.pi-hole.net/liH0dVeb/

Your debug log shows many errors related to pialert language switch:

(...)
2024-10-05 20:50:23: (mod_fastcgi.c.449) FastCGI-stderr:PHP Warning:  Undefined variable $pia_lang_selected in /home/pi/pialert/front/php/server/language_switch.php on line 5
2024-10-05 20:50:23: (mod_fastcgi.c.449) FastCGI-stderr:PHP Warning:  Undefined variable $pia_lang_selected in /home/pi/pialert/front/php/server/language_switch.php on line 5
2024-10-05 20:50:30: (mod_fastcgi.c.449) FastCGI-stderr:PHP Warning:  Undefined variable $pia_lang_selected in /home/pi/pialert/front/php/server/language_switch.php on line 5

This is not a Pi-hole issue. Please contact the developer of this third party app.

Are you seeing errors in the Pi-hole dashboard?
Does the issue still happen if you uninstall the third party app?

The dashboard is not showing errors. Only the 'queries blocked' and 'percentage blocked' is showing 0 (zero).
That has nothing to do with pialert (but I need to check the language error indeed but that has nothing to do with this I guess).

From a client (not Pi-hole machine) that should be using Pi-hole as DNS, run these commands and post the output:

nslookup flurry.com

nslookup flurry.com 192.168.175.252

Also, after running the commands check the Pi-hole dashboard. Do you see any of these queries?

% nslookup flurry.com
Server:		192.168.175.252
Address:	192.168.175.252#53

Non-authoritative answer:
Name:	flurry.com
Address: 13.248.158.7
Name:	flurry.com
Address: 76.223.84.192

% nslookup flurry.com 192.168.175.252
Server:		192.168.175.252
Address:	192.168.175.252#53

Non-authoritative answer:
Name:	flurry.com
Address: 13.248.158.7
Name:	flurry.com
Address: 76.223.84.192

flurry.com is listed on the dashboard in permitted domain list (which is working fine, it's the blocked domains counter that isn't working)

I just noticed you have a regex to allow everything (.*).

Allow rules always take precedence over block rules.
This means every device using the Default group will never block domains.

You have an entry for your "Local Net" (192.168.175.0/24), setting it in the Default group.
This means all devices in this IP range will allow everything.

Are you sure? Does these blocked domains show up in the Query Log page?

Try nslookup command again, but this time using a domain that you expect to be blocked and look at the Query Log page.

I totally missed that, that was the issue indeed.
Thank you!!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.