# Ads escaping Pi-Hole

**URL:** <https://discourse.pi-hole.net/t/ads-escaping-pi-hole/31340>\
**Category:** Help\
**Created:** [April 30, 2020, 1:30pm UTC](https://discourse.pi-hole.net/t/ads-escaping-pi-hole/31340 "2020-04-30T13:30:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcnaveen](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/mcnaveen/32/10705_2.png) [@mcnaveen](https://discourse.pi-hole.net/u/mcnaveen)\
**Post date:** [April 30, 2020, 1:30pm UTC](https://discourse.pi-hole.net/t/ads-escaping-pi-hole/31340/1 "2020-04-30T13:30:09Z")

</div>

## Expected Behaviour:

Ads should be blocked when pi-hole is active.

## Actual Behaviour:

I think the ads are escaping somehow. I saw Google Ads even while Pi-hole is active.

I have set my Raspberry Pi as DHCP Server.

 ![image](https://discourse.pi-hole.net/uploads/default/original/2X/5/5675f228e6b498ff489c96d369b645af0e6c6917.png)

I managed to take all the screenshots

Total Number of Request and Queries blocked

 ![image](https://discourse.pi-hole.net/uploads/default/original/2X/7/7113b0f63586618a8d9efba2c878b3d42dff62e4.png)

Most of the Queries are answered by Router

 ![image](https://discourse.pi-hole.net/uploads/default/original/2X/8/88286728b933641cdd0d4a56157adf7e6f3a9bbf.png)

Here I set my Router IP as Upstream DNS

 ![image](https://discourse.pi-hole.net/uploads/default/original/2X/0/0cd64b333a86c37682fb72f50ed4ff873044970b.png)

I have enabled Conditional Forwarding too

 ![image](https://discourse.pi-hole.net/uploads/default/original/2X/a/a553c3a06050363be718d002f17ce2697f3afb46.png)

I don't know what is causing the issue. Blocked Queries are still the same from the past 5 hours

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [April 30, 2020, 1:32pm UTC](https://discourse.pi-hole.net/t/ads-escaping-pi-hole/31340/2 "2020-04-30T13:32:33Z")

</div>

From the client on which you are seeing ads, what are the outputs of the following commands from the terminal or command prompt on that client:

`nlsookup pi.hole`

`nslookup flurry.com`

Also, please send us the token generated by

`pihole -d`

or do it through the Web interface:

_ **Tools \> Generate Debug Log** _

---

<div class="post-metadata">

**Author:** ![mcnaveen](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/mcnaveen/32/10705_2.png) [@mcnaveen](https://discourse.pi-hole.net/u/mcnaveen)\
**Post date:** [April 30, 2020, 1:44pm UTC](https://discourse.pi-hole.net/t/ads-escaping-pi-hole/31340/3 "2020-04-30T13:44:22Z")

</div>

```auto
ninja@softinttech:~$ nslookup pi.hole
Server: 127.0.0.53
Address:	127.0.0.53#53

Non-authoritative answer:
Name:	pi.hole
Address: 192.168.31.31

```

Here is another one

```auto
ninja@softinttech:~$ nslookup flurry.com
Server: 127.0.0.53
Address:	127.0.0.53#53

Non-authoritative answer:
Name:	flurry.com
Address: 0.0.0.0
Name:	flurry.com
Address: ::

```

Debug Token: [https://tricorder.pi-hole.net/so19iow68d](https://tricorder.pi-hole.net/so19iow68d)

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [April 30, 2020, 2:11pm UTC](https://discourse.pi-hole.net/t/ads-escaping-pi-hole/31340/4 "2020-04-30T14:11:47Z")

</div>

Were these commands run from the terminal of the device that is running Pi-hole? If so, please re-run them from a different client.

---

<div class="post-metadata">

**Author:** ![mcnaveen](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/mcnaveen/32/10705_2.png) [@mcnaveen](https://discourse.pi-hole.net/u/mcnaveen)\
**Post date:** [April 30, 2020, 2:15pm UTC](https://discourse.pi-hole.net/t/ads-escaping-pi-hole/31340/6 "2020-04-30T14:15:52Z")

</div>

Nope, These commands are from Client Devices. Not from Pi-hole.

**Sorry, Apache is running on client device. I didn't notice that.**

Here is the New one after stopping apache service

```auto
ninja@softinttech:~$ nslookup pi.hole
Server: 127.0.0.53
Address:	127.0.0.53#53

Non-authoritative answer:
Name:	pi.hole
Address: 192.168.31.31

```

```auto
ninja@softinttech:~$ nslookup flurry.com
Server: 127.0.0.53
Address:	127.0.0.53#53

Non-authoritative answer:
Name:	flurry.com
Address: 0.0.0.0
Name:	flurry.com
Address: ::

```

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [April 30, 2020, 2:21pm UTC](https://discourse.pi-hole.net/t/ads-escaping-pi-hole/31340/7 "2020-04-30T14:21:49Z")

</div>

Ok These outputs show that Pi-hole is the DNS server for that device and is blocking domains.

Where are you seeing ads? Can you provide a URL and screen capture (you can paste the image directly into a reply on this forum).

Also, these tools can help you pinpoint the source of ads:

> [@How do I determine what domain an ad is coming from?](https://discourse.pi-hole.net/t/how-do-i-determine-what-domain-an-ad-is-coming-from/1522):
>
> Block ads or fix broken sites This FAQ is written in the context of finding out how to block an ad that isn't blocked automatically, but the same steps can be used to troubleshoot issues with sites that don't function properly. An example is that sometimes certain payment gateways try to collect metrics on the sale, but these domains are blocked by Pi-hole, so the payment cannot be processed. Also, some links send you through several referrers and if one of them is blocked, you may land on a b…

---

<div class="post-metadata">

**Author:** ![mcnaveen](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/mcnaveen/32/10705_2.png) [@mcnaveen](https://discourse.pi-hole.net/u/mcnaveen)\
**Post date:** [April 30, 2020, 2:37pm UTC](https://discourse.pi-hole.net/t/ads-escaping-pi-hole/31340/8 "2020-04-30T14:37:05Z")

</div>

I see ads on YouTube Sidebar.

and I blocked TikTok Domains, Till yesterday when TikTok opened it shows Internet Connectivity Blocked. But now it's not blocking those domains.

Can you make sure, Queries answered by Router is Ok?

---

<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:** [May 21, 2020, 2:37pm UTC](https://discourse.pi-hole.net/t/ads-escaping-pi-hole/31340/9 "2020-05-21T14:37:15Z")

</div>

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