So I had my pihole setup and working (or so i thought). But have since done a little messing and cant seem to get it working properly.
I have a google wifi pro router (with static ip from isp).
Pihole is installed correctly with unbound
I have left DNS on automatic on the router (as instructed by someone) when i had the dns set as the pihole everything was working (i think) Is this correct?
I changed the DHCP pool on the Routers LAN settings to start with my pihole ip? Is this correct?
I enabled DHCP on pihole and pointed the DNS to the pihole.
I put router ip in the Router (gateway) IP address section.
My iphone doesnt seem to be blocking ads currently and thats what I am trying to resolve. I just think i have something in the wrong place. Appreciate any help
Your router has two addresses.
One on the WAN/Internet interface connected to your ISP infrastructure.
And the other interface is connected to your LAN.
The public IP address on the WAN interface is received automatically from your ISP via DHCP.
The private IP address on the LAN interface is usually default OOTB a static one (manually configured).
What guide did you use to install Unbound?
Bare metal, Docker or VM?
And could you try without Unbound at first for diagnosing to simplify matters?
You could always if satisfied add Unbound to the equation again later.
Yes leave DNS settings for the WAN/Internet side on default automatic.
If Pi-hole is going to replace your router DHCP service, the Pi-hole host should be configured with a statis IP address instead of receiving one automatically via DHCP.
The Pi-hole DHCP service cant assign the own host an IP!
Preferred is to configure an IP for Pi-hole thats outside the DHCP pool but still inside your LAN network subnet mask.
So if the mask is a /24 (255.255.255.0) and the pool is ...50 to ...250, you set the static Pi-hole IP to like for example ...10.
If using the Pi-hole DHCP service as a replacement for the one in your router, you dont have to configure anything on the router except disabling the DHCP service on the router.
That last bit is important!
Dont need to, see above answer.
Above is all for the IPv4 side.
DHCP is IPv4 only.
Yes DHCPv6 exsists but some implementations like Android dont support it.
IPv6 works slightly different and if clients also get IPv6 DNS servers assigned via IPv6 Router Advertisement (IPV6 RA) that are not Pi-holed, ads etc might still leak in.
So you have to figure out if IPv6 is supported on your LAN and uplink to your ISP.
And if your clients are configured with IPv6 DNS servers that are not Pi-holed.
Below one might reveal if your network supports IPv6:
Appreciate the response. I went ahead and removed unbound to get PiHole working first like you suggested. But I had installed it via docker yeah.
So pihole is up and running, what do I change to point everything thru the pihole? Do i change the router lan IP to the pihole? I have already reserved the IP for the pihole.
I do not have IPV6 enabled, i can disable that at my router level. I dont really have anyway to disable DHCP on the router, the only thing i have is changing my WAN to DHCP from my static ip, which im sure wouldnt work. And then I have DHCP Address Pool and IP reservations.
Didnt have to remove Unbound, just dont configure it for upstream DNS in Pi-hole.
Configure something else like Cloudflare, Google or your ISP DNS server.
Is Pi-hole also a Docker container?
Bc that complicates matters a bit if want it to do DHCP for your LAN:
If Pi-hole is running as a DHCP service on your LAN exclusively, you dont have to configure anything.
The Pi-hole DHCP service tells its clients to use Pi-hole for DNS as the only DNS server automatically.
If thats so, you cant let Pi-hole do DHCP services for your LAN bc that would mean two DHCP services will be active including the one from your router and things are bound to go south.
There are some trick for specific routers and maybe one exist for your router model too.
But I have zero experience with yours so cant help you with that ... sorry.
Below some docs for reference:
On that same page there is a "Router setup" section with examples for a bunch of popular routers
If you default all router settings, and the router has options to configure the WAN/Intenet DNS settings, you could try drop the Pi-hole IP there.
But only the Pi-hole IP and no others!
You'll miss out on allot of Pi-hole features like individual client stats and client group configurations, but DNS will be filtered by Pi-hole.
Just a note, they confuse "static IP address for the Raspberry Pi" with a "static DHCP reservation".
A true static IP is one you manually configure on the host itself and not one received automaticaly via DHCP!
EDIT: If its latest Raspbian/Pi-OS Bookworm, you can configure a true static IP on the Raspi with below in a shell (Network Manager Text User Interface):
sudo nmtui
"Option 1" is what I stated in my previous reply.
Try "Option 2" first to have all features available.