When using Pi-Hole as a dhcp server android phones are unable to connect to wifi (stuck obtaining ip address). dhcp was of course disabled on my router and I restarted both pi hole and my router after disabling it. I've tried changing the dhcp ip range, deleting the files in /data/misc/dhcp on my phone, but nothing seems to work. All other devices (including an iphone) have no problem connecting and getting an ip via dhcp. Setting a static ip on the android phone works too.
this is what I found in the pihole -d log, the mac address is of a phone I was trying to connect.
Mar 30 22:44:00 dnsmasq-dhcp[915]: DHCPDISCOVER(wlan0) 80:6c:1b:c4:be:7a
Mar 30 22:44:00 dnsmasq-dhcp[915]: DHCPOFFER(wlan0) 192.168.1.216 80:6c:1b:c4:be:7a
Mar 30 22:44:01 dnsmasq-dhcp[915]: RTR-SOLICIT(wlan0) 80:6c:1b:c4:be:7a
Mar 30 22:44:04 dnsmasq-dhcp[915]: DHCPDISCOVER(wlan0) 80:6c:1b:c4:be:7a
Mar 30 22:44:04 dnsmasq-dhcp[915]: DHCPOFFER(wlan0) 192.168.1.216 80:6c:1b:c4:be:7a
Mar 30 22:44:05 dnsmasq-dhcp[915]: RTR-SOLICIT(wlan0) 80:6c:1b:c4:be:7a
Mar 30 22:44:09 dnsmasq-dhcp[915]: RTR-SOLICIT(wlan0) 80:6c:1b:c4:be:7a
Mar 30 22:44:13 dnsmasq-dhcp[915]: DHCPDISCOVER(wlan0) 80:6c:1b:c4:be:7a
Mar 30 22:44:13 dnsmasq-dhcp[915]: DHCPOFFER(wlan0) 192.168.1.216 80:6c:1b:c4:be:7a
I've got an HTC phone and Nexus 7 pad working fine with the Pi-Hole DHCP service.
Maybe if you supply make/model, someone else can confirm troubles with these phones ?
From those log entries, i can make out these requests come in via the WLAN interface.
Is the LAN interface connected and configured with an IP too (dual IP or bridged) ?
If so, maybe try disabling one of them, and reboot ?
A moto g 2 and a fairphone the wlan interface is configured with a static ip
I've got the same configuration, I assigned a static IP to my Nexus 7 and all works fine...
i had huge problems with Pihole and my Android devices.
I had to disable IPV6 on both my router and Pi-hole.
1 Like
I'm having this issue too - I've just setup pihole (using the diginc docker container) and it's working fine with windows/linux (incl over wifi) but none of the android devices can get an IP address.
Looking in the log I see the following repeated over and over
Jan 27 17:58:43 dnsmasq-dhcp[8890]: DHCPDISCOVER(eth0) xx:xx:xx:xx:xx:xx
Jan 27 17:58:43 dnsmasq-dhcp[8890]: DHCPOFFER(eth0) 192.168.1.26 xx:xx:xx:xx:xx:xx
Jan 27 17:58:43 dnsmasq-dhcp[8890]: ARP-cache injection failed: Operation not permitted
Giving the phone a static IP does allow it to connect, but this isn't an ideal solution as I don't want to have to set a static ip on friend's phones when they come over.
I've disabled ipv6 on pihole (in the DHCP settings, at least, but can't find an option to do the same on my router.
I setup an RPi with DietPi and PiHole running on bare-metal, and am not having any DHCP issues with this setup. I think it must have been caused by the docker image, instead of pihole.