Pihole is not blocking ads, upon investigation to the web UI I see the message the FTL is offline and Lost Connection to API. This happens intermittently and appears to self heal every now and then but lately is more broken than working.
Welcome to the Pi-hole community, allantaylor8907.
In addition to your pihole-FTL currently not being active, there are two major issues apparent from your debug log.
server=127.0.0.1
a) You've configured localhost (127.0.0.1) as one of Pi-hole's upstream DNS servers.
This may result in a DNS loop, as your Pi-hole would query itself infinitely when chosen.
In fact, I suspect this to have already happened, as your log shows an enormous 1.1 million DNS queries from just two clients during the last 24 hours.
*** [ DIAGNOSING ]: Networking
[β] No IPv4 address(es) found on the br0 interface.
[β] No IPv6 address(es) found on the br0 interface.
(...)
[β] Gateway did not respond.
b) Your Pi-hole does not integrate properly into your network.
You could try to address both problems by running the following command from a terminal on your Pi-hole machine:
pihole -r
Choose reconfigure and pick valid upstream DNS servers when asked.
Hi! Thanks for the quick reply. The change to the upstream address being 127.0.0.1 was recent, as the docker file I am using specified that, I have reverted the change.
Regarding being unavailable on the network.
Pihole is running in a container and has its own IP exposed. I can access the UI and CLI to Pihole directly on its IP from any computer on the network. Can you clarify what may need to be done here?
I have tried reinstalling and reconfiguring with no success.
A few confusing points.
I am configuring based on: https://hub.docker.com/r/pihole/pihole/
Specifically:
Starting with the v4.1.1 release your Pi-hole container may encounter issues starting the DNS service unless ran with the following setting:
--dns=127.0.0.1 --dns=1.1.1.1 The second server can be any DNS IP of your choosing, but the first dns must be 127.0.0.1
But it was mentioned that localhost should not be one of the DNS servers so I am not sure what to do.
I am using bridged mode and giving pihole it own IP. I can reach the IP on the network and the router gives it out fine. I see requests hitting pihole for a few minutes before it completely falls over so I think the networking error is a false flag:
*** [ DIAGNOSING ]: Networking
[β] No IPv4 address(es) found on the br0 interface.
[β] No IPv6 address(es) found on the br0 interface.
[i] Default IPv4 gateway: 192.168.55.1
* Pinging 192.168.55.1...
[β] Gateway did not respond. (https://discourse.pi-hole.net/t/why-is-a-default-gateway-important-for-pi-hole/3546)
Sorry for the misunderstanding.
Your original post didn't mention you are running a dockered Pi-hole.
You should not reconfigure a Pi-hole docker image, ever - it is intended ready for use.
That does not invalidate my earlier advice on not using 127.0.0.1 as Pi-hole's upstream DNS server, as this would create a DNS loop. Your current debug log shows you are still closing that loop.
Pi-hole's upstream DNS servers can be customised by setting Docker environment variables for Pi-hole, DNS1: <IP address 1> and DNS2: <IP address 2>.
Alternatively, you can change upstream DNS servers via Pi-hole's Settings | DNS pane as well.
Note those changes will only survive Docker container restarts if /etc/dndsmaq.d/ has been exported as volume (which it should be by default with the official image).
In contrast, the --dns Docker option you are referring to does configure DNS resolution for your Docker container, and should be set as described.
Yet there are no IP addresses bound to its network interface, and thus no connectivity:
*** [ DIAGNOSING ]: Networking
[β] No IPv4 address(es) found on the br0 interface.
[β] No IPv6 address(es) found on the br0 interface.
(...)
[i] Default IPv4 gateway: 192.168.55.1
[β] Gateway did not respond.
It would seem that Pi-hole did not receive an IP address while starting.
Since an IP address wouldn't simply vanish:
Did you restart your Pi-hole Docker container and/or the Docker host OS ?
No...Its the strangest thing, I can see on the graph each time it drops out and comes back.
I have the pihole container statically assigned to that IP and running on an unraid server that stays on 24/7. I was just in the UI looking around and got the FTL offline message and lost connection to API and then 30 seconds later its back up and queries are streaming in, and then another minute or so later it falls back offline again.
Let me summarise where we stand:
We have confirmed that your Pi-hole runs if assigned an IP address, as with 192.168.55.169, after sucessfully avoiding a DNS loop in your configuration.
We also saw your Pi-hole losing network connectivity twice now, with no IP address assigned to your bridge interface.
Network connectivity is supplied by your UnRaid/Docker environment, Pi-hole just makes use of it.
You may have a better chance for support when frequenting their forums.
are you running this Pi-hole for personal home use? That amount of queries looks quite large. To compare, my home network rarely breaks the 1000 threshold on my graphs.
Putting the intermittent service dropping / respawning together with the amount of queries I Think you're running out of shared memory and crashing FTL.
If you aren't expected this amount of traffic you may want to shut it down and secure your firewall / port forwarding.
Interesting observation, to clarify, this is personal use at home. and the only thing that is exposed over the internet is my plex server and maybe some camera devices, but to my knowledge they are dynamically handled and not static port forwarded.
Other potentially useful information:
Using Luma wifi - Pihole IP is network wide DNS address
I have 160gb of RAM on the server, so I can certainly allocate more I just wasn't sure how to do so up front - I am new to docker
edit: I enabled network wide firewall in Luma - continuing to monitor
edit2: I was in the dashboard and saw 5k plus queries stream in within a matter of seconds and then the FTL offline message. I am not expecting traffic like this as diginc mentioned - just a regular home use network. Any thoughts on tracking down the offender(s) ?
The signature we saw in this was /var/log/pihole-FTL.log showing lots of resizing of Resizing "/FTL-queries" in rapid succession often followed by crashes. Do you see that in your FTL log?
I do see resizing in the FTL log like you mentioned in rapid succession, but its crashing so fast I can't even get a screen grab.
It looks exactly like what was happening in the github link you mentioned, back to back increases until a restart occurs. I am going to investigate increasing the shared memory based on that article.
It seems that may only be a bandaid to a larger problem not directly pihole related. Because Pihole is not handling DHCP I cant get the address for the device making so many requests from there. Just curious if you had any ideas on that front. I thought wireshark but I think that only captures packets for the device its running on.
You wouldn't need Wireshark, as Pi-hole is only seeing DNS traffic, and it is perfectly logging DNS requests.
You should still consider finding the source for these requests, as it is their sheer amount that puts Pi-hole under stress.
Have a look at Tools | Tail pihole.log for details of requests being processed as they come in, or do a tail -f /var/log/pihole.log on your Pi-hole machine (<Ctrl>><C> will terminate).
Once you've identified that client, you'd have to find out why it is firing so many DNS requests.