Reaching out to the help community for some assistance on an issue that occurred this morning and I am unable to resolve. I'm experiencing the same issue on two RaspberryPis with the same PiHole install config. I do use captive DNS on my router to force hard-coded DNS devices thru the PiHole.
Expected Behaviour:
PiHole starts and runs as described, blocks ads, executes DNS queries, etc.
Actual Behaviour:
Web interface has "NaN" across the top, system is non responsive after running restartdns command or flushing logs. Must reboot to get the system to be responsive again. The FTL log seems to be filling up even despite changing my router's DNS to quad 8.
-rw-r--r-- 1 www-data www-data 2.7K Jan 29 17:36 /var/log/lighttpd/error.log
-----head of error.log------
...
2022-01-29 14:04:24: (mod_fastcgi.c.421) FastCGI-stderr: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 50331656 bytes) in /var/www/html/admin/scripts/pi-hole/php/FTL.php on line 82
You are getting a lot of queries, which is consuming memory, causing rate limits and contributing to your growing logs:
-rw-r--r-- 1 pihole pihole 113M Jan 29 17:48 /var/log/pihole-FTL.log
-----head of pihole-FTL.log------
[2022-01-29 00:00:10.740 22974/T22979] Still rate-limiting 10.0.0.1 as it made additional 1197 queries
[2022-01-29 00:01:10.803 22974/T22979] Ending rate-limitation of 10.0.0.1
[2022-01-29 00:02:41.927 22974M] Rate-limiting 10.0.0.1 for at least 29 seconds
[2022-01-29 00:03:10.926 22974/T22979] Ending rate-limitation of 10.0.0.1
[2022-01-29 00:08:44.121 22974M] Rate-limiting 10.0.0.1 for at least 26 seconds
[2022-01-29 00:09:10.301 22974/T22979] Ending rate-limitation of 10.0.0.1
...
-----tail of pihole-FTL.log------
[2022-01-29 17:48:25.128 1676M] Resizing "FTL-queries" from 860389376 to (19558400 * 44) == 860569600 (/dev/shm: 861.4MB used, 2.0GB total, FTL uses 861.4MB)
Why do you have these DNS servers specified? Is unbound running on the Pi shown in this debug log? If so, you should be using the loopback IP (127.0.0.1).
This device is running unbound and I have changed DNS 1 back to loopback and removed DNS 2. After saving, I had to reboot the system as it became non-responsive. Query counts are certainly quite large.
Thanks, deHakkelaar. I did disable the captive DNS rules on the firewall yesterday and numbers significantly dropped. Also did some investigating and may have found a couple of culprits in my TP-Link Kasa smart plugs. Power cycled several of them that seemed chatty to see if helps. Looks like they have a knack for blast requests to ntp servers (to which I added a wildcard whitelisting to my piholes).
I've added an exemption for my piholes and turned captive DNS back on. Will monitor for a bit to see if the situation improves.
Three days later and all Pi-Holes are stable, I'm not being blasted by DNS queries, and I've done some extra research to modify config files on IoT devices to manually turn of analytics reporting and phoning home. Appreciate the guidance!