We have a number (10+) of Android phones and it is not possible to set a hostname for these “non-rooted” devices so PiHole always displays just the IP address. We cannot use the PiHole DHCP system. Would it be possible to allow a hostname string to be specified when adding a client by IP or MAC address ??? Other systems on the network work correctly.
Regards, Dave
If you grab a phone and retrieve its IP address,
does below one run in a Windows, MacOS or Linux client in terminal/CMD/powershell window return a Name?
nslookup <PHONE_IP> <ROUTER_IP>
Eg:
C:\>nslookup 10.0.0.145 10.0.0.4
Server: ph6b.home.dehakkelaar.nl
Address: 10.0.0.4
Name: hak01.home.dehakkelaar.nl
Address: 10.0.0.145
If so, you can do with Pi-hole Conditional Forwarding instead:
Thats what its made for:
EDIT: Oh ps, it also stops queries for the local domain, fritz.box in above screenshot, from accidentally being forwarded/leaked to Pi-hole's upstream configured public DNS server(s).
Oh2: The name that Android phones advertise via DHCP can be configured in:
Android settings > About phone > Edit
Unfortunately, I gather that later versions of Android don't let you change the hostname unless you "root" the phone (which is somat we don't want to do) instead it seems to respond with a generic name based on the serial number or mac address.
I have conditional forwarding enabled etc
However, after making this request I discovered that the firewall has provision for this but it requires a reboot of the FW after the change which is a bit of a pain. So I have a work around.
Thanks for the prompt response,
Dave
Where did you gather that?
All four Android devices I have here (2 phones + 2 pads all different brands) allow to change the name/hostname of the device.
It seems your FR hinges on this one impediment only.
If the name/hostname cant be changed, these phones would be unsuitable for an enterprise environment.
