[PR #967] Feature/permanent dns #13196

Closed
opened 2026-08-05 02:07:43 -04:00 by saavagebueno · 0 comments
Owner

Original Pull Request: https://github.com/netbirdio/netbird/pull/967

State: closed
Merged: Yes


Describe your changes

Because on Android system hard to update DNS settings the system will set our DNS service as permanent DNS server on mobile system.
This PR modify the original logic. Now the DNS service can functional in two different way

  1. the DNS service will start listen when get update from mgm server
  2. the DNS service start listening immediately when it instantiated

In the second case the upstream DNS server will be the DNS servers from the host machine.
The relevant Android code: https://github.com/netbirdio/react-native-app/pull/24

Android

The Android code track the network changes and update the DNS configuration when it has been changed on the host machine. For example when switch from 4G to WIFI.

Test

Because this change refactor the whole logic necessary to test all combination of the supported systems

  • Mac, Win, Linux, Android
  • On Linux with WG bind interface and with kernel module support
  • On Linux with systemd, resolve.conf

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary
**Original Pull Request:** https://github.com/netbirdio/netbird/pull/967 **State:** closed **Merged:** Yes --- ## Describe your changes Because on Android system hard to update DNS settings the system will set our DNS service as permanent DNS server on mobile system. This PR modify the original logic. Now the DNS service can functional in two different way 1. the DNS service will start listen when get update from mgm server 2. the DNS service start listening immediately when it instantiated In the second case the upstream DNS server will be the DNS servers from the host machine. The relevant Android code: https://github.com/netbirdio/react-native-app/pull/24 ### Android The Android code track the network changes and update the DNS configuration when it has been changed on the host machine. For example when switch from 4G to WIFI. ### Test Because this change refactor the whole logic necessary to test all combination of the supported systems - Mac, Win, Linux, Android - On Linux with WG bind interface and with kernel module support - On Linux with systemd, resolve.conf ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary
saavagebueno added the pull-request label 2026-08-05 02:07:43 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#13196