Funny i have the same issue.
I am using OWRT 21.02 and I have my own Adguard Home dns up in azure.
I have forwarded my dns to this adguard server.. however, if I use my adguard servers domain name on my android phone, nothing works. But if i switch to mobile data, it works fine.
What domain are you inserting into your mobile device?
Also, clearly explain how your issue relates to the OpenWrt
What happens if you remove this configuration that already forwards traffic to the DNS server?
I assume your server runs DoH?
Are you running a Kong build?
Lastly, did you see this part - do you allow for this on your network?
Go figure - if you need in-depth assistance with this, you may wish to make a new thread (i.e. to provide detailed information on your specific issue) - as the OP's issue is solved.
This is where i forward my dns request to my Adguard home server that runs on Azure.
I have DoH and DoT enabled in my Adguard server. So if I add my DoH url to my phone, and if I connect to my home wifi, which is managed by my OWRT router, then the internet stops working for my phone. But if i switch over to mobile data while still keeping the DoH records, i can talk to my Adguard server fine and get the dns resolved.
For my home, i am still dependent on plain text DNS. OWRT serves DHCP and all dns requests gets forwarded to my Adguard server. It's only the DoH that doesn't work through OWRT router
We know that and explained why. If you're willing to provide the requested information, we could assist you.
So far, you're seem to be describing:
that you want secure DNS via DoH
but never configured DoH anywhere (maybe on your Azure server, but it's not clear yet)
additionally you blocked regular DNS requests on your network - which your Androids need to use securea DNS server that is configured by its hostname (a race condition or chicken-or-the-egg paradox yes, but true nonetheless)
there's nothing in the default openwrt config that would stop a device from making DoH requests (it'd would block all HTTPS traffic in the process).
if it doesn't work, you've probably made a config error
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
not using AGH, but your AGH Azure server needs to provide a DoH server, but I guess it does, since it's working when you disable the wifi on the phone ?
Not necessarily. I understand the DNS setting on Androids to be normal plain-text DNS. You merely specify a specific recursive DNS server [by name] (e.g. you must specify one.one.one.one - and not 1.1.1.1, hence requiring a normal plain-text DNS lookup in the first instance anyways). This is why I asked if the Android was somehow configured to used DoH in another manner.
Some reading:
While the article says "encrypted" - I'm not aware of that.
If you read carefully, I clearly said my AdGuard Home server in Azure is configured for DoH. If you don't know what Adguard Home is and how it functions, that's understandable. But I can explain to you it's functionality
Yes I want secure DNS over DoH.
Let me explain again in English.
I have an OWRT setup at home. This router is my local DHCP and DNS server for all Wired and wireless clients. I have an Adguard Home(AGH) setup in Azure with DoT and DoH support enabled.
So, the current setup is that whenever a client sends a DNS request to my OWRT, the router will forward the DNS query to my AGH's public IP. So, in other words, it is my upstream DNS. So this bit is working great without a single issue.
per say lets assume my DoH address is "one.mydomain.com", if I configure my Android phone to use this URL as my private DNS, as long as I am on mobile data or sit behind any other non-OWRT router, it works fine. But as soon as I sit behind my OWRT router, it stops working.
in my understanding, when my phone tries to resolve "one.myurl.com", it sends the request to OWRT and the OWRT forwards the query to my AGH server.
I will upload the requested details as soon as I go back home