# Pi-Hole not working as expected

**URL:** https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862
**Category:** Help
**Created:** [June 2, 2020, 10:31pm UTC](https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862 "2020-06-02T22:31:24Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Radu\_Stefan\_Ciubotar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/radu_stefan_ciubotar/32/14920_2.png) [@Radu\_Stefan\_Ciubotar](https://discourse.pi-hole.net/u/Radu_Stefan_Ciubotar)
#### Post date: [June 2, 2020, 10:31pm UTC](https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862/1 "2020-06-02T22:31:24Z")

</div>

## Expected Behaviour:

All of my machines are set to directly use the pi-hole device as the DNS server but inside the pi-hole interface I can only see the router as being reported for all of the queries. Plus I also have errors when sending the some dns forwardings to my local active directory, some dns names are not resolved.

## Debug Token:

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

---

<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: [June 2, 2020, 10:32pm UTC](https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862/2 "2020-06-02T22:32:31Z")

</div>

> [@Why do I only see my router's IP address instead of individual devices in the Top Clients section and Query Log?](https://discourse.pi-hole.net/t/why-do-i-only-see-my-routers-ip-address-instead-of-individual-devices-in-the-top-clients-section-and-query-log/3653):
>
> A nice feature of Pi-hole is that you can see which network devices are sending out the most DNS queries. For every device that is [using Pi-hole as their DNS server](https://discourse.pi-hole.net/t/how-do-i-configure-my-devices-to-use-pi-hole-as-their-dns-server/245), you can also see which DNS queries each one has made. But depending on a few things, you may only see a single host in your Top Clients section, which is not as useful. This isn't detrimental to the performance of your Pi-hole; it just provides you with less insight into [what's happening on your network](https://pi-hole.net/2017/02/22/what-really-happens-on-your-network-find-out-with-pi-hole/). So w…

---

<div class="post-metadata">

### Author: ![Radu\_Stefan\_Ciubotar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/radu_stefan_ciubotar/32/14920_2.png) [@Radu\_Stefan\_Ciubotar](https://discourse.pi-hole.net/u/Radu_Stefan_Ciubotar)
#### Post date: [June 2, 2020, 10:53pm UTC](https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862/3 "2020-06-02T22:53:12Z")

</div>

My DNS server inside the router for the DHCP server is set to the pihole ip, the clients report that they use pihole based on the ip. I have had this issue, I tried to reinstall the pihole on the raspberry, and I even updated to the beta. The issue is still there.

---

<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: [June 2, 2020, 10:54pm UTC](https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862/4 "2020-06-02T22:54:43Z")

</div>

Have you considered using Pi-hole as DHCP server?

> [@How do I use Pi-hole's built in DHCP server (and why would I want to)?](https://discourse.pi-hole.net/t/how-do-i-use-pi-holes-built-in-dhcp-server-and-why-would-i-want-to/3026):
>
> Using Your Existing Router For Network-wide Ad Blocking You might not need to use Pi-hole's DHCP server: In many home environments, your router also functions as your DHCP server. In this case, you can often [set Pi-hole to be the DNS server for your network clients in the router's DHCP (or LAN) settings page](https://discourse.pi-hole.net/t/how-do-i-configure-my-devices-to-use-pi-hole-as-their-dns-server/245), which allows all of your network clients to block ads simply by connecting to the network. Setting it up this way is also what makes Pi-hole very powerful for network-wide ad blocking. W…

---

<div class="post-metadata">

### Author: ![Radu\_Stefan\_Ciubotar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/radu_stefan_ciubotar/32/14920_2.png) [@Radu\_Stefan\_Ciubotar](https://discourse.pi-hole.net/u/Radu_Stefan_Ciubotar)
#### Post date: [June 2, 2020, 11:01pm UTC](https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862/5 "2020-06-02T23:01:18Z")

</div>

I hadn't considered this, and I don't think I will. The strange thing is that it had worked in this setup previously and nothing has changed on the router side, no update no nothing.

---

<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: [June 2, 2020, 11:12pm UTC](https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862/6 "2020-06-02T23:12:12Z")

</div>

Given that you are on the beta version, I would start with moving to V5.

`pihole checkout master`

---

<div class="post-metadata">

### Author: ![Radu\_Stefan\_Ciubotar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/radu_stefan_ciubotar/32/14920_2.png) [@Radu\_Stefan\_Ciubotar](https://discourse.pi-hole.net/u/Radu_Stefan_Ciubotar)
#### Post date: [June 2, 2020, 11:16pm UTC](https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862/7 "2020-06-02T23:16:17Z")

</div>

What is the difference between the master and the beta ?

---

<div class="post-metadata">

### Author: ![Radu\_Stefan\_Ciubotar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/radu_stefan_ciubotar/32/14920_2.png) [@Radu\_Stefan\_Ciubotar](https://discourse.pi-hole.net/u/Radu_Stefan_Ciubotar)
#### Post date: [June 2, 2020, 11:27pm UTC](https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862/8 "2020-06-02T23:27:22Z")

</div>

I have switch meanwhile to master but the issue is still there.

---

<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: [June 2, 2020, 11:38pm UTC](https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862/9 "2020-06-02T23:38:48Z")

</div>

Please generate a new debug log and post the token.

---

<div class="post-metadata">

### Author: ![Radu\_Stefan\_Ciubotar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/radu_stefan_ciubotar/32/14920_2.png) [@Radu\_Stefan\_Ciubotar](https://discourse.pi-hole.net/u/Radu_Stefan_Ciubotar)
#### Post date: [June 2, 2020, 11:41pm UTC](https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862/10 "2020-06-02T23:41:37Z")

</div>

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

---

<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: [June 3, 2020, 12:02am UTC](https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862/11 "2020-06-03T00:02:15Z")

</div>

> [@Radu\_Stefan\_Ciubotar](#):
>
> I can only see the router as being reported for all of the queries.

Your debug log shows the following DNS history for the past 24 hours. 7 unique clients.

```auto
  [2020-06-03 02:40:03.467 596] Imported 258827 queries from the long-term database
   [2020-06-03 02:40:03.469 596] -> Total DNS queries: 258827
   [2020-06-03 02:40:03.469 596] -> Cached DNS queries: 73858
   [2020-06-03 02:40:03.469 596] -> Forwarded DNS queries: 108261
   [2020-06-03 02:40:03.469 596] -> Blocked DNS queries: 74822
   [2020-06-03 02:40:03.469 596] -> Unknown DNS queries: 1886
   [2020-06-03 02:40:03.469 596] -> Unique domains: 9420
   [2020-06-03 02:40:03.469 596] -> Unique clients: 7
   [2020-06-03 02:40:03.469 596] -> Known forward destinations: 5

```

What is the output of this command from the Pi terminal:

`echo ">top-clients >quit" | nc localhost 4711`

---

<div class="post-metadata">

### Author: ![Radu\_Stefan\_Ciubotar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/radu_stefan_ciubotar/32/14920_2.png) [@Radu\_Stefan\_Ciubotar](https://discourse.pi-hole.net/u/Radu_Stefan_Ciubotar)
#### Post date: [June 3, 2020, 12:14am UTC](https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862/12 "2020-06-03T00:14:03Z")

</div>

pi@raspberrypi:~ $ echo "\>top-clients \>quit" | nc localhost 4711  
0 252524 192.168.88.1  
1 397 192.168.88.9 raspberrypi  
2 342 127.0.0.1 localhost  
3 7 192.168.100.62  
4 3 192.168.100.56  
5 1 ::1 localhost  
6 1 2a02:2f04:c:550a:1390:9ef6:d3f6:3149 raspberrypi

Strangely there is no client shown besides the router and the local pihole. As you can see, my router is set to distribute the pihole as DNS.

 ![Screenshot_20200603-031248_MikroTik](https://discourse.pi-hole.net/uploads/default/original/3X/6/8/6826771a9d8a70872e06a85ab5bc146442d89d17.jpeg)

---

<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: [June 3, 2020, 12:17am UTC](https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862/13 "2020-06-03T00:17:09Z")

</div>

> [@Radu\_Stefan\_Ciubotar](#):
>
> Strangely there is no client shown besides the router and the local pihole.

```auto
3 7 192.168.100.62
4 3 192.168.100.56

```

What are these clients?

---

<div class="post-metadata">

### Author: ![RamSet](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/ramset/32/3497_2.png) [@RamSet](https://discourse.pi-hole.net/u/RamSet)
#### Post date: [June 3, 2020, 12:23am UTC](https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862/17 "2020-06-03T00:23:12Z")

</div>

Your router might NOT allow (even though you set it up to broadcast the Pi-hole IP as the DNS), DNS relaying, within the local /24 class.

Try a `nslookup flurry.com` on a client.

See what it returns.

Also look for anything DNS rebind protection related within the router interface.

---

<div class="post-metadata">

### Author: ![Radu\_Stefan\_Ciubotar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/radu_stefan_ciubotar/32/14920_2.png) [@Radu\_Stefan\_Ciubotar](https://discourse.pi-hole.net/u/Radu_Stefan_Ciubotar)
#### Post date: [June 3, 2020, 12:52am UTC](https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862/18 "2020-06-03T00:52:41Z")

</div>

Clients from a remote branch that use the HQ pi-hole

---

<div class="post-metadata">

### Author: ![Radu\_Stefan\_Ciubotar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/radu_stefan_ciubotar/32/14920_2.png) [@Radu\_Stefan\_Ciubotar](https://discourse.pi-hole.net/u/Radu_Stefan_Ciubotar)
#### Post date: [June 3, 2020, 12:55am UTC](https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862/19 "2020-06-03T00:55:42Z")

</div>

> [@RamSet](#):
>
> flurry.com

flurry.com  
Server: raspberrypi  
Address: 192.168.88.9

Name: flurry.com  
Addresses: ::  
0.0.0.0

Works without problems, just the reporting that apparently is not going right.

---

<div class="post-metadata">

### Author: ![RamSet](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/ramset/32/3497_2.png) [@RamSet](https://discourse.pi-hole.net/u/RamSet)
#### Post date: [June 3, 2020, 1:04am UTC](https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862/20 "2020-06-03T01:04:27Z")

</div>

There’s something funky going on over there as per your debug log:

\*\*\* [DIAGNOSING]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain  
[✗] Failed to resolve tracker.twenga.nl via localhost (127.0.0.1)  
[✗] Failed to resolve tracker.twenga.nl via Pi-hole (192.168.88.9)  
[✗] Failed to resolve doubleclick.com via a remote, public DNS server (8.8.8.8)

\*\*\* [DIAGNOSING]: Name resolution (IPv6) using a random blocked domain and a known ad-serving domain  
[✗] Failed to resolve spaceclie.brunor0v.beget.tech via localhost (::1)  
[✗] Failed to resolve spaceclie.brunor0v.beget.tech via Pi-hole (2a02:2f04:c:550a:1390:9ef6:d3f6:3149)  
[✗] Failed to resolve doubleclick.com via a remote, public DNS server (2001:4860:4860::8888)

I do see some PHP errors too and what seems to be a non conventional interface

Also this:

\*\*\* [DIAGNOSING]: php version  
[i] symbol

You might want to re-install PHP

---

<div class="post-metadata">

### Author: ![Radu\_Stefan\_Ciubotar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/radu_stefan_ciubotar/32/14920_2.png) [@Radu\_Stefan\_Ciubotar](https://discourse.pi-hole.net/u/Radu_Stefan_Ciubotar)
#### Post date: [June 3, 2020, 1:16am UTC](https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862/21 "2020-06-03T01:16:59Z")

</div>

I updated my raspberry pi with "sudo apt-get update" and "sudo apt-get upgrade" and it removed something, some links. Now if I do pihole -r and I do a repair the PHP part is blank. Tomorrow I will try and reflash the whole raspberry to see if it fixes anything.

---

<div class="post-metadata">

### Author: ![Radu\_Stefan\_Ciubotar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/radu_stefan_ciubotar/32/14920_2.png) [@Radu\_Stefan\_Ciubotar](https://discourse.pi-hole.net/u/Radu_Stefan_Ciubotar)
#### Post date: [June 3, 2020, 4:09am UTC](https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862/22 "2020-06-03T04:09:43Z")

</div>

Looks like everything is fine for now. I did reinstall the whole OS and Pi-Hole. I really don't understand what was the issue before to be honest.

---

<div class="post-metadata">

### Author: ![Radu\_Stefan\_Ciubotar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/radu_stefan_ciubotar/32/14920_2.png) [@Radu\_Stefan\_Ciubotar](https://discourse.pi-hole.net/u/Radu_Stefan_Ciubotar)
#### Post date: [June 3, 2020, 8:55am UTC](https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862/23 "2020-06-03T08:55:52Z")

</div>

![Screenshot_20200603-115346_Chrome](https://discourse.pi-hole.net/uploads/default/original/3X/8/a/8a30e00e7c98ec73d6c4a9d394510a2bd98f58c3.jpeg)

I talked to soon. It worked for a bit than it went back to the same behaviour. What is going on?

[Next page](https://discourse.pi-hole.net/t/pi-hole-not-working-as-expected/33862.md?page=2)
