DNS routing problem

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

I have pihole running inside a docker on a raspberry pi.
I set my router DNS as the raspberry pi IP address.
It seems like everything is working properly, but on the pi hole dashboard, under Top Clients, I can see only my router with above 100,000 requests.
It seems like the pi hole listing all of the devices traffic under the router traffic and not under each device.

Those are my settings:
DNS configuration in pi hole

home network: 192.168.31.0/24
raspberry pi address: 192.168.31.241
router address: 192.168.31.1
docker network: 172.21.0.0/16 (bridge mode)

any one can point on how to fix this?

Expected Behaviour:

Clients should be listed under Top clients in pi hole

Actual Behaviour:

All requests appears logged under the router.

Debug Token:

https://tricorder.pi-hole.net/B8NrcEFC/

Note that Pi-hole is not involved in routing at all.
It just listens for DNS requests.

Your observation would suggest that you've configured your router to use Pi-hole as its only upstream (commonly, a WAN/Internet kind of option), i.e. your router aggregates DNS traffic from your network clients and forwards that to Pi-hole.
That is a valid configuration, but you won't be able to attribute DNS requests to individual clients (as you've observed).

For that, it would be required that your router would tell its clients to use Pi-hole for DNS instead instead of the router itself (commonly, that is a LAN/DHCP kind of option).

You'd have to consult your router's documentation for details on its DNS configuration options.

forget about the routing, just a bad headline :slight_smile:

This is the setting in the router, DHCP with only one DNS configured (pi hole)

but still, I can see just the router sending requests

Your screenshot just demonstrates what has been explained already:

If you want clients to talk to Pi-hole directly, you'd have to configure your router to...

Thanks man, I think I was drunk without drinking or something, didn't notice I configured the pi hole as the DNS in the wrong screen of the router.

Thanks