In a network with a Mikrotik as a Router with DHCP, I have installed Pi-Hole to use it as DNS and block advertising. Once configured as DNS granted by the Mikrotik's DHCP, it works for all computers.
But I have a problem, in the web interface of the Pi-Hole, they all appear as a single device in the client list, which would be the Mikrotik.
This seems to be because the requests are forwarded by the Mikrotik even though the primary DNS is the Pi-Hole.
Would it be possible to correct it?Some routers force clients to use the router as their DNS server
Even if you set Pi-hole as the only DNS server in your router’s settings, the router still forces clients to use it as their primary DNS resolver.
Once those queries arrive at the router, it forwards the requests to the Pi-hole. Since the queries are all coming from one place, Pi-hole only sees the router as the origin of all DNS requests. So the traffic flow looks something like this:
Multiple network clients > Router (acting as the primary DNS server) > Pi-hole (acting as an upstream DNS server)