Android DNS leaks #1678

Open
opened 2025-11-20 06:04:38 -05:00 by saavagebueno · 5 comments
Owner

Originally created by @euh2 on GitHub (Mar 6, 2025).

Describe the problem

When using the Netbird Android app, there are DNS leaks to DNS servers from cell network provider.

To Reproduce

Steps to reproduce the behavior:

  1. Create DNS Server in the web interface. Assign a distribution group which includes your phone.
  2. Enable Netbird on your phone
  3. Check for DNS leaks through your phones webbrowser
  4. See configured DNS server/s, and DNS servers from cell network provider

Expected behavior

Netbird should block all DNS requests to servers not configured within Netbird

Are you using NetBird Cloud?

Yes

NetBird version

Phones Netbird App version 0.0.27

Is any other VPN software installed?

No

Debug output

None, yet

Screenshots

None, yet

Additional context

Add any other context about the problem here.

Have you tried these troubleshooting steps?

  • [ x] Checked for newer NetBird versions
  • [ x] Searched for similar issues on GitHub (including closed ones)
  • [ x] Restarted the NetBird client
  • Disabled other VPN software
  • Checked firewall settings
Originally created by @euh2 on GitHub (Mar 6, 2025). **Describe the problem** When using the Netbird Android app, there are DNS leaks to DNS servers from cell network provider. **To Reproduce** Steps to reproduce the behavior: 1. Create DNS Server in the web interface. Assign a distribution group which includes your phone. 2. Enable Netbird on your phone 3. [Check for DNS leaks](https://browserleaks.com/dns) through your phones webbrowser 4. See configured DNS server/s, **and DNS servers from cell network provider** **Expected behavior** Netbird should block all DNS requests to servers not configured within Netbird **Are you using NetBird Cloud?** Yes **NetBird version** Phones Netbird App version 0.0.27 **Is any other VPN software installed?** No **Debug output** None, yet **Screenshots** None, yet **Additional context** Add any other context about the problem here. **Have you tried these troubleshooting steps?** - [ x] Checked for newer NetBird versions - [ x] Searched for similar issues on GitHub (including closed ones) - [ x] Restarted the NetBird client - [ ] Disabled other VPN software - [ ] Checked firewall settings
saavagebueno added the feature-requestclientdns labels 2025-11-20 06:04:38 -05:00
Author
Owner

@1nerdyguy commented on GitHub (Mar 6, 2025):

I could be wrong here, but the DNS servers used by Netbird would only be used for domain names registered to Netbird, not for generic internet browsing or the like, unless you've setup a matching domain as ALL.

@1nerdyguy commented on GitHub (Mar 6, 2025): I could be wrong here, but the DNS servers used by Netbird would only be used for domain names registered to Netbird, not for generic internet browsing or the like, unless you've setup a matching domain as ALL.
Author
Owner

@euh2 commented on GitHub (Mar 6, 2025):

I could be wrong here, but the DNS servers used by Netbird would only be used for domain names registered to Netbird, not for generic internet browsing or the like, unless you've setup a matching domain as ALL.

This is a generic DNS server matching all requests.

@euh2 commented on GitHub (Mar 6, 2025): > I could be wrong here, but the DNS servers used by Netbird would only be used for domain names registered to Netbird, not for generic internet browsing or the like, unless you've setup a matching domain as ALL. This is a generic DNS server matching all requests.
Author
Owner

@1nerdyguy commented on GitHub (Mar 6, 2025):

Are you setup to use netbird as an exit node then, with it having highest priority in routes?

@1nerdyguy commented on GitHub (Mar 6, 2025): Are you setup to use netbird as an exit node then, with it having highest priority in routes?
Author
Owner

@euh2 commented on GitHub (Mar 6, 2025):

Are you setup to use netbird as an exit node then, with it having highest priority in routes?

This should'nt be relevant for DNS, but yes, I also use a Netbird host as exit node.

@euh2 commented on GitHub (Mar 6, 2025): > Are you setup to use netbird as an exit node then, with it having highest priority in routes? This should'nt be relevant for DNS, but yes, I also use a Netbird host as exit node.
Author
Owner

@Ghx0sty commented on GitHub (Aug 23, 2025):

I was wondering why a rewritten domain on Android wasn't working for me, from my Netbird-assigned recusive DNS server.

Turns out the DNS was leaking badly, and that was affecting name resolutions. I can't use Netbird until this is fixed!

@Ghx0sty commented on GitHub (Aug 23, 2025): I was wondering why a rewritten domain on Android wasn't working for me, from my Netbird-assigned recusive DNS server. Turns out the DNS was leaking badly, and that was affecting name resolutions. I can't use Netbird until this is fixed!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1678