Domain names for Netbird peers not working on Android #499

Closed
opened 2025-11-20 05:12:33 -05:00 by saavagebueno · 14 comments
Owner

Originally created by @valmar on GitHub (Nov 1, 2023).

Describe the problem
Domain names for Netbird peers are not resolved on Android

To Reproduce
Steps to reproduce the behavior:

  1. Install Netbird Android client
  2. Connect to a network
  3. From termux, try pinging "peer_name.netbird.selfhosted"
  4. "No address associated with hostname" error.
  5. Pinging the netbird peer IP works

Expected behavior
The domain name of the peer is resolved

NetBird status -d output:
Not sure how to get this on Android

Additional context
I am running private DNS with NextDNS, but even turning this off, the error persits

Platform: Pixel 7 Pro, Android version: 14, Netbird Android App: 0.0.18

Originally created by @valmar on GitHub (Nov 1, 2023). **Describe the problem** Domain names for Netbird peers are not resolved on Android **To Reproduce** Steps to reproduce the behavior: 1. Install Netbird Android client 2. Connect to a network 3. From termux, try pinging "peer_name.netbird.selfhosted" 4. "No address associated with hostname" error. 5. Pinging the netbird peer IP works **Expected behavior** The domain name of the peer is resolved **NetBird status -d output:** Not sure how to get this on Android **Additional context** I am running private DNS with NextDNS, but even turning this off, the error persits Platform: Pixel 7 Pro, Android version: 14, Netbird Android App: 0.0.18
saavagebueno added the bugAndroid labels 2025-11-20 05:12:33 -05:00
Author
Owner

@the-furry-hubofeverything commented on GitHub (Dec 5, 2023):

Do you have the "Private DNS" setting enabled?
Was looking for how to solve this problem then it hit me, I tried it, and it works as a workaround.

@the-furry-hubofeverything commented on GitHub (Dec 5, 2023): Do you have the "Private DNS" setting enabled? Was looking for how to solve this problem then it hit me, I tried it, and it works as a workaround.
Author
Owner

@pappz commented on GitHub (Dec 10, 2023):

@valmar is your service provider assign IPv6 or IPv4 DNS address?

@pappz commented on GitHub (Dec 10, 2023): @valmar is your service provider assign IPv6 or IPv4 DNS address?
Author
Owner

@valmar commented on GitHub (Dec 10, 2023):

Dear Zoltan,

It's the default used by my pixel phone

Valerio

On Sunday, December 10th, 2023 at 1:02 PM, Zoltan Papp @.***> wrote:

