# Not blocking at all

**URL:** <https://discourse.pi-hole.net/t/not-blocking-at-all/1890>\
**Category:** Help\
**Created:** [February 24, 2017, 10:59pm UTC](https://discourse.pi-hole.net/t/not-blocking-at-all/1890 "2017-02-24T22:59:53Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![krmzn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/krmzn/32/701_2.png) [@krmzn](https://discourse.pi-hole.net/u/krmzn)\
**Post date:** [February 24, 2017, 10:59pm UTC](https://discourse.pi-hole.net/t/not-blocking-at-all/1890/1 "2017-02-24T22:59:53Z")

</div>

Hi,

Blocking not working for any of my devices (Win pc's, iphone, androids etc). The IP adress for the Pi-Hole server has been set as PRIMARY DNS server on my ASUS router.

Output from running pihole -d:

```
Detecting Installed Package Versions:
Pi-hole: v2.12.1
WebUI: v2.4
lighttpd/1.4.35
PHP 7.0.15-0ubuntu0.16.04.2 (cli) ( NTS )
Pi-hole branch: master
Pi-hole rev: v2.12.1-0-g5333895
AdminLTE branch: master
AdminLTE rev: v2.4-0-g406877d

```

Screenshot from admin site that is running perfectly well.

 ![](https://discourse.pi-hole.net/uploads/default/original/3X/3/d/3decbfeedc4b7118d15bd9903187932924ac471b.png)

Only ad that is getting blocked are the one that is made during the "pihole -d" command (doubleclick.com).

If any devs sees this: rmgx9mf6nd is my debug token 🙂

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [February 24, 2017, 11:31pm UTC](https://discourse.pi-hole.net/t/not-blocking-at-all/1890/2 "2017-02-24T23:31:35Z")

</div>

Do you have another server listed as the Secondary on your router? The doubleclick block shows that the Pi-hole is blocking domains. Also, did you browse any sites when asked by the debug script? There was no traffic activity logged, so during the debug there were no queries sent to the Pi-hole.

---

<div class="post-metadata">

**Author:** ![krmzn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/krmzn/32/701_2.png) [@krmzn](https://discourse.pi-hole.net/u/krmzn)\
**Post date:** [February 25, 2017, 9:32am UTC](https://discourse.pi-hole.net/t/not-blocking-at-all/1890/3 "2017-02-25T09:32:09Z")

</div>

This are my DNS settings on the router:

 ![](https://discourse.pi-hole.net/uploads/default/original/3X/1/e/1e1ee1fc7f14f54e06a7b8c6b56c1b7fd37a5942.png)

Yes, I did browse during the 60 seconds period. I can run the pihole -d command again and send a new debug token?

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [February 25, 2017, 4:12pm UTC](https://discourse.pi-hole.net/t/not-blocking-at-all/1890/4 "2017-02-25T16:12:59Z")

</div>

Remove the secondary DNS server, what is happening is that your queries are going to the secondary and bypassing the Pi-hole altogether. That's why no log entries were captured, no queries were sent to the Pi-hole when you were browsing.

---

<div class="post-metadata">

**Author:** ![krmzn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/krmzn/32/701_2.png) [@krmzn](https://discourse.pi-hole.net/u/krmzn)\
**Post date:** [February 25, 2017, 4:56pm UTC](https://discourse.pi-hole.net/t/not-blocking-at-all/1890/5 "2017-02-25T16:56:30Z")

</div>

Removed the secondary dns server from my router config. Still see a lot of ads when I browse. Did a new "pihole - d" now. Debug token is : uz1eayqagl

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [February 25, 2017, 4:57pm UTC](https://discourse.pi-hole.net/t/not-blocking-at-all/1890/6 "2017-02-25T16:57:49Z")

</div>

Did you clean out the client machines DNS cache and the browser cache? Otherwise the devices still will have the old DNS information with the ad domains not blocked for about 10 minutes after the change.

---

<div class="post-metadata">

**Author:** ![krmzn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/krmzn/32/701_2.png) [@krmzn](https://discourse.pi-hole.net/u/krmzn)\
**Post date:** [February 25, 2017, 5:08pm UTC](https://discourse.pi-hole.net/t/not-blocking-at-all/1890/7 "2017-02-25T17:08:29Z")

</div>

Yes. On my Win 10 PC i did this:

```
ipconfig /flushdns
chrome://net-internals/#dns <-- clear host cache in Google Chrome. 

```

Still a lot of ads ☹

Thanks for your support! 🙂

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [February 25, 2017, 8:10pm UTC](https://discourse.pi-hole.net/t/not-blocking-at-all/1890/8 "2017-02-25T20:10:50Z")

</div>

Okay, now that some time has passed, lets try on more debug run, and be sure to browse to a site that contains a lot of ads when you are prompted so that we can try to capture as much of that traffic as possible.

---

<div class="post-metadata">

**Author:** ![krmzn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/krmzn/32/701_2.png) [@krmzn](https://discourse.pi-hole.net/u/krmzn)\
**Post date:** [February 25, 2017, 9:46pm UTC](https://discourse.pi-hole.net/t/not-blocking-at-all/1890/9 "2017-02-25T21:46:45Z")

</div>

Here you go: u89sjrmrrr

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [February 25, 2017, 10:25pm UTC](https://discourse.pi-hole.net/t/not-blocking-at-all/1890/10 "2017-02-25T22:25:45Z")

</div>

The log still shows no activity from your client. Can you run `ipconfig /all` and check to see if the Windows machine is using the correct DNS? Is the Windows box pointed towards the Pi-hole directly, or do you have the router handling DNS?

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [February 25, 2017, 10:27pm UTC](https://discourse.pi-hole.net/t/not-blocking-at-all/1890/11 "2017-02-25T22:27:38Z")

</div>

Also, if you go to the Pi-hole Admin page, you can view the log in realtime, via Tools\>Tail and that will show you if the clients are using the Pi-hole DNS server correctly.

---

<div class="post-metadata">

**Author:** ![krmzn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/krmzn/32/701_2.png) [@krmzn](https://discourse.pi-hole.net/u/krmzn)\
**Post date:** [February 25, 2017, 10:45pm UTC](https://discourse.pi-hole.net/t/not-blocking-at-all/1890/12 "2017-02-25T22:45:28Z")

</div>

Got it working now. Some how I had to set the DNS server IP manually for my LAN connection. "Automatically" did not work as expected. The Win10 PC has this setting now:

 ![](https://discourse.pi-hole.net/uploads/default/original/3X/6/b/6b3fc92d245ac0db6c0bb28b015ba010c8eedd25.png)

Should'nt the PC ask the router for what DNS server to use when it is set to "automatically"? On my router Primary DNS is set to 192.168.1.4, which is the adress to the ubuntu server that is running PI-Hole.

---

<div class="post-metadata">

**Author:** ![krmzn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/krmzn/32/701_2.png) [@krmzn](https://discourse.pi-hole.net/u/krmzn)\
**Post date:** [February 25, 2017, 11:01pm UTC](https://discourse.pi-hole.net/t/not-blocking-at-all/1890/13 "2017-02-25T23:01:48Z")

</div>

Got it. Stupid me managed to change the WAN DNS server instead of the DHCP DNS on the router. Now everything is working as a charm! Cant thank you enough for your kind support, DanSchaper 🙂

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [February 26, 2017, 3:03am UTC](https://discourse.pi-hole.net/t/not-blocking-at-all/1890/14 "2017-02-26T03:03:29Z")

</div>

Glad you got it working!

---

<div class="post-metadata">

**Author:** ![slimshizn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/slimshizn/32/3108_2.png) [@slimshizn](https://discourse.pi-hole.net/u/slimshizn)\
**Post date:** [March 18, 2018, 3:13pm UTC](https://discourse.pi-hole.net/t/not-blocking-at-all/1890/15 "2018-03-18T15:13:23Z")

</div>

Had the same setting on my asus router. Thanks, this got me working.

---

<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:** [January 28, 2019, 5:31am UTC](https://discourse.pi-hole.net/t/not-blocking-at-all/1890/16 "2019-01-28T05:31:41Z")

</div>

A post was split to a new topic: [No ad blocking](https://discourse.pi-hole.net/t/no-ad-blocking/16558)
