[PR #622] [MERGED] Properly parse dns resolver address #12804

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/622
Author: @mlsmaycon
Created: 12/12/2022
Status: Merged
Merged: 12/13/2022
Merged by: @mlsmaycon

Base: mainHead: properly-parse-dns-address


📝 Commits (4)

  • aae22db Properly parse dns resolver address
  • f54f95c run tests with real interfaces
  • 76e6a5f enable fake listen
  • d44ce4d close the wg interface

📊 Changes

3 files changed (+53 additions, -11 deletions)

View changed files

📝 client/internal/dns/network_manager_linux.go (+4 -1)
📝 client/internal/dns/server_test.go (+42 -7)
📝 client/internal/dns/systemd_linux.go (+7 -3)

📄 Description

Prevent panic when the address is empty. Common with older managers, where the resolver is disabled by default as we receive an empty DNS config

Describe your changes

Checklist

  • Is it a bug fix

🔄 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/622 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 12/12/2022 **Status:** ✅ Merged **Merged:** 12/13/2022 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `properly-parse-dns-address` --- ### 📝 Commits (4) - [`aae22db`](https://github.com/netbirdio/netbird/commit/aae22db46bb330551603573c72ae9771a9a8f6bd) Properly parse dns resolver address - [`f54f95c`](https://github.com/netbirdio/netbird/commit/f54f95cab50053685fa2b2aa03d0e58ae388150c) run tests with real interfaces - [`76e6a5f`](https://github.com/netbirdio/netbird/commit/76e6a5f3c3da2baa9cefafe418c8dc1252e9517a) enable fake listen - [`d44ce4d`](https://github.com/netbirdio/netbird/commit/d44ce4d3920b0f0c25589d5383118c75408bdb44) close the wg interface ### 📊 Changes **3 files changed** (+53 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/dns/network_manager_linux.go` (+4 -1) 📝 `client/internal/dns/server_test.go` (+42 -7) 📝 `client/internal/dns/systemd_linux.go` (+7 -3) </details> ### 📄 Description Prevent panic when the address is empty. Common with older managers, where the resolver is disabled by default as we receive an empty DNS config ## Describe your changes ## Issue ticket number and link ### Checklist - [x] Is it a bug fix --- <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:06: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#12804