DHCP leases show up as <i>unknown</i>

Looks ok, no redirects for local lookups.
I'll soon run out of ideas what's causing this.

What names do they show up with?

the device name, for the windows one it's windows-phone. what's weird is now 196 shows up correctly as windows-phone. but 141 does not show up.

Have a look at your /etc/pihole/dhcp.leases (don't post it here, it may contain sensitive data). The names should be in there.

If you perhaps deleted Pi-hole's DHCP lease file at some stage in the past, that could explain it.
dnsmasq would try to repopulate that file on DHCP lease renewal, and lease renewals may not include hostnames.

192.168.55.141 * 

I did delete it before but I rebuilt it, and all the other devices were there before, and I think that before I deleted these devices did not show up properly either.

I have found something out, the windows phone that I said now shows up correctly, only shows up correctly in the main dashboard, under the DHCP lease table in the settings it is still shown as unknown.

It would be interesting to know whether that correlates with the hostname missing from your dhcp.leases as well.

that's the strange thing, now the windows phone shows up correctly on both. I even changed the device name of it and it updated on both tables. the android phone however refuse to be registered correctly.
they're both android 10 lineage os if that helps. but as I said at least one of them was showing up correctly on other networks.

so anyone has any idea why this happens? another thing that isn't working is the logs in the dashboard randomly work and sometimes are just blank. so I checked the time again to see if it lost sync again, but it's fine.

Just to bump this, I'm having the same issue with devices not registering host names. Seems to be only affecting Android devices for me. Their queries don't show up in the main Query Log link on the front page, but they do show in the Query Log search tool. The hostnames are logged thus though: unknown-8a-c8-4d-3e-bb-d1.lan (MAC changed) which the pi cannot resolve. Same PiHole version as the OP, Raspberry Pi 3.

that's strange, mine are also android, but not all android. and mine show up as IP in the logs.

Where do you see these logs?

Under Long Term Data -> Query Logs

But as domains, not in the clients column, right? Then, they are not host names as such just some ordinary domains which have been looked up by someone/-thing on the network.

No, clients, otherwise I wouldn't have mentioned it:

I updated to 5.x recently, this is a recent issue as I've unblocked some addresses for Android devices before now.

That "unknown" client is a Samsung Galaxy S10, doesn't show up in the main query log (nor does that block) but it does show as an unknown DHCP lease.

I don't think you are observing the same issue as Scepterus.

Your screenshot shows a hostname in the Client column.
That is proof that your Pi-hole was able to resolve the request's IP address into a hostname like unknown-8a-c8-4d-3e-bb-d1.lan.

What DNS server is providing the names for your local clients?
Could you provide a debug token, please?

The pihole is managing all DNS for me including NAME.lan for local clients.

The affected devices aren't in the building right now but I'll post more info later tonight. How do I provide you with a debug token? Apologies, my first time reaching out to the pihole community, I came across this thread searching for my own issue of not seeing blocks applied to clients (so I can whitelist them) in the main query log.

Please upload a debug log and post just the token generated by

pihole -d

allowing to upload when prompted, or do it through the Web interface:

Tools > Generate Debug Log

Oh nice. https://tricorder.pi-hole.net/1ezw9qh441

Thanks!

Your debug log looks normal, both for DNS and DHCP.

It's somehow paradox that some of your devices registered a name like unknown-8a-c8-4d-3e-bb-d1.lan as their known name.
Specifically if that client is an android device (like your Samsung smartphone), as those tend to create a generic name like android-8569de95893a if you don't provide one on the phone..

Can you take a look at your /etc/pihole/dhcp.leases (don't post it here, it may contain sensitive data).
Are the names in there?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.