Fairphone 5 eOS with pihole not working

Dear Fairphone community,

I’ve bought a Raspberry Pi 5 and I am running Pi-Hole in it in a docker container. The Pi is connected to my router and each device connected to my router got its fixed IP address and as local DNS server in the DHCP section I’ve configured the IP address of my Pi. Everything works great, I can see in the query logs of my Pi-Hole dashboard all queries of all my devices, EXCEPT from my FP5 e os smartphone.

I’ve tried to add static IP to my WiFi connection in the phone, specifying its IP address, gateway and especially the primary and secondary DNS server, which I configured in both cases the IP address of my Pi.

Once configured, upon inspecting the new configuration for that WifI network, I can see under the “DNS” section the following:

some IPv6 address
some IPv6 address
IP of the Pi

No matter what I do, the IP of the Pi is always the tertiary DNS server and I cannot change the order. And it is not possible to delete the first two ones. Every time a new wifi network is added, apparently e os is populating the first two dns servers by itself, even when a static ip with all other config (primary and secondary dns as IP of the Pi) is set manually and putting that manually set DNS IP on the third place.

An observation I made:

When I am deleting the Wifi network with the pi and adding it again with the custom config- for a brief moment, the first few queries - are going indeed through the pihole, but all subsequent queries do not. It seems that this happens also every time when disconnecting from the Wifi network and connecting again. Apparently the initial dns call goes through the pihole, then only through the other two dnsv6 servers further up in the dns list on the smartphone.

First I thought, maybe it is just not logged in the pihole. I’ve tested this by blacklisting completely everything from instagram. After doing that. all devices were blocked visiting instagram except the FP5 e os smartphone. Therefore the FP5 was using the other ipv6 dns servers from the list.

My assumption is that Advanced privacy is using its own dns servers with its blocklists on it, always prioritizing it, even over manually set dns servers.

It is very annoying that I cannot use my FP5 with e os with pihole together via my home network.

Has anyone a suggestion how to resolve this issue? Thanks in advance!

e os version: 2.6.3 in FP5

Did you address this in the e/OS forum, as you suspect its rather a system than a device issue? If not I would suggest to also do this, as you might get faster answers.

2 Likes

yes, I wrote the same thread in the /e/OS forum as well :slight_smile:

3 Likes

Maybe it makes more sense to look in a pihole forum? There are many instructions there on how to configure IPv6 correctly.

All my devices work correctly, except my phone running eOS. So it’s rather a phone problem. but thanks for the suggestions, I will try it there as well :slight_smile:

1 Like

Found the solution in the other forum!

2 Likes

Thanks for sharing this information. Had to check my settings.

All traffic is going through my pihole:

You’re welcome!

In this case your /e/OS traffic will also go through pihole BUT each device will be shown in the query logs of pihole as ‘fritz.box’ in the device column of the table. So no distinction possible which device is causing what traffic.
This was not acceptable for me :grin:

Great that you found a solution. And thank your for reminding me about that second place in fritzbox to configure the local dns (in the dhcp config). Apparently I had configured my pihole there years ago and have totally forgotten about it. This explains a lot of my confusion when trying to debug a problem I had with my pihole a couple of weeks ago :sweat_smile: :sweat_smile: