netbirdio / netbird

Connect your devices into a secure WireGuard®-based overlay network with SSO, MFA and granular access controls.
https://netbird.io
BSD 3-Clause "New" or "Revised" License
10.91k stars 494 forks source link

Domain names for Netbird peers not working on Android #1282

Open valmar opened 11 months ago

valmar commented 11 months ago

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

the-furry-hubofeverything commented 10 months ago

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.

pappz commented 10 months ago

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

valmar commented 10 months ago

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: @.***>

pappz commented 10 months ago

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.

arnav-kr commented 5 months ago

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

MasterWayZ commented 4 months ago

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

bangonkali commented 1 month ago

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.)

v1rusnl commented 3 days ago

I guess I'm late for that train. But I use Netbrid 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.