AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Client field in log shows my router address. It should show the actual client.

Open ariascribe opened this issue 6 months ago • 3 comments

Prerequisites

  • [x] I have checked the Wiki and Discussions and found no answer

  • [x] I have searched other issues and found no duplicates

  • [x] I want to request a feature or enhancement and not ask a question

The problem

I have a Linksys Mesh system with one node connected to my ISP router (which is in bridge mode). The main Linksys node routes DNS requests to Adguard Home. When I was using Pi-hole, the query logs would show the originator of DNS requests (int the query log) from the actual device that made the request. In Adguard Home, the "client" field is always the Linksys node.

Proposed solution

It must be possible to get the address of the actual originating client (given that pi-hole does it). I propose that Adguard Home does this too.

Alternatives considered and additional information

No response

ariascribe avatar May 30 '25 14:05 ariascribe

It does when setup correctly.

How are you pointing your DNS from your router to AGH?

Are you entering it as the WAN DNS or LAN DNS?

Dynamic5912 avatar May 30 '25 17:05 Dynamic5912

I’m having the same issue on a netgear R6700AX that has DNS pointed to AGH.

talonric332 avatar May 31 '25 01:05 talonric332

I’m having the same issue on a netgear R6700AX that has DNS pointed to AGH.

As per above...

Dynamic5912 avatar May 31 '25 09:05 Dynamic5912

If your clients are querying the router, and the router is then querying AdguardHome, the only queries AdGuardHome sees are from the router. If your clients are speaking directly to AdGuardHome, then you'll see the client in AdGuardHome (as well as removing one extra DNS query in every lookup)

This is misconfiguration/misunderstanding, not an AdGuardHome issue.

Aside from EDNS I don't belive there's any way that this could have worked with your PiHole - I expect your clients were directly querying the PiHole.

tjharman avatar Jun 30 '25 18:06 tjharman