Pi-hole has no knowledge of devices.
A device can have multiple network interfaces, and a network interface can carry multiple IP addresses.
Pi-hole only has immediate knowledge of the source IP address of the requester, as that is contained in a DNS request.
( As an additional measure (independent from DNS), Pi-hole can indirectly observe IP addresses as associated to a MAC address of a network interface that's directly connected to the same network segment as Pi-hole. (click for more) )
Pi-hole may then use that information to provide a hostname for an IP address that fails with reverse lookups.
But in order to do so, Pi-hole needs at least one successful hostname resolution for one of the IP addresses associated with the same NIC's MAC address.
That method may produce unexpected results if a device would be connected to a different network segment, e.g. behind an additional router or L3 switch, as IP addresses of multiple devices connected through that equipment would appear to be associated with a MAC address of that equipment.
EDIT: Similar would be true for those clients that would spoof a MAC address every time they connect to a network.
To associate an IP address with a name, DNS provides a reverse lookup mechanism involving PTR records.
When Pi-hole isn't also acting as DHCP server, Pi-hole's prime source of getting to know a hostname for a private IP address from your network is to issue the respective reverse lookup DNS requests for PTR records from time to time.
Now, your debug log shows you've ticked both Never forward non-FQDN A
and AAAA
queries as well as Never forward reverse lookups for private IP ranges.
Pi-hole's UI shows the following advice directly under those options:
Important : Enabling these two options may increase your privacy, but may also prevent you from being able to access local hostnames if the Pi-hole is not used as DHCP server.
Please try unticking at least Never forward reverse lookups for private IP ranges.
This should fix hostname resolution for local IPs as displayed in the dashboard's Top Clients and in the Client column of the Query Log.
Note that it may take a short while before Pi-hole has issued and retrieved the required PTR records.
The Network overview table may require flushing to update.