[PR #1036] [MERGED] Keep confiured nameservers as fallback #13247

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1036
Author: @pascal-fischer
Created: 7/28/2023
Status: Merged
Merged: 8/1/2023
Merged by: @mlsmaycon

Base: mainHead: feature/dns-fallback


📝 Commits (3)

  • 05071f2 keep existing nameserver as fallback when adding netbird resolver
  • 6f44e21 fix resolvconf
  • cf577d9 fix imports

📊 Changes

4 files changed (+27 additions, -18 deletions)

View changed files

📝 client/internal/dns/file_linux.go (+8 -2)
📝 client/internal/dns/host_darwin.go (+13 -9)
📝 client/internal/dns/resolvconf_linux.go (+6 -1)
📝 client/internal/dns/systemd_linux.go (+0 -6)

📄 Description

Describe your changes

Sometimes if the client is stopped forcefully the old DNS configuration was not restored. This was casuing nameresolution to fail because the netbird resolver was down. At the same time the netbird resolver could not start because it could not connect to management due to failing name resolution.

In this PR the netbird resolver was chnaged to keep the previous configured nameserver as fallback in case the netbird resolver is not resopnding.

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/1036 **Author:** [@pascal-fischer](https://github.com/pascal-fischer) **Created:** 7/28/2023 **Status:** ✅ Merged **Merged:** 8/1/2023 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `feature/dns-fallback` --- ### 📝 Commits (3) - [`05071f2`](https://github.com/netbirdio/netbird/commit/05071f22331af29e11a1bd5997e143667db9c9e5) keep existing nameserver as fallback when adding netbird resolver - [`6f44e21`](https://github.com/netbirdio/netbird/commit/6f44e216142cc7844319336d5d4022014c0a1542) fix resolvconf - [`cf577d9`](https://github.com/netbirdio/netbird/commit/cf577d966d59b11364ce851b0b2525e52c00df45) fix imports ### 📊 Changes **4 files changed** (+27 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/dns/file_linux.go` (+8 -2) 📝 `client/internal/dns/host_darwin.go` (+13 -9) 📝 `client/internal/dns/resolvconf_linux.go` (+6 -1) 📝 `client/internal/dns/systemd_linux.go` (+0 -6) </details> ### 📄 Description ## Describe your changes Sometimes if the client is stopped forcefully the old DNS configuration was not restored. This was casuing nameresolution to fail because the netbird resolver was down. At the same time the netbird resolver could not start because it could not connect to management due to failing name resolution. In this PR the netbird resolver was chnaged to keep the previous configured nameserver as fallback in case the netbird resolver is not resopnding. ## 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:53 -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#13247