[PR #2378] [MERGED] Fix DNS resolution for routes on iOS #15052

Closed
opened 2026-08-05 03:06:52 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2378
Author: @pascal-fischer
Created: 8/2/2024
Status: Merged
Merged: 8/2/2024
Merged by: @pascal-fischer

Base: mainHead: fix/dns-route-resolution-for-private-dns


📝 Commits (7)

📊 Changes

8 files changed (+124 additions, -37 deletions)

View changed files

📝 client/internal/dns/server.go (+3 -3)
📝 client/internal/dns/server_test.go (+1 -1)
📝 client/internal/dns/service_memory.go (+10 -10)
📝 client/internal/dns/upstream_ios.go (+21 -17)
📝 client/internal/routemanager/client.go (+5 -3)
📝 client/internal/routemanager/dynamic/route.go (+16 -3)
client/internal/routemanager/dynamic/route_generic.go (+13 -0)
client/internal/routemanager/dynamic/route_ios.go (+55 -0)

📄 Description

Describe your changes

When adding DNS routes that are only resolved by a private nameserver the resolution was failing. This PR uses the custom dailer form the dns package also in dns routes.

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

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/2378 **Author:** [@pascal-fischer](https://github.com/pascal-fischer) **Created:** 8/2/2024 **Status:** ✅ Merged **Merged:** 8/2/2024 **Merged by:** [@pascal-fischer](https://github.com/pascal-fischer) **Base:** `main` ← **Head:** `fix/dns-route-resolution-for-private-dns` --- ### 📝 Commits (7) - [`92715b8`](https://github.com/netbirdio/netbird/commit/92715b8e507549958ee6bb3d08465e7927dbdcd5) add dialer to dns resolution for routes on iOS - [`904f787`](https://github.com/netbirdio/netbird/commit/904f78708cbab43fcd15a392ad24dfe0f8896740) optimise resolver addr - [`2b5a0b2`](https://github.com/netbirdio/netbird/commit/2b5a0b27f974ddde489a54892697e40981f8bc9c) fix logs - [`2fcecc5`](https://github.com/netbirdio/netbird/commit/2fcecc5bf5a6d3177ebf538393bba8165bfba70f) update local resolver timeout to 10 seconds - [`fc3e180`](https://github.com/netbirdio/netbird/commit/fc3e18032dac7474e5e7caaa7924a6d48d3bda53) rename var to fix linter - [`ba6a8fe`](https://github.com/netbirdio/netbird/commit/ba6a8fecfeefc7592978de33b36edffec37a816a) return ips - [`a22dc24`](https://github.com/netbirdio/netbird/commit/a22dc2449185922c5234bdbcc7bf63c338390582) add error on empty ip list ### 📊 Changes **8 files changed** (+124 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/dns/server.go` (+3 -3) 📝 `client/internal/dns/server_test.go` (+1 -1) 📝 `client/internal/dns/service_memory.go` (+10 -10) 📝 `client/internal/dns/upstream_ios.go` (+21 -17) 📝 `client/internal/routemanager/client.go` (+5 -3) 📝 `client/internal/routemanager/dynamic/route.go` (+16 -3) ➕ `client/internal/routemanager/dynamic/route_generic.go` (+13 -0) ➕ `client/internal/routemanager/dynamic/route_ios.go` (+55 -0) </details> ### 📄 Description ## Describe your changes When adding DNS routes that are only resolved by a private nameserver the resolution was failing. This PR uses the custom dailer form the dns package also in dns routes. ## Issue ticket number and link ### Checklist - [x] 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 03:06:52 -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#15052