I recently faced a short power outage due to hurricane Milton. Fortunately, my devices remained on thanks to a UPS, but after the power was restored, I began seeing this error repeatedly in Pi-hole's logs:
WARNING in dnsmasq core: Maximum number of concurrent DNS queries reached (max: 150)
I don't know if it was just a coincidence that this error started to happen after the power outage or this was an issue slowly building up before the outage.
Setup details:
- System: Raspberry Pi 4
- Running on: Docker
- Docker Tag: 2024.07.0
- Pi-hole: v5.18.3
- FTL: v5.25.2
- Web Interface: v5.21
What I've Tried:
- Created
02-custom-settings.conf
in/etc/dnsmasq.d/
to override default settings from01-pihole.conf
. - Adjusted the following values in
02-custom-settings.conf
:max-concurrent-queries=512
(Increased from 150 to 256 to 512)dns-forward-max=1024
(Increased from 150 to 256 to 512 to 1024)cache-size=20000
(Getting desperate at this point)min-cache-ttl=300
(Recommended according to another post)
- Tried restarting the DNS resolver, Flush network tables, restart DNS server, re-deploy the docker-compose for Pi-hole. The issue still persists.
The error keeps saying that (max: 150)
despite me manually trying to increase it. Maybe it doesn't have permission to read the configuration? I'd figure I'd give it a shot at fixing it:
root@pihole:/etc/dnsmasq.d# ls -l /etc/dnsmasq.d/01-pihole.conf
-rw-r--r-- 1 root root 1515 Oct 10 14:30 /etc/dnsmasq.d/01-pihole.conf
root@pihole:/etc/dnsmasq.d# chmod 644 /etc/dnsmasq.d/02-custom-settings.conf
root@pihole:/etc/dnsmasq.d# chown root:root /etc/dnsmasq.d/02-custom-settings.conf
root@pihole:/etc/dnsmasq.d# ls -l /etc/dnsmasq.d/01-pihole.conf
-rw-r--r-- 1 root root 1515 Oct 10 14:30 /etc/dnsmasq.d/01-pihole.conf
root@pihole:/etc/dnsmasq.d# ls -l /etc/dnsmasq.d/02-custom-settings.conf
-rw-r--r-- 1 root root 576 Oct 10 14:29 /etc/dnsmasq.d/02-custom-settings.conf
After doing so, pi-hole doesn't seem to be reading 02-custom-settings.conf
still! Despite trying to restart the DNS resolver, flush network tables, restart DNS server, re-deploy the docker-compose for Pi-hole, etc.
At this point, I am so lost and don't know what to do anymore.
Any assistance is greatly appreciated. Cleanup of the hurricane is already a headache.