[PR #4267] [MERGED] [client] Eliminate upstream server strings in dns code #19900

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/4267
Author: @lixmal
Created: 8/1/2025
Status: Merged
Merged: 8/11/2025
Merged by: @lixmal

Base: mainHead: typed-dns-servers


📝 Commits (2)

  • 60c6e39 Eliminate upstream server strings in dns code
  • 37f34e1 Add separator back

📊 Changes

30 files changed (+161 additions, -308 deletions)

View changed files

📝 client/android/client.go (+4 -3)
📝 client/android/dns_list.go (+19 -8)
📝 client/android/dns_list_test.go (+13 -3)
📝 client/internal/connect.go (+2 -1)
📝 client/internal/dns/file_parser_unix.go (+7 -31)
📝 client/internal/dns/file_parser_unix_test.go (+6 -89)
📝 client/internal/dns/file_repair_unix.go (+1 -1)
📝 client/internal/dns/file_unix.go (+6 -19)
📝 client/internal/dns/host_darwin.go (+2 -2)
📝 client/internal/dns/host_unix.go (+3 -2)
📝 client/internal/dns/host_windows.go (+1 -1)
📝 client/internal/dns/hosts_dns_holder.go (+8 -29)
📝 client/internal/dns/mock_server.go (+1 -1)
📝 client/internal/dns/network_manager_unix.go (+1 -1)
📝 client/internal/dns/resolvconf_unix.go (+3 -3)
📝 client/internal/dns/server.go (+14 -29)
📝 client/internal/dns/server_test.go (+9 -59)
📝 client/internal/dns/service.go (+1 -1)
📝 client/internal/dns/service_listener.go (+3 -3)
📝 client/internal/dns/service_memory.go (+1 -1)

...and 10 more files

📄 Description

Describe your changes

Stack

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

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.


🔄 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/4267 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 8/1/2025 **Status:** ✅ Merged **Merged:** 8/11/2025 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `main` ← **Head:** `typed-dns-servers` --- ### 📝 Commits (2) - [`60c6e39`](https://github.com/netbirdio/netbird/commit/60c6e398d1437235bbbac99e278f498b84d533b8) Eliminate upstream server strings in dns code - [`37f34e1`](https://github.com/netbirdio/netbird/commit/37f34e179340384a1e92ea4ddd9feb79a230b901) Add separator back ### 📊 Changes **30 files changed** (+161 additions, -308 deletions) <details> <summary>View changed files</summary> 📝 `client/android/client.go` (+4 -3) 📝 `client/android/dns_list.go` (+19 -8) 📝 `client/android/dns_list_test.go` (+13 -3) 📝 `client/internal/connect.go` (+2 -1) 📝 `client/internal/dns/file_parser_unix.go` (+7 -31) 📝 `client/internal/dns/file_parser_unix_test.go` (+6 -89) 📝 `client/internal/dns/file_repair_unix.go` (+1 -1) 📝 `client/internal/dns/file_unix.go` (+6 -19) 📝 `client/internal/dns/host_darwin.go` (+2 -2) 📝 `client/internal/dns/host_unix.go` (+3 -2) 📝 `client/internal/dns/host_windows.go` (+1 -1) 📝 `client/internal/dns/hosts_dns_holder.go` (+8 -29) 📝 `client/internal/dns/mock_server.go` (+1 -1) 📝 `client/internal/dns/network_manager_unix.go` (+1 -1) 📝 `client/internal/dns/resolvconf_unix.go` (+3 -3) 📝 `client/internal/dns/server.go` (+14 -29) 📝 `client/internal/dns/server_test.go` (+9 -59) 📝 `client/internal/dns/service.go` (+1 -1) 📝 `client/internal/dns/service_listener.go` (+3 -3) 📝 `client/internal/dns/service_memory.go` (+1 -1) _...and 10 more files_ </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link ## Stack <!-- branch-stack --> ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [x] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary > By submitting this pull request, you confirm that you have read and agree to the terms of the [Contributor License Agreement](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT.md). --- <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 05:06:35 -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#19900