Recently revised my system to use the pihole as DHCP server and dns (obviously). System is running on a raspberry zero w (I suspect this is the issue). All devices now point to the pihole and everyone and then the internet seems to go down for those on web browsers. Streaming services do not stop (Xbox, Hulu, etc)
Expected Behaviour:
All devices to get ip addresses from pihole and no ads
Actual Behaviour:
System keeps hanging and going way over 1 for the load. Causes DNS resolving to fail and computers to think the internet isn’t working.
Why do you suspect this is the issue? A Zero W is more than powerful enough to run Pi-hole, even on a busy network.
Your debug log shows that Pi-hole is working normally. Let's take a look at the recent activity to the Pi-hole. Please post the output of the following commands from the Pi terminal:
echo ">stats >quit" | nc localhost 4711
ls -lha /etc/pihole/*.db
ls -lha /var/log/pihole.log*
free -h
When you run htop, what processes are consuming the CPU?
Thank you for your reply. Good to know about the W. It had been fine until I told Pihole to be DHCP as well, that's why I was thinking it may be the problem.
That pihole.log is enormously large, and large logs for Pi-hole are almost always caused by an excessive amount of DNS requests.
The most common reason for excessive DNS queries would be a DNS loop.
Another indication for such a loop is if your router shows up as Pi-hole's top client by far:
echo ">top-clients >quit" | nc localhost 4711
Your debug log shows you've enabled Conditional Forwarding.
That could close a partial DNS loop if your router would be configured for using your Pi-hole as its upstream DNS server.
Since Pi-hole is handling DHCP now, there is no need for asking your router for DHCP names of local devices via CF.
See if disabling CF is getting you back to normal levels of DNS activity.
For a start, you could consider to delete Pi-hole's log files.
There's no harm in losing them - Pi-hole keeps record of queries past in its query database.
Of course, this would also mean that your query database would be huge by now.
If you don't mind also losing all of Pi-hole's long-term query history, you could delete Pi-hole's query database:
@David_West You should also consider to disable DNS logging. There is no downside to this else than that the data will be missing for possible debugging (which you may not need once the disk is free):
pihole logging off
The historical data will still be stored in the database (/etc/pihole/pihole-FTL.db).