I had the problem with Pi-hole not resolving anymore - FTL was not working anymore. Fixed this. But solution was not found straight forward. Looks like I broke something else.
Three different behaviors I need to fix:
Sometimes URLs cannot be resolved - Pi-hole log throwing SERVFAIL. It could be that this only happens if „new“ addresses hit the unbound pi-hole which usually takes longer. But for me I even need to open it several times before it is finally successful.
Reconfiguring of the Pi-hole via the UI throws a 4711 error („PHP error (2): fsockopen(): unable to connect to 127.0.0.1:4711 (Connection refused) in /var/www/html/admin/scripts/pi-hole/php/FTL.php:47“) from time to time. Never had this issue before.
Hostnames are not found and revolved. I already added local DNS records. But Pi-hole ignores those but cannot get and make use of DHCP.
I use a Raspi 4 for which is used in parallel for HomeBridge and ioBroker as well as smaller stuff. Whole setup is connected via Ethernet - directly to my FritzBox which I also use as DHCP server. IPv6 is disable in my network. Software is update to date.
My initial error which now led to these behaviors pushed me to change main PI-hole config files. I even reinstalled Pi-hole and unbound. Could be that this was a bad idea…
That helped me already! Fixed different topics regarding my Pi-hole. Works great now!
Only issue left is the missing local name resolution: I tried a lot already. I am using Conditional Forwarding. Checkmarks for non-FQDN and reverse lookups forwarding enabled/disabled. My resolv.com links to contains 127.0.01 as nameserver, domain is set (of course the same stored within Conditional Forwarding config). DHCP on my Fritzbox. I even edited a comprehensive list of Pi-hole internal DNS names (/etc/pihole/custom.list). The /etc/hosts/ only contains the 127.0.0.1/localhost. 01-piholeconfi in /etc/dnsmasq.d/ looks like this:
Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:
the error PHP error (2): fsockopen(): unable to connect to 127.0.0.1:4711 (Connection refused) only means connection to FTL failed (probably because FTL was offline).
Nothing else can be inferred from this PHP error message.
OK, that sounds good. I also do not see issues soured the main functionality. Good to hear! Message also does not occur too often.
But still my Pi-hole does not resolves names. In the meantime it again uses local DNS names configured in the custom list. Even though conditional forwarding is enabled it does not use names from the DHCP server.