DHCP Hostnames

It does exactly what you already did

But it's good that the issue seems solved now.

It's solved in that the ancient entries have now gone but I've now got no hostnames being shown at all, which makes tracking down badly behaved devices tricky. Should I open a new topic for this?

Let's continue here, as the whole story is written here. Please generate a new debug token.

Debug token is > CnEibV1w

For the absense of doubt, hostnames used to appear in the network table, now they do not. Pi-hole runs my DHCP. The only entries in tools > network with hostnames are those that have a static IP assigned in the DHCP settings. . Half of the devices in the DHCP lease table have a hostname, half do not, no reason I can think of to explain.


Only 3 static DHCP leases are applied in your current configuration. Those are the only ones which appear in the network table?

-rw-r--r-- 1 root root 157 Nov  2 13:53 /etc/dnsmasq.d/04-pihole-static-dhcp.conf
   dhcp-host=DC:A6:sdsddsd,192.168.1.22,raspberrypi4
   dhcp-host=B8:27:sdsds,192.168.1.21,raspberrypi3
   dhcp-host=30:2sddss,192.168.1.111,router

I guess those devices do not have a static IP assigment?

Almost, pi3 & pi4 appear in the network table, the router doesn't query the pi-hole in any way so does not appear. Again, devices added in the last month did appear in the netowrk table until I started to attempt to remove the phantom entries.

I've got to the bottom of this....

Vaguely remember seeing a very chatty 'localhost' in the Dashboard > Top Clients. Seems my fix for this was to blacklist *.in-addr.arpa.

Removing this blacklist entry has resulted in my network table starting to fill with hostnames.

Problem solved! :slight_smile:

Good catch! This was non-obvious when working through your debug log. Good Job!

Glad it is resolved now.

Out of curiosity: was the blacklisted domain a regex?

Yup regex for everything in in-addr.arpa.

Much respect for everyone involved in this, have a wee stack of Pi computers, all doing useful stuff, none more useful than Pi-hole, keep up the good work!

2 Likes

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