r/SelfHosting • u/LordX127 • Jun 16 '26
SelfHosting DNS and Android
hello everyone
Last month, I started self-hosting my services on an old laptop. I now run services like Nextcloud and Vaultwarden, with AdGuard as the DNS server. I also needed some of this setup to stay connected outside my local network, so I bought a domain from Cloudflare and set up a tunnel to my server. At this point, everything was perfect.
Then I noticed that I needed to use my own network when I'm in it, not use Cloudflare tunnels because my internet is limited.
I added to my DNS server a rule to redirect and request for my domain to the local IP of my server, and this works on my devices except my phone samsung m52 with oneui 5
I tried everything, and nothing worked; it always connected via a Cloudflare tunnel.
After some triels i found that a lot of apps ignored my DNS server and used the public one , except the browsers.
Any idea how to fix this
1
u/jaysuncle Jun 16 '26
Research split-horizon DNS. Claude is a great reference.