Pi-Hole not blocking ads

Are you absolutely sure the DHCP service on the router is disabled ?
This bit:

Can you check again please ?

EDIT:
Ohw on the windows box you can quickly renew lease with:

ipconfig /renew

But the command prompt needs to be started with admin permissions!

This is what it looks like right now

Ok I am at a loss.
Right now it appears 192.168.1.1 is handing out DHCP details with the correct DNS server 192.168.1.252 and no second IP for DNS.
If below one blocks on the client to 0.0.0.0, your good to go:

C:\>nslookup doubleclick.com
Server:  noads.dehakkelaar.nl
Address:  10.0.0.2

Name:    doubleclick.com
Addresses:  ::
          0.0.0.0

C:>nslookup doubleclick.com
Server: raspberrypi
Address: 192.168.1.252

Non-authoritative answer:
Name: doubleclick.com
Addresses: 2607:f8b0:4005:802::200e
172.217.0.46

Dont know what's going on with the Windows client.
Maybe someone else here knows whats up ???
Sorry :frowning:

It's cool, thanks for the help. Edit, even in windows I have assigned the pi-hole as the DNS.

1 Like

EDIT: appears to be configured correctly :wink:
Wait and maybe someone comes by who knows.

EDIT2: Ohw and last very important one .... have you tried turning it off and on again :wink:

1 Like

By unplug and plugging it?

Everyting!
Its a joke from the "IT Crowd" series:

1 Like

(face palms self) Why did I not do that earlier, so obvious. It's finally blocking ads!

Thanks for the help!

1 Like

I had it working when I left, then I come back and the ads are back like nothing happened, how could this happened?

(Edit 1) The only other thing I did was add a bunch of list to the blacklist.

(Edit 2) The result of ipconfig /all:
DHCP Server . . . . . . . . . . . : 192.168.1.252
DNS Servers . . . . . . . . . . . : 192.168.1.252

(Edit 3) I turned the modem, router, and the pi off and on and it's now blocking ads again.

(Edit 4) The ads suddenly come back about an hour later. Maybe 50 minutes.

(Edit 5) I have unpluged all three and plugged it back in, it's now blocking ads (12:12 PST)

(Edit 6)

  • As of now, in the router under LAN dhcp server tab, dhcp is disabled, in the dns server setting, it's set to the pi.

  • In the WAN settings, DNS server 1 is the pi, the 2nd is 1.1.1.1

  • In the pi, on the Upstream DNS Servers tab, I use opennic to get my dns, I use the top two. So I check both custom ivp4 options.

  • I also changed the DHCP lease time from 24 to 8760

-(12:23 PST) ads are back like if I didn't even have a ad block at all.

For your clients, it doesnt really mater what you enter here.
The DNS path from client perspective is like below now without the router DNS:

Client --> Pi-hole --> Opennic DNS --> Root DNS servers

Your router might still want to resolve via these WAN DNS servers though to check for firmware updates for example ... or sync time.

Always check with ipconfig /all if DNS server(s) have changed!
And nslookup pi.hole on the clients should not fail!

Can you post sample link with ads and point out in which section of the page you see the ad ?

  • The firmware for the router is up to date, the pi is also up to date

  • ipconfig /all:
    DNS Servers . . . . . . . . . . . : 192.168.1.252

nslookup pi.hole
Server: raspberrypi
Address: 192.168.1.252

Name: pi.hole
Address: 192.168.1.252

(Edit 1) for the time on the router, it uses pool.ntp.org

(Edit 2) Here's a pic of the speedtest site as of now

Those ads should be blocked as I can see none.
Have you tried another browser ?
Cache can be nasty sometimes.

I used brave (default, with the blockers off on that site) and edge, ads still show.

Do you have another device to test from ?
Make sure to renew lease on the device !

This is from another pc (using windows 7). On this pc, I set it to google dns. ads don't show.

What do you mean by that ?
Where did you configure this "google dns" ?

That screenshot looks clean.
Something weird going on with the other Win PC.

EDIT: Are you using a VPN dialer ?
That one might alter things.

Blockquote
What do you mean by that ?
Where did you configure this “google dns” ?

I set the other PC in the settings under properties, ivp4, dns.
8.8.8.8
8.8.4.4?

Something weird going on with the other Win PC

I looked into my PC's settings, under settings under properties, ivp4, dns.
192.168.1.252
1.1.1.1

I do not have VPN

Why do you manually configure DNS to Google ?
Dont you want this PC to get its DNS server assigned via DHCP from Pi-hole ?
We are not testing Google's ad blocking capabilities :wink:

That 1.1.1.1 Cloudflare address is causing a bypass of Pi-hole thus ads come in.