[Android] DNS resolution error on WiFi #794

Open
opened 2025-11-20 05:17:39 -05:00 by saavagebueno · 10 comments
Owner

Originally created by @Ziomal12 on GitHub (Apr 11, 2024).

Describe the problem

DNS error with Netbird enabled on wifi. On cellular data everything works just fine. The problem is most apparent with internet browsers but affects other apps too.

To Reproduce

Steps to reproduce the behavior:

  1. Connect to Wifi network
  2. Enable Netbird
  3. Go to internet browser
  4. Enter any page that hasn't been visited lately (to make sure it doesn't have DNS cached.
  5. Connection times out.

Expected behavior

Webpage should load.

Are you using NetBird Cloud?

I'm using self-hosted control plane.

NetBird version

Android app version 0.0.20 (agent version 0.25.6) - latest available from Google Play Store at the time.
Control plane version (0.27.2)

Additional context

Android_logs_on_mobile_data.txt
android_logs_on_wifi.txt

I have Quad9 DNS nameserver added and enabled in control plane.

On both Wifi and mobile data I'm able to ping ip addresses (i.e 1.1.1.1) but on Wifi I cannot ping domains (i.e. github.com), on Mobile data pinging domains works. (those tests done using Termux)
No routes configured, no posture checks, no policies.

Originally created by @Ziomal12 on GitHub (Apr 11, 2024). **Describe the problem** DNS error with Netbird enabled on wifi. On cellular data everything works just fine. The problem is most apparent with internet browsers but affects other apps too. **To Reproduce** Steps to reproduce the behavior: 1. Connect to Wifi network 2. Enable Netbird 3. Go to internet browser 4. Enter any page that hasn't been visited lately (to make sure it doesn't have DNS cached. 5. Connection times out. **Expected behavior** Webpage should load. **Are you using NetBird Cloud?** I'm using self-hosted control plane. **NetBird version** Android app version 0.0.20 (agent version 0.25.6) - latest available from Google Play Store at the time. Control plane version (0.27.2) **Additional context** [Android_logs_on_mobile_data.txt](https://github.com/netbirdio/netbird/files/14946033/Android_logs_on_mobile_data.txt) [android_logs_on_wifi.txt](https://github.com/netbirdio/netbird/files/14946034/android_logs_on_wifi.txt) I have Quad9 DNS nameserver added and enabled in control plane. On both Wifi and mobile data I'm able to ping ip addresses (i.e 1.1.1.1) but on Wifi I cannot ping domains (i.e. github.com), on Mobile data pinging domains works. (those tests done using Termux) No routes configured, no posture checks, no policies.
saavagebueno added the triage-needed label 2025-11-20 05:17:39 -05:00
Author
Owner

@pappz commented on GitHub (Apr 11, 2024):

Hi @Ziomal12!

Could you share with me the version number of the Android OS?

@pappz commented on GitHub (Apr 11, 2024): Hi @Ziomal12! Could you share with me the version number of the Android OS?
Author
Owner

@Ziomal12 commented on GitHub (Apr 11, 2024):

Of course, sorry for not including that.
It's Android 14.

@Ziomal12 commented on GitHub (Apr 11, 2024): Of course, sorry for not including that. It's Android 14.
Author
Owner

@dbergloev commented on GitHub (Apr 11, 2024):

I have similar issues with Android 13. Does not mater if it's on WiFi or not, DNS is not working.

  • On WiFi the DNS is not changed at all. It remains whatever the Router provided.
  • On Celular the DNS is changed to some 100.* address, but it does not resolve any custom domains that I have on my own DNS server, so it's propbaly just using some Netbird assigned DNS since normal domains are resolved.

On Linux the configuration is working as expected and so does Android with both ZeroTier and my own Wireguard setup. But Android+Netbird cannot do custom DNS.

@dbergloev commented on GitHub (Apr 11, 2024): I have similar issues with Android 13. Does not mater if it's on WiFi or not, DNS is not working. * On WiFi the DNS is not changed at all. It remains whatever the Router provided. * On Celular the DNS is changed to some 100.* address, but it does not resolve any custom domains that I have on my own DNS server, so it's propbaly just using some Netbird assigned DNS since normal domains are resolved. On Linux the configuration is working as expected and so does Android with both ZeroTier and my own Wireguard setup. But Android+Netbird cannot do custom DNS.
Author
Owner

@dbergloev commented on GitHub (Apr 11, 2024):

Well on celular it uses 100.97.255.254. I tried using this in a docker container running Netbird and through netshoot on top of it and I am getting strange results.

$ host -t A google.com 100.97.255.254
netmgr/uverr2result.c:98:isc___nm_uverr2result(): unable to convert libuv error code in udp_send_cb (netmgr/udp.c:804) to isc_result: -126: Unknown system error -126

It is working with other servers