@.***(https://github.com/valmar) is your service provider assign IPv6 or IPv4 DNS address?


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

@valmar commented on GitHub (Dec 10, 2023): Dear Zoltan, It's the default used by my pixel phone Valerio On Sunday, December 10th, 2023 at 1:02 PM, Zoltan Papp ***@***.***> wrote: > ***@***.***(https://github.com/valmar) is your service provider assign IPv6 or IPv4 DNS address? > > — > Reply to this email directly, [view it on GitHub](https://github.com/netbirdio/netbird/issues/1282#issuecomment-1849083712), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AAEILBO4GXDSLMHIGYYGPMTYIYPN3AVCNFSM6AAAAAA6ZWMSIGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBZGA4DGNZRGI). > You are receiving this because you were mentioned.Message ID: ***@***.***>
Author
Owner

@pappz commented on GitHub (Dec 11, 2023):

We have a fix what may be relevant for you. Soon the new version will be available on Google Play Store but until you can download the APK from here if you would like to take a try.

@pappz commented on GitHub (Dec 11, 2023): We have a fix what may be relevant for you. Soon the new version will be available on Google Play Store but until you can download the APK from [here](https://github.com/netbirdio/netbird/releases/download/v0.24.4/netbird_0.0.19_0.24.4_app.apk) if you would like to take a try.
Author
Owner

@arnav-kr commented on GitHub (May 8, 2024):

any updates? tried the mentioned apk, still same, tried the latest on Play Store too, the dashboard says the client needs an update, but that's the latest app on play store, seems like Android version is not actively worked on as other clients.

as the author mentioned, pinging ip works, the given domain doesn't in my case too
though i am not self hosting it

@arnav-kr commented on GitHub (May 8, 2024): any updates? tried the mentioned apk, still same, tried the latest on Play Store too, the dashboard says the client needs an update, but that's the latest app on play store, seems like Android version is not actively worked on as other clients. as the author mentioned, pinging ip works, the given domain doesn't in my case too though i am not self hosting it
Author
Owner

@MasterWayZ commented on GitHub (Jun 17, 2024):

Self hosting, domain doesn't work on Android, but works fine on Mac and Windows.
(Using latest available versions.)

@MasterWayZ commented on GitHub (Jun 17, 2024): Self hosting, domain doesn't work on Android, but works fine on Mac and Windows. (Using latest available versions.)
Author
Owner

@bangonkali commented on GitHub (Sep 18, 2024):

I can confirm on my Samsung Galaxy S10. Unfortunately domains do not get routed through a peer. But it works on iPhone 15 latest IOS as of time of posting.

Self hosting, domain doesn't work on Android, but works fine on Mac and Windows. (Using latest available versions.)

@bangonkali commented on GitHub (Sep 18, 2024): I can confirm on my Samsung Galaxy S10. Unfortunately domains do not get routed through a peer. But it works on iPhone 15 latest IOS as of time of posting. > Self hosting, domain doesn't work on Android, but works fine on Mac and Windows. (Using latest available versions.)
Author
Owner

@v1rusnl commented on GitHub (Oct 16, 2024):

I guess I'm late for that train. But I use Netbird along DOT NextDNS on my Android phone and Tablet. In mynextdns.io settings, I specified rewrites for my peers.

peer_name1.netbird.selfhosted=100.X.X.X . . . peer_nameX.netbird.selfhosted=100.X.X.X

With that rewrites, the peers are perfectly reachable using the full domain name.

@v1rusnl commented on GitHub (Oct 16, 2024): I guess I'm late for that train. But I use Netbird along DOT NextDNS on my Android phone and Tablet. In mynextdns.io settings, I specified rewrites for my peers. `peer_name1.netbird.selfhosted=100.X.X.X . . . peer_nameX.netbird.selfhosted=100.X.X.X` With that rewrites, the peers are perfectly reachable using the full domain name.
Author
Owner

@dionesku commented on GitHub (Nov 7, 2024):

Still not working on Android - Samsung Galaxy Note 10+

@dionesku commented on GitHub (Nov 7, 2024): Still not working on Android - Samsung Galaxy Note 10+
Author
Owner

@v1rusnl commented on GitHub (Nov 7, 2024):

Setting up rewrites in NextDNS settings for the NetBird peers does the trick here.

Working this way without problems on Oppo Find X5 Pro and Samsung Galaxy Tab 6 Lite.

@v1rusnl commented on GitHub (Nov 7, 2024): Setting up rewrites in NextDNS settings for the NetBird peers does the trick here. Working this way without problems on Oppo Find X5 Pro and Samsung Galaxy Tab 6 Lite.
Author
Owner

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

Hello @valmar,

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 @valmar, 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

@SimonBlancoE commented on GitHub (May 21, 2025):

Hello @valmar,

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!

The issue is still there. I am using Netbird in a server, a linux laptop and a Pixel Pro 9, all of them in the latest version (0.45.0 desktop and 0.34.0 for android).

I can access my web services using the URL and the IP address from my laptop. However ,I can only access them using the IP from my smartphone. The URL won't work.

@SimonBlancoE commented on GitHub (May 21, 2025): > Hello [@valmar](https://github.com/valmar), > > 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! The issue is still there. I am using Netbird in a server, a linux laptop and a Pixel Pro 9, all of them in the latest version (0.45.0 desktop and 0.34.0 for android). I can access my web services using the URL and the IP address from my laptop. However ,I can only access them using the IP from my smartphone. The URL won't work.
Author
Owner

@emmaexe commented on GitHub (Jul 24, 2025):

Adding to this, I am still having this issue. On the latest netbird (Agent v0.50.3 / UI 0.1.7) on my phone (Android 12) I can't resolve the peers' domains.
I can reach the peers via their IPs but if I visit the unqualified domain (https://peername/) or the FQDN (https://peername.netbird/) it does not get resolved. I can see the VPN has its DNS setup correctly and has the search domain set (via adb via dumpsys connectivity). But when I try to ping a peer domain it does not work (for both domains). When I try nslookup in termux (I have to manually specify the VPN DNS since it defaults to 8.8.8.8 ignoring system settings) I can resolve the domains in both formats. I am selfhosting.

Never mind, it just started working on its own randomly.

@emmaexe commented on GitHub (Jul 24, 2025): ~Adding to this, I am still having this issue. On the latest netbird (Agent v0.50.3 / UI 0.1.7) on my phone (Android 12) I can't resolve the peers' domains. I can reach the peers via their IPs but if I visit the unqualified domain (https://peername/) or the FQDN (https://peername.netbird/) it does not get resolved. I can see the VPN has its DNS setup correctly and has the search domain set (via `adb` via `dumpsys connectivity`). But when I try to ping a peer domain it does not work (for both domains). When I try `nslookup` in termux (I have to manually specify the VPN DNS since it defaults to 8.8.8.8 ignoring system settings) I can resolve the domains in both formats. I am selfhosting.~ Never mind, it just started working on its own randomly.
Author
Owner

@nazarewk commented on GitHub (Jul 24, 2025):

Closing this because this was most likely not implemented at all on Android until v0.50.0 which seems to have landed in Play Store recently.

@nazarewk commented on GitHub (Jul 24, 2025): Closing this because this was most likely not implemented at all on Android until [`v0.50.0`](https://github.com/netbirdio/netbird/releases/tag/v0.50.0) which seems to have landed in Play Store recently.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#499