# Work around Android's sneaky DHCP behaviour

**URL:** <https://discourse.pi-hole.net/t/work-around-androids-sneaky-dhcp-behaviour/51114>\
**Category:** Customizing Pi-hole\
**Created:** [November 17, 2021, 1:17pm UTC](https://discourse.pi-hole.net/t/work-around-androids-sneaky-dhcp-behaviour/51114 "2021-11-17T13:17:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Ward](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/ben_ward/32/28214_2.png) [@Ben\_Ward](https://discourse.pi-hole.net/u/Ben_Ward)\
**Post date:** [November 17, 2021, 1:17pm UTC](https://discourse.pi-hole.net/t/work-around-androids-sneaky-dhcp-behaviour/51114/1 "2021-11-17T13:17:48Z")

</div>

So, an Android phone was still getting IP addresses for blacklisted domains after using pi-hole for DNS, even though my other devices weren't.

Looked at the network connection status and sneaky old Google had added 8.8.8.8 to the DNS servers list, so the DNS servers looked like [192.168.8.4, 8.8.8.8]

I added a second IP address to my DNS server's interface, then changed my dhcp server to push out both those IP addresses. (note that I have samba running an AD server which uses my pihole as the upstream, so I have more control over the dns and the dhcp than pihole gives you normally)

The DNS servers then looked like [192.168.8.4, 192.168.8.5] without google's DNS appended.

I'm guessing that Google currently only add a second DNS when 'redundancy' isn't already provided in your network.

I'd like to see pihole come with an option to enable a second IP address. I use it to block inappropriate content that isn't family friendly so that my family can browse safely so not happy with device vendors actively working around parental controls.

---

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [November 17, 2021, 2:06pm UTC](https://discourse.pi-hole.net/t/work-around-androids-sneaky-dhcp-behaviour/51114/2 "2021-11-17T14:06:36Z")

</div>

> [@Ben\_Ward](#):
>
> I'd like to see pihole come with an option to enable a second IP address

There is an open PR, but currently on hold (@deHakkelaar)

[https://github.com/pi-hole/pi-hole/pull/3846](https://github.com/pi-hole/pi-hole/pull/3846)

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [November 17, 2021, 3:33pm UTC](https://discourse.pi-hole.net/t/work-around-androids-sneaky-dhcp-behaviour/51114/3 "2021-11-17T15:33:13Z")

</div>

> [@Ben\_Ward](#):
>
> I'd like to see pihole come with an option to enable a second IP address

Pi-hole would only be able to do this if it is the DHCP server.

The workaround for now if you are using Pi-hole as DHCP server is to add a second DNS server assignment in a new dnsmasq configuration file.

> [@Secondary DNS Server for DHCP](https://discourse.pi-hole.net/t/secondary-dns-server-for-dhcp/1874/4):
>
> I have it running in different environments (two of them at an enterprise level, one with more than 100 clients). They all run on Raspberry Pi hardware in various revisions. They never failed so far, so I wouldn't bother too much. A clever idea might be to set up two independent Pi-hole's and (two distinct devices in the same network) and set up those two IPs as "primary" and "secondary" servers. All devices should be able to resolve domains, even if one of them fails for some reason. The cost…

---

<div class="post-metadata">

**Author:** ![low\_rider](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/l/779978/32.png) [@low\_rider](https://discourse.pi-hole.net/u/low_rider)\
**Post date:** [July 9, 2022, 6:45am UTC](https://discourse.pi-hole.net/t/work-around-androids-sneaky-dhcp-behaviour/51114/4 "2022-07-09T06:45:59Z")

</div>

Woek around Android's inability to allow you to change DNS while on cellular, f droid and download rethinkDNS.

No root required.

Go look at the network log and scroll to the top, the list continues to grow to keep scrolling back upward to see all the constant entries.

Click on one and block the app a d also the io of that exact connection.
