Hello! I installed Pi-Hole today (Raspberry Pi 4), and the admin site says, it works, but it doesn't block ads in my network. What could the problem be?
[✓] IPv4 address(es) bound to the eth0 interface:
192.168.8.184/24
dns-server: 192.168.8.1
dns-server: 192.168.8.100
PIHOLE_INTERFACE=eth0
IPV4_ADDRESS=192.168.8.184/24
You configured your router to distribute it's own IP as DNS server via DHCP. Interestingly, the IPs differ between your ethernet and wifi interface. But neither is the IP of your Pi-hole.
Did you set Pi-hole as the upstream DNS server of your router?
__
Probably the easiest would be to set your Pi-hole's IP as DNS server in your routers DHCP settings. Afterwards you need to dis/reconnect your devices from the network to pick up the new settings.
Hello! Thanks for your reply. I already tried to set Pi-Hole as DNS, but my router doesn't have any DNS settings in DHCP, but I have DDNS there. Is DDNS the same as DNS?
If you can't set the DNS server in DHCP settings, can you disable them completely? Because you could activate Pi-hole's DHCP server instead.
If deactivating is not an option, you could limit your routers DHCP pool to a single address and assign this permanently to your Pi-hole device. Additionally, enable Pi-hole's DHCP server with a non-overlapping DCHP IP address range.
If you have made changes to your DHCP server, you will need to renew the DHCP lease on all connected clients so they will pick up the new DNS information.
After you do this, if you still see ads on a client, do the following:
From a client that you believe should be connected to the Pi-Hole for DNS, from the command prompt or terminal on that client (and not via ssh or Putty to the Pi), what is the output of
I tried it on my pc and there are still ads. The output of the nslookup command is: pi.hole wurde von homerouter.cpe nicht gefunden: Non-existent domain. which means something like: pi.hole couldn't be found by homerouter.cpe: Non-existent domain.
By the way, DHCP is disabled on my router... And I didn't change anything in the pi-hole DNS settings. Could that be a problem? There is still the google dns server selected.
This PC is using the IPv6 address of the router as preferred DNS server. If you need IPv6 you can use Pi-hole's ULA address to be used by your clients. Otherwise disable IPv6 on the client.
Pi-hole can't block YT ads without blocking the video content. Ads are delivered from the same domains as the videos.