[PR #861] [MERGED] Prevent setting primary resolver if using custom DNS port #13085

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/861
Author: @mlsmaycon
Created: 5/15/2023
Status: Merged
Merged: 5/16/2023
Merged by: @mlsmaycon

Base: mainHead: fix/avoid-configure-primary-dns-on-custom-port


📝 Commits (1)

  • 230054e Prevent setting primary resolver if using custom DNS port

📊 Changes

8 files changed (+59 additions, -12 deletions)

View changed files

📝 client/internal/dns/file_linux.go (+4 -0)
📝 client/internal/dns/host.go (+14 -4)
📝 client/internal/dns/host_darwin.go (+6 -1)
📝 client/internal/dns/host_windows.go (+6 -1)
📝 client/internal/dns/network_manager_linux.go (+6 -1)
📝 client/internal/dns/resolvconf_linux.go (+6 -1)
📝 client/internal/dns/server_nonandroid.go (+10 -2)
📝 client/internal/dns/systemd_linux.go (+7 -2)

📄 Description

Describe your changes

Most host managers doesn't support using custom DNS ports. We are now disabling setting it up to avoid unwanted results

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/861 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 5/15/2023 **Status:** ✅ Merged **Merged:** 5/16/2023 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `fix/avoid-configure-primary-dns-on-custom-port` --- ### 📝 Commits (1) - [`230054e`](https://github.com/netbirdio/netbird/commit/230054e18defa2fc9a534bfde972b49ccc0e0976) Prevent setting primary resolver if using custom DNS port ### 📊 Changes **8 files changed** (+59 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/dns/file_linux.go` (+4 -0) 📝 `client/internal/dns/host.go` (+14 -4) 📝 `client/internal/dns/host_darwin.go` (+6 -1) 📝 `client/internal/dns/host_windows.go` (+6 -1) 📝 `client/internal/dns/network_manager_linux.go` (+6 -1) 📝 `client/internal/dns/resolvconf_linux.go` (+6 -1) 📝 `client/internal/dns/server_nonandroid.go` (+10 -2) 📝 `client/internal/dns/systemd_linux.go` (+7 -2) </details> ### 📄 Description ## Describe your changes Most host managers doesn't support using custom DNS ports. We are now disabling setting it up to avoid unwanted results ## 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 02:07:25 -04:00
saavagebueno changed title from [PR #861] Prevent setting primary resolver if using custom DNS port to [PR #861] [MERGED] Prevent setting primary resolver if using custom DNS port 2026-08-05 03:07:57 -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#13085