# Pi-hole not blocking adclick.g.doubleclick.net / googleads.g.doubleclick.net / pagead2.googlesyndication.com

**URL:** <https://discourse.pi-hole.net/t/pi-hole-not-blocking-adclick-g-doubleclick-net-googleads-g-doubleclick-net-pagead2-googlesyndication-com/69073>\
**Category:** Help\
**Created:** [March 20, 2024, 12:00pm UTC](https://discourse.pi-hole.net/t/pi-hole-not-blocking-adclick-g-doubleclick-net-googleads-g-doubleclick-net-pagead2-googlesyndication-com/69073 "2024-03-20T12:00:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![balantispat](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/balantispat/32/41002_2.png) [@balantispat](https://discourse.pi-hole.net/u/balantispat)\
**Post date:** [March 20, 2024, 12:00pm UTC](https://discourse.pi-hole.net/t/pi-hole-not-blocking-adclick-g-doubleclick-net-googleads-g-doubleclick-net-pagead2-googlesyndication-com/69073/1 "2024-03-20T12:00:51Z")

</div>

As mentioned in the title my pi-hole does not seem to block some domains that are added in adlists and I have also manually added them as exact blacklists. The IPv6 status setting on my router is off but the IPv6 switch is on (I don't know if that's important or not).

## Expected Behaviour:

Pi-hole should block the mentioned domains but it does not. The domains are added in adlists and separately as domains.

## Actual Behaviour:

I can still see ads on websites like [speedtest](https://www.speedtest.net/) and others.

## Debug Token:

[https://tricorder.pi-hole.net/EPOwaYJY/](https://tricorder.pi-hole.net/EPOwaYJY/)

---

<div class="post-metadata">

**Author:** ![rdwebdesign](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/rdwebdesign/32/51363_2.png) [@rdwebdesign](https://discourse.pi-hole.net/u/rdwebdesign)\
**Post date:** [March 20, 2024, 4:16pm UTC](https://discourse.pi-hole.net/t/pi-hole-not-blocking-adclick-g-doubleclick-net-googleads-g-doubleclick-net-pagead2-googlesyndication-com/69073/2 "2024-03-20T16:16:37Z")

</div>

Are you sure your devices are using Pi-hole as DNS server?

The debug log shows your router is advertising 2 different servers - Pi-hole and **itself** :

```auto
  router: 192.168.1.1
  dns-server: 192.168.1.13
  dns-server: 192.168.1.1

```

This means your devices will be able to use `192.168.1.1` for some queries, bypassing Pi-hole.

From the computer showing the ads, what is the output of these commands?  
_(please, run them on the command line)_:

```sh
nslookup adclick.g.doubleclick.net

nslookup adclick.g.doubleclick.net 192.168.1.13

```

---

<div class="post-metadata">

**Author:** ![balantispat](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/balantispat/32/41002_2.png) [@balantispat](https://discourse.pi-hole.net/u/balantispat)\
**Post date:** [March 20, 2024, 9:45pm UTC](https://discourse.pi-hole.net/t/pi-hole-not-blocking-adclick-g-doubleclick-net-googleads-g-doubleclick-net-pagead2-googlesyndication-com/69073/3 "2024-03-20T21:45:16Z")

</div>

for the first command the output is this:  
Server: h288a  
Address: fe80::1

Non-authoritative answer:  
Name: adclick.g.doubleclick.net  
Address: 142.251.141.34  
and for the second:  
Server: pi.hole  
Address: 192.168.1.13

Name: adclick.g.doubleclick.net  
Addresses: ::  
0.0.0.0

---

<div class="post-metadata">

**Author:** ![balantispat](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/balantispat/32/41002_2.png) [@balantispat](https://discourse.pi-hole.net/u/balantispat)\
**Post date:** [March 20, 2024, 9:57pm UTC](https://discourse.pi-hole.net/t/pi-hole-not-blocking-adclick-g-doubleclick-net-googleads-g-doubleclick-net-pagead2-googlesyndication-com/69073/4 "2024-03-20T21:57:22Z")

</div>

![image](https://discourse.pi-hole.net/uploads/default/original/3X/d/c/dc673391864f6d3c0cfb99817893a52a42796a2d.png)  
From my understanding the router should only have the pihole as a dns correct?

---

<div class="post-metadata">

**Author:** ![rdwebdesign](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/rdwebdesign/32/51363_2.png) [@rdwebdesign](https://discourse.pi-hole.net/u/rdwebdesign)\
**Post date:** [March 20, 2024, 10:11pm UTC](https://discourse.pi-hole.net/t/pi-hole-not-blocking-adclick-g-doubleclick-net-googleads-g-doubleclick-net-pagead2-googlesyndication-com/69073/5 "2024-03-20T22:11:45Z")

</div>

> [@balantispat](#):
>
> for the first command the output is this:  
> Server: h288a  
> Address: fe80::1

The first command shows your device is using your router IPv6 address as DNS server, not Pi-hole:

```auto
[i] Default IPv6 gateway(s):
     fe80::1

```

Did you renew the DHCP lease on your devices after changing it in the router?

Are you able to turn IPv6 off in your router?

---

<div class="post-metadata">

**Author:** ![balantispat](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/balantispat/32/41002_2.png) [@balantispat](https://discourse.pi-hole.net/u/balantispat)\
**Post date:** [March 20, 2024, 10:24pm UTC](https://discourse.pi-hole.net/t/pi-hole-not-blocking-adclick-g-doubleclick-net-googleads-g-doubleclick-net-pagead2-googlesyndication-com/69073/6 "2024-03-20T22:24:31Z")

</div>

so I made sure that the IPv6 is off and for some time it seems that everything works. But after some time the ads start coming through again but now when I run the command the cmd outputs this : Server: pi.hole  
Address: 192.168.1.13

Name: pagead2.googlesyndication.com  
Addresses: ::  
0.0.0.0  
Server: pi.hole  
Address: 192.168.1.13

Name: googleads.g.doubleclick.net  
Addresses: ::  
0.0.0.0

---

<div class="post-metadata">

**Author:** ![rdwebdesign](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/rdwebdesign/32/51363_2.png) [@rdwebdesign](https://discourse.pi-hole.net/u/rdwebdesign)\
**Post date:** [March 20, 2024, 10:47pm UTC](https://discourse.pi-hole.net/t/pi-hole-not-blocking-adclick-g-doubleclick-net-googleads-g-doubleclick-net-pagead2-googlesyndication-com/69073/7 "2024-03-20T22:47:35Z")

</div>

> [@balantispat](#):
>
> ```auto
> Server: pi.hole
> Address: 192.168.1.13
> 
> Name: googleads.g.doubleclick.net
> Addresses: ::
> 0.0.0.0
> 
> ```

This is the expected answer:

- `192.168.1.13` is Pi-hole address.
- `0.0.0.0` means the domain was blocked.
- `::` is the IPv6 version of `0.0.0.0`. In this case, it also means blocked.

---

<div class="post-metadata">

**Author:** ![balantispat](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/balantispat/32/41002_2.png) [@balantispat](https://discourse.pi-hole.net/u/balantispat)\
**Post date:** [March 20, 2024, 10:57pm UTC](https://discourse.pi-hole.net/t/pi-hole-not-blocking-adclick-g-doubleclick-net-googleads-g-doubleclick-net-pagead2-googlesyndication-com/69073/8 "2024-03-20T22:57:58Z")

</div>

Okay i found a somewhat weird behaviour of my pihole. The way i tested this is by going to speedtest and then to some other adblocker test websites to confirm that everything was working after i run some test throught a couple of websites whenever i test on the can i block it site it seems that after that, ads could go throught the pihole even thought the cmd command was still saying that everything was blocked. Is it possible that that website used some other way to load ads and then these domains were cached and thus made other ads pop up ?

---

<div class="post-metadata">

**Author:** ![rdwebdesign](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/rdwebdesign/32/51363_2.png) [@rdwebdesign](https://discourse.pi-hole.net/u/rdwebdesign)\
**Post date:** [March 20, 2024, 11:13pm UTC](https://discourse.pi-hole.net/t/pi-hole-not-blocking-adclick-g-doubleclick-net-googleads-g-doubleclick-net-pagead2-googlesyndication-com/69073/9 "2024-03-20T23:13:32Z")

</div>

Maybe your browser is bypassing Pi-hole using "Secure DNS" or "DoH" (some browsers use different names).

You can use the _ **Tools \> Tail pihole.log** _ page to see in real-time if domains are being blocked or allowed. If they use Pi-hole, they will show up _(blocked or allowed, but they will show up)._

Keep the _ **Tail pihole.log** _ page open, then visit the desired website using a different browser tab (or a different browser, or a different device).

Do you see the queries on your Pi-hole?

- If you do and still there are ads, it means they are coming from different domains. Use the taillog to identify and block them.
- If you don't see queries, it means your browser is using a different DNS server.

---

<div class="post-metadata">

**Author:** ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)\
**Post date:** [April 10, 2024, 11:14pm UTC](https://discourse.pi-hole.net/t/pi-hole-not-blocking-adclick-g-doubleclick-net-googleads-g-doubleclick-net-pagead2-googlesyndication-com/69073/10 "2024-04-10T23:14:26Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
