this post was submitted on 21 Mar 2026
22 points (95.8% liked)

Android

33671 readers
347 users here now

DROID DOES

Welcome to the Android community on Lemmy. Here you can participate in amazing discussions and events relating to all things Android.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules


1. All posts must be relevant to Android devices/operating system.


2. Posts cannot be illegal or NSFW material.


3. No spam, self promotion, or upvote farming. Sources engaging in these behavior will be added to the Blacklist.


4. Non-whitelisted bots will be banned.


5. Engage respectfully: Harassment, flamebaiting, bad faith engagement, or agenda posting will result in your posts being removed. Excessive violations will result in temporary or permanent ban, depending on severity.


6. Memes are not allowed to be posts, but are allowed in the comments.


7. Posts from clickbait sources are heavily discouraged. Please de-clickbait titles if it needs to be submitted.


8. Submission statements of any length composed of your own thoughts inside the post text field are mandatory for any microblog posts, and are optional but recommended for article/image/video posts.


Community Resources:


founded 2 years ago
MODERATORS
 

I'm using e/os and I want to be sure that, when connected to my local network, my local dns server is used, however, no matter what I do, my phone always use google's one. Is there any way to fix this?

top 15 comments
sorted by: hot top controversial new old
[–] fonixmunke@sh.itjust.works 1 points 1 day ago (1 children)

I use a quick time for toggling on and off private DNS, and it appears it can also change automatically based on the network:

https://f-droid.org/packages/com.rbn.qtsettings/

It does require Shizuku to be installed, too.

[–] blackbeard@europe.pub 1 points 1 day ago

Why this matter? Is it posibile to use your local dns ip as private dns? I have tried and didn't accept a local ip address

[–] wasu@lemmy.world 4 points 2 days ago (1 children)

Not sure about e/OS but generally on android you can set DNS when connecting to Wifi.
So you should be able to change that in Settings » WIFI » [Your local network] » DNS

[–] blackbeard@europe.pub 1 points 2 days ago (1 children)

Did you ever tested it? Because in any android device I got, it always "default" to 8.8.8.8 - google's one. I have to connect to a vpn do get local ips being resolved. I just don't get it, is this normal?

[–] wasu@lemmy.world 2 points 1 day ago (1 children)

I don't have a custom DNS server configured, but that's what I tested:

  • Went to Settings » Connections and Share » Private DNS - made sure it is off (it takes priority when set)
  • Went to Settings » WiFi » [My local network] » DNS1 and entered my router's IP

After that it started to use my ISP's DNS servers (preconfigured in router) instead of CloudFlare 1.1.1.1 (what was default on my android when connecting to WiFi

[–] blackbeard@europe.pub 1 points 1 day ago (1 children)

Yes but how do you know that is using that? I mean, did you try to resolv a local address? I have test it using a Terminal (termux) - If I use did and seems to report all the time, regardless of which connection and despite setting my local DNS setting on a static configuration for the wifi. Is this the same for you? can you share some screenshot?

[–] wasu@lemmy.world 1 points 1 day ago (1 children)

I visited http://ipleak.net/ to check which dns is used.
In Termux nslookup will use 8.8.8.8, but I suspect it takes it from Termux environment that doesn't sync with android settings.

[–] blackbeard@europe.pub 1 points 1 day ago (1 children)

Are you sure? I believe that using ipleak.net will provide you with a detailed report of your public IP address, DNS servers, WebRTC status, and other network-related information. However, it will not show you the internal DNS server you are using within your local network.

You are right that Android's system-wide DNS settings (e.g., those configured in Wi-Fi or mobile network settings) are not automatically applied to Termux. Termux runs in a sandboxed environment and manages its own network configuration. I will try changing Termux but keep in mind that the reason I checked Termus is because local dns resolution do not work on all my android devices, I can resolv local addresses only if I connect to my home network remotely using a vpn.

[–] wasu@lemmy.world 1 points 1 day ago (1 children)

I believe that using ipleak.net [...] will not show you the internal DNS server you are using within your local network.

You're right. It won't show internal one. As I mentioned I don't have internal DNS server set up, so I only used it to check whether changing DNS in wifi settings will actually take effect, and it did. That's why I believe setting it to internal one should take effect as well.

I may try to setup custom DNS in my local network when I have some free time.

[–] wasu@lemmy.world 1 points 1 day ago

Ok, I did test it.

  1. I set up DNS server on my PC using Technitium.
  2. I add zone a.local and add record with device A's IP.
  3. I add zone b.local and add record with device B's IP.
  4. On device A (Android 11) I go to Setting » WiFi and set DNS to PC's IP.
  5. On device B (Android 13) I go to Settings » WiFi and:
    • Change IP to static
    • Change both DNS1 and DNS2 to PC's IP.
  6. I ran some file served over http on both devices.
  7. I visit http://a.local/ on device B ❯ A's Files accessed
  8. I visit http://b.local/ on device A ❯ B's Files accessed

Everything works.

Note:

  • it took DNS server about 1min to add the records (idk why).
  • It seems devices caches NAME_NOT_RELOVED so if it failed it will be cached as such for at least a few minutes.
[–] fleem@piefed.zeromedia.vip 2 points 2 days ago (2 children)

how do we get phones to see local DNS records?

[–] blackbeard@europe.pub 3 points 2 days ago

like every other devices I supposed..but it doesn't work in any mobile I got. the dns server stay google's one no matter what you do.

[–] thelittleblackbird@lemmy.world 2 points 2 days ago (1 children)

I had the same problem in my network and the solution is not easy.

Many, but many android apps are using Google dns servers just to leak the location of the phone (using the nearest geographical Google server).

The only way I found it was to instsll an opnsense router and redirect requests to port 53 to the internal dns server.

DoT (dns over tls) is blocked because it can not be redirected

DoH (dns over https) is (almost) imposible to block and still is a hole in current systems.

Good luck solving this

[–] Engywuck@lemmy.zip 1 points 2 days ago (1 children)

You can block DoH by using a comprehensive blocklist of DoH domains. Both NextDNS and ControlD do this.

Yep, I checked that possibility too but it is like putting barriers into the see because :

  • DoH can also share the IP-PORT with some legits websites
  • there is not a proper way to scan the web to see if there is a proper service
  • the effort to setup one is orders of magnitude lower tan to track then and then to filter it properly

Honestly is just the prey-predator competition. It won't stop ever