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
11.09k stars 510 forks source link

Netbird DNS not working on android #2425

Closed simen64 closed 1 week ago

simen64 commented 2 months ago

Describe the problem

When using the netbird VPN on my pixel 8 pro, it does not resolve dns using the netbird assigned DNS server.

To Reproduce

Steps to reproduce the behavior:

  1. Use the netbird vpn on pixel 8 pro
  2. Make sure private DNS is turned off in settings
  3. try to access one of the netbird IP's in the browser
  4. See nothing

Expected behavior The IP resolves and serves what is on that clients ip web ui etc

Are you using NetBird Cloud?

I am self-hosting

NetBird version

Server version = 0.28.7 Android app version = `0.28.0

I have attached the logs from advanced trace log from the netbird app. netbird-1723394378631.log.txt

cannonfodda commented 2 months ago

@simen64 any chance it's related to 1483 ? Adding a DNS server solved similar issues that I was having.

jakob1379 commented 3 weeks ago

Seems like I have the same issue. I have adguard as dns and it works on windows and Linux but not on my 1+11-Android14

I have a nameserver setup for distribution group "all". This works on my windows machine.

I can ping the ip of the other peers but an nslookup on the domain name fails and shows the phone using 8.8.8.8 instead of the nameserver set in Netbird.

EDIT: Just adding some more context after updating peers to 0.30.2

Peers: billede

Nameserver: billede

netbird status -d shows nameserver on all devices, but names only resolve properly on windows.

jakob1379 commented 2 weeks ago

following the comment here https://github.com/netbirdio/netbird/issues/1483#issuecomment-2341193743, suggesting to add a default catch all nameserver, made the namerserver work on both linux and android for me.

simen64 commented 1 week ago

I believe this is a result of issue 2158