if I have prevent client auto DOH enabled
prevent devices from accessing DoT
I have been using DNS Diretor for a few years now and it has been working great. I use Pihole as recursive server with adlists to block doh. Recently I got an Android phone and noticed when using Android Private DNS it can bypass the router when setting the phone to use any other dns like 8.8.8.8.DNS Director effects both DNS (53) and DoT (853).
Post a readable screen shot of your DNS Director configuration. You may not have DNS Director configured properly.I have been using DNS Diretor for a few years now and it has been working great. I use Pihole as recursive server with adlists to block doh. Recently I got an Android phone and noticed when using Android Private DNS it can bypass the router when setting the phone to use any other dns like 8.8.8.8.
Is there a way to prevent Android phones from bypassing the router?
Thanks.
www.snbforums.com
To confirm. If you are using an external device to hold the Pi-Hole is that device in the DNS Director's Client List section and set to No Redirection?That's how I've had it and it's always been fine. I used to have iPhones, and using iPhones I could never bypass the router when setting a different dns server on the phone. But now that I recently got Android I noticed I can.
Look at the System Log -> Network Connections tab. Do you have any connections from the phone to destination port 853?But now that I recently got Android I noticed I can.
iptables -nvL DNSFILTER_DOT
This is the way I've had it now for a very long time.To confirm. If you are using an external device to hold the Pi-Hole is that device in the DNS Director's Client List section and set to No Redirection?
Do you have the option Advertise router's IP in addition to user-specified DNS set to No on the LAN > DHCP Server page?
If external Pi-Hole device is that device's IP address listed in the LAN > DHCP Sever DNS field(s)?
Do you have IPv6 enabled on the router or Android phone? Maybe the phone is using IPv6 requests bypassing Pi-Hole. If so may need to check the Pi-Hole to see how it's handling IPv6 in your setup.
Do you have any addon scripts installed?
I don't see any connections using port 853. I did notice something peculiar. It seems the Android is only able to bypass the router when using 8.8.8.8. If I use any other dns server, it doesn't bypass the router. I tried 1.1.1.1, 208.67.222.222 and it will not bypass. As soon as I use 8.8.8.8 it does.Look at the System Log -> Network Connections tab. Do you have any connections from the phone to destination port 853?
How do your rules look?
Code:iptables -nvL DNSFILTER_DOT
Are there any connections from the phone's IP to 8.8.8.8? What's your test that proves it's bypassing?I don't see any connections using port 853. I did notice something peculiar. It seems the Android is only able to bypass the router when using 8.8.8.8. If I use any other dns server, it doesn't bypass the router. I tried 1.1.1.1, 208.67.222.222 and it will not bypass. As soon as I use 8.8.8.8 it does.
I use Pihole to block adult sites. So when I change the Android's dns to 8.8.8.8 I can visit sex.com...with any other dns server in there that site is blocked.Are there any connections from the phone's IP to 8.8.8.8? What's your test that proves it's bypassing?
What are the WAN DNS server set to out of curiosity? Google's DNS servers or something else?I don't see any connections using port 853. I did notice something peculiar. It seems the Android is only able to bypass the router when using 8.8.8.8. If I use any other dns server, it doesn't bypass the router. I tried 1.1.1.1, 208.67.222.222 and it will not bypass. As soon as I use 8.8.8.8 it does.
This seems to have worked! - Thank you!!What are the WAN DNS server set to out of curiosity? Google's DNS servers or something else?
What is the Pi-Hole's DNS servers set to?
Try blocking, if you are not already doing so, Google's DNS servers (8.8.8.8 and 8.8.4.4) on the Router's LAN > Route page and see if that helps. Example (use your router's IP as the Gateway address):
View attachment 69552
Do you have Google DNS set as your router's WAN DNS servers?Why was google dns the only one that was able to get through?
No, I have 1.1.1.1 in WANDo you have Google DNS set as your router's WAN DNS servers?
# ip6tables -nvL DNSFILTER_DOT
Chain DNSFILTER_DOT (0 references)
pkts bytes target prot opt in out source destination
I fit the requirement and I have the basic requirements I believe. IPv4 and IPv6 servers defined under WAN>DoT with global redirection set to "Router", as I always have done. No results from your one liner.To verify, does anyone with IPv6 and DNS Director enabled see any rules running this command?

Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!