Hi, I'm using a RaspberryPI with Pi-Hole as DNS resolver (IP 192.168.1.4) and my OpenWrt router (nanoPi R4S IP 192.168.1.2) as DHCP server, but since some days I see in the Pi-Hole interface all the queries from my LAN clients, like that are coming from the R4S, maybe I've changed something but I don't think...
I'm also using a R7800 as access point with OpenWrt but it hasn't any DNS configured on the LAN interface.
This setup was working fine untill... I don't know. Not a big issue but I prefer to see the queries from the correct clients if possible!
For example I have 3 Echo devices, and other IoT devices (plugs, thermostat) you can't change the DNS on those, and I see the queries to amazon domains from the Echos, as queries from the nanoPi R4S. Obviously on other devices (where I can change the DNS) the names are correct.
I don't know, maybe ther's an option in the DHCP setting of the R4S to disable the marking of DHCP packets?
On your DHCP server is (the OpenWrt as I understand) - you'll have to use DHCP Option 6 (search the forum) to assign 192.168.1.4 as the clients' DNS server for the network.
Since you don't a show you're config, it's difficult to speculate. Hope this helps.
We haven't seen the firewall setting, but I believe you have configured DNS hijacking.
Thus, all DNS requests to external servers are intercepted by the R4S, forwarded to the Pi-Hole (on behalf of the router), and then the responses are returned to the initiator(s).
This will not change even if you create a port forwarding rule (which forwards all intercepted DNS queries directly to the Pi-Hole) because the requests will be SNATed to the router's lan IP address in order to avoid the NAT loopback "triangle routing problem".
Possible explanations are that you have recently configured DNS hijacking and the previous DNS queries made by these devices have been hidden from you, or after some software update the devices no longer respect DHCP Option 6 and use only their hardcoded DNS servers.
Now I found the issue and the solution: something changed when I switched from snapshot to stable build, I don't know what (because I changed lots of settings), I had to restart dnsmasq, the LAN interface, and most important: the Echo devices!
And now the names of the clients are correctly displayed in my Pi-Hole
Because if I restart only the dnsmasq service, some echo devices were still reported as my router, after a reboot they appear correctly reported as a separate clients.
Another weird thing in switching from snapshot to stable, that I discovered only now after 10/20 days, the Netlink Bandwidth Monitor (nlbwmon) settings went changed alone ...and I lost this period of data recording, because it has changed the local subnets addresses to monitor, the ones inside the rectangle are the default/wrong ones:
I also have no idea why, probably some different settings from the opkg package in stable to snapshot