I’m trying to force DNS all my devices in my network using Pi-Hole and I’ve already tried all the solutions in this forum (for seven days already). They work great when used on laptops. (The latest solution I have is this video from Mikrotik: https://www.youtube.com/watch?v=EdzDCkFaskc)
But, I just can’t get this working with mobile phones, e.g. Android. I can easily bypass the DNS I want to apply
Anyone knows how to force DNS the mobile phones?
The NAT rules are working on our laptops. I just want to implement it on our mobile phones
Pi-Hole Address: 192.168.5.125
Devices and Mikrotik ourter are in the same network: 192.168.5.0/24
Q1: We don’t use iPV6 in our country so I’m not sure if our devices would use iPV6 DNS. But I’ll try to dig some guides just in case
Q2 and Q3: Have not considered doing this. I’ll do some research
You “simply” have to block all the IPs of the well-known DoH or DoT servers on the router, to force the usage of simple DNS.
Still a small loophole, in case somebody runs his private DoH-server, though. Or your list of well-known Doh/DoT-Servers is incomplete; requires regular updates, of course.
Looks like Android has a setting called “Private DNS” that’s set to “Automatic” by default and that seems to make the device prefer to use google’s own DoH DNS servers ignoring the DHCP server ones. Disabling that setting makes the OS then honor the DHCP server’s list.