# Pi-Hole running but not blocking ads

**URL:** <https://discourse.pi-hole.net/t/pi-hole-running-but-not-blocking-ads/15278>\
**Category:** Help\
**Created:** [December 19, 2018, 9:46am UTC](https://discourse.pi-hole.net/t/pi-hole-running-but-not-blocking-ads/15278 "2018-12-19T09:46:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![m01zn](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/m/f14d63/32.png) [@m01zn](https://discourse.pi-hole.net/u/m01zn)\
**Post date:** [December 19, 2018, 9:46am UTC](https://discourse.pi-hole.net/t/pi-hole-running-but-not-blocking-ads/15278/1 "2018-12-19T09:46:35Z")

</div>

#### Please follow the below template, it will help us to help you!

## Expected Behaviour:

_[network wide Blocking of ads, pi hole has been set up as DHCP server, the router dhcp server has been disabled}_

## Actual Behaviour:

_[No blocking of ads on any device and DCHP server doesnt seem to work on my phone, works fine on the PC but get "Failed to obtain IP address" on my note 8]_

## Debug Token:

_[m6y3guf83y]_

---

<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:** [December 19, 2018, 11:09am UTC](https://discourse.pi-hole.net/t/pi-hole-running-but-not-blocking-ads/15278/2 "2018-12-19T11:09:35Z")

</div>

> [@m01zn](#):
>
> No blocking of ads on any device

Your debug log shows that DNS requests received by Pi-Hole are being properly filtered:

```
  [2018-12-19 10:37:15.380] Imported 7150 queries from the long-term database
   [2018-12-19 10:37:15.381] -> Total DNS queries: 7150
   [2018-12-19 10:37:15.381] -> Cached DNS queries: 389
   [2018-12-19 10:37:15.381] -> Forwarded DNS queries: 3876
   [2018-12-19 10:37:15.382] -> Exactly blocked DNS queries: 2885
   [2018-12-19 10:37:15.382] -> Unknown DNS queries: 0
   [2018-12-19 10:37:15.382] -> Unique domains: 419
   [2018-12-19 10:37:15.382] -> Unique clients: 4
   [2018-12-19 10:37:15.383] -> Known forward destinations: 2

```

> [@m01zn](#):
>
> DCHP server doesnt seem to work on my phone

Your Pi-Hole lease duration is very long (1 year). If your router lease duration was equally long you will need to clear the DNS cache on each client and renew their lease.

`DHCP_LEASETIME=8760`

---

<div class="post-metadata">

**Author:** ![m01zn](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/m/f14d63/32.png) [@m01zn](https://discourse.pi-hole.net/u/m01zn)\
**Post date:** [December 19, 2018, 1:43pm UTC](https://discourse.pi-hole.net/t/pi-hole-running-but-not-blocking-ads/15278/3 "2018-12-19T13:43:50Z")

</div>

When going to "[Block Ads! Adblock test](https://blockads.fivefilters.org/?pihole)", it says "no add blocking detected", and on this page "[Mod Edit: Link no longer available]" the amazon adds show up.

---

<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:** [December 19, 2018, 2:48pm UTC](https://discourse.pi-hole.net/t/pi-hole-running-but-not-blocking-ads/15278/4 "2018-12-19T14:48:11Z")

</div>

It appears the client you are using to view those pages is not routing its DNS traffic through Pi-Hole. Check in the Pi-Hole query log for matching domain requests from that client.

The tools in the thread below may also be helpful:

> [@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:** ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)\
**Post date:** [January 9, 2019, 2:50pm UTC](https://discourse.pi-hole.net/t/pi-hole-running-but-not-blocking-ads/15278/5 "2019-01-09T14:50:17Z")

</div>

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