I have a perfectly working Pi-hole installation on my router (a Debian box connected to the ISP fibre and to the switch that powers the rest of my network). BTW thank you for this wonderful service.
My ISP's fibre failed and I will be stuck without Internet for a few days. My router is not useful anymore except for its DNS and DHCP functionality (DNS for the LAN).
Pi-hole is however getting crazy without access to Internet by constantly querying what seems to be NTP servers (this scrolls continuously):
Dec 3 17:19:49 dnsmasq[846]: config error is REFUSED (EDE: network error)
Dec 3 17:19:49 dnsmasq[846]: query[A] 0.north-america.pool.ntp.org from 192.168.10.210
Dec 3 17:19:49 dnsmasq[846]: config error is REFUSED (EDE: network error)
Dec 3 17:19:49 dnsmasq[846]: query[A] pool.ntp.org from 192.168.10.208
Dec 3 17:19:49 dnsmasq[846]: config error is REFUSED (EDE: network error)
Dec 3 17:19:49 dnsmasq[846]: query[A] pool.ntp.org from 192.168.10.105
Dec 3 17:19:49 dnsmasq[846]: config error is REFUSED (EDE: network error)
Dec 3 17:19:49 dnsmasq[846]: query[A] 0.amazon.pool.ntp.org from 192.168.10.151
Dec 3 17:19:49 dnsmasq[846]: config error is REFUSED (EDE: network error)
Dec 3 17:19:49 dnsmasq[846]: query[A] 0.north-america.pool.ntp.org from 192.168.10.43
Dec 3 17:19:49 dnsmasq[846]: config error is REFUSED (EDE: network error)
Dec 3 17:19:49 dnsmasq[846]: query[A] 1.north-america.pool.ntp.org from 192.168.10.210
Dec 3 17:19:49 dnsmasq[846]: config error is REFUSED (EDE: network error)
The file is growing fast, about 3 GB /day. This is not a problem disk-wise, but it seems to seriously disrupt its functionality: among others it does not respond to DHCP requests anymore and shows memory problems (error repeated constantly):
[2022-12-03 17:22:01.771 846M] Resizing "FTL-queries" from 1974239232 to (35258368 * 56) == 1974468608 (/dev/shm: 2.0GB used, 2.0GB total, FTL uses 2.0GB)
[2022-12-03 17:22:01.771 846M] WARNING: RAM shortage (/dev/shm) ahead: 99% is used (/dev/shm: 2.0GB used, 2.0GB total, FTL uses 2.0GB).
What is the correct way to deal with such a situation? (lack of Internet access) - since this is temporary, I would like to just retain DHCP and DNS functionality and disable all the rest (or whatever is needed to stop Internet requests)
Debug Token:
I do not know how to manually upload the debug file to tricorder
UPDATES
I managed to mitigate the issue somehow by:
- deleting
/etc/pihole/pihole-FTL.db
→ the Athens of millions of failed queries were not processable (at least this is my impression) - I manually commented out my
server=
lines in/etc/dnsmasq.d/99-local-mine.conf
- disabling
chrony
to limit the number of NTP queries
This made Pi-hole reactive again but I am still getting many failed DNS requests in the logs. If I could quickly respond to any DNS query outside of my local domain and return an NXDOMAIN
(or something similar) and not log that it would help.
Anyway, I now know what to manually purge during these two days