PiHole randomly working

The guide needs a little update.
Above is expected if below package isn't installed:

$ apt policy openresolv
openresolv:
  Installed: (none)
  Candidate: 3.12.0-3
  Version table:
     3.12.0-3 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
$ apt-file list openresolv
[..]
openresolv: /etc/resolvconf.conf

Have a read below:

Above you only have to enter the Pi-hole address in the "Primary DNS" field.
And if the router allows, you could also enter the same Pi-hole IP in the "Secondary DNS" field which is the default for the upcoming v6 release if Pi-hole's own DHCP service is enabled:

$ sudo pihole-FTL dhcp-discover
Scanning all your interfaces for DHCP servers
[..]
   dns-server: 10.0.0.2
   dns-server: 10.0.0.2

Usually no other router settings needs changing so leave them on default for diagnosing.

I used to have an ISP provided ZTE modem.
I believe it also supported IPv6.
Have you checked that bit?

You could try out a new Pi-hole v6 feature that scans for IPv6 RA advertised DNS servers.
For that you could down a preliminary v6 pihole-FTL binary with below (it wont get installed):

wget https://ftl.pi-hole.net/new/dhcpv6/pihole-FTL-arm64

Make it executeable:

chmod +x pihole-FTL-arm64

And let it rip:

sudo ./pihole-FTL-arm64 dhcp-discover

The bit you have to look for is "Recursive DNS server"

2 Likes