$ host -t A google.com 1.1.1.1
Using domain server:
Name: 1.1.1.1
Address: 1.1.1.1#53
Aliases: 

google.com has address 142.250.147.101
google.com has address 142.250.147.138
google.com has address 142.250.147.139
google.com has address 142.250.147.102
google.com has address 142.250.147.113
google.com has address 142.250.147.100
@dbergloev commented on GitHub (Apr 11, 2024): Well on celular it uses `100.97.255.254`. I tried using this in a docker container running Netbird and through netshoot on top of it and I am getting strange results. ```sh $ host -t A google.com 100.97.255.254 netmgr/uverr2result.c:98:isc___nm_uverr2result(): unable to convert libuv error code in udp_send_cb (netmgr/udp.c:804) to isc_result: -126: Unknown system error -126 ``` It is working with other servers ```sh $ host -t A google.com 1.1.1.1 Using domain server: Name: 1.1.1.1 Address: 1.1.1.1#53 Aliases: google.com has address 142.250.147.101 google.com has address 142.250.147.138 google.com has address 142.250.147.139 google.com has address 142.250.147.102 google.com has address 142.250.147.113 google.com has address 142.250.147.100 ```
Author
Owner

@smartlot commented on GitHub (Apr 14, 2024):

I have everything setup and clients connecting, but for the life of me, regardless of what I try, I cannot get clients to use my internal DNS servers, it just does not resolve anything! Without DNS server entries it just defaults to Google.

How do I force clients to only use my LAN DNS servers?

@smartlot commented on GitHub (Apr 14, 2024): I have everything setup and clients connecting, but for the life of me, regardless of what I try, I cannot get clients to use my internal DNS servers, it just does not resolve anything! Without DNS server entries it just defaults to Google. How do I force clients to only use my LAN DNS servers?
Author
Owner

@OminousLama commented on GitHub (Aug 16, 2024):

I also have this issue. I think it worked a while back (not sure, might have been chached and given a false positive), but doesnt anymore. :(

@OminousLama commented on GitHub (Aug 16, 2024): I also have this issue. I think it worked a while back (not sure, might have been chached and given a false positive), but doesnt anymore. :(
Author
Owner

@badmark commented on GitHub (Aug 16, 2024):

Wasted hours of my life trying to get Netbird to "work". It's billed as an easier way to setup Wireguard, LIES!

Took me less than 25 minutes to setup server and 5 clients, over the days spent trying to get this to work.

Save your time, Wireguard is simple enough, Netbird will only give you headaches.

I mean, 601 open issues? Just shut down the project, it's a waste.

@badmark commented on GitHub (Aug 16, 2024): Wasted hours of my life trying to get Netbird to "work". It's billed as an easier way to setup Wireguard, LIES! Took me less than 25 minutes to setup server and 5 clients, over the days spent trying to get this to work. Save your time, Wireguard is simple enough, Netbird will only give you headaches. I mean, 601 open issues? Just shut down the project, it's a waste.
Author
Owner

@nazarewk commented on GitHub (Apr 28, 2025):

Hello @Ziomal12,

We're currently reviewing our open issues and would like to verify if this problem still exists in the latest NetBird version.

Could you please confirm if the issue is still there?

We may close this issue temporarily if we don't hear back from you within 2 weeks, but feel free to reopen it with updated information.

Thanks for your contribution to improving the project!

@nazarewk commented on GitHub (Apr 28, 2025): Hello @Ziomal12, We're currently reviewing our open issues and would like to verify if this problem still exists in the [latest NetBird version](https://github.com/netbirdio/netbird/releases). Could you please confirm if the issue is still there? We may close this issue temporarily if we don't hear back from you within **2 weeks**, but feel free to reopen it with updated information. Thanks for your contribution to improving the project!
Author
Owner

@Ziomal12 commented on GitHub (Apr 28, 2025):

Hello,

Currently I'm unable to verify as I'm not currently using this VPN solution. I'll give it a try in July, as now with finals coming I don't have much free time. But I'm very keen on trying new features/improvements.

As far as I'm concerned If no one else is experiencing this issue please consider it closed.

Thank you for developing this amazing tool.

@Ziomal12 commented on GitHub (Apr 28, 2025): Hello, Currently I'm unable to verify as I'm not currently using this VPN solution. I'll give it a try in July, as now with finals coming I don't have much free time. But I'm very keen on trying new features/improvements. As far as I'm concerned If no one else is experiencing this issue please consider it closed. Thank you for developing this amazing tool.
Author
Owner

@magenbrot commented on GitHub (Nov 11, 2025):

@Ziomal12 I can confirm that this still persists in the current netbird android app with a selfhosted control server. It works with cellular connection but not with WIFI.

@magenbrot commented on GitHub (Nov 11, 2025): @Ziomal12 I can confirm that this still persists in the current netbird android app with a selfhosted control server. It works with cellular connection but not with WIFI.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#794