[PR #962] [MERGED] Prevent sending nameserver configuration when peer is set as NS #14619

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/962
Author: @mlsmaycon
Created: 6/17/2023
Status: Merged
Merged: 6/28/2023
Merged by: @mlsmaycon

Base: mainHead: fix/prevent-sending-nsgroup-when-peer-is-ns


📝 Commits (4)

  • 59846fc Prevent sending nameserver configuration when peer is set as NS
  • 668deb1 Merge branch 'main' into fix/prevent-sending-nsgroup-when-peer-is-ns
  • 222f389 Add DNS filter tests
  • e21305c Merge branch 'main' into fix/prevent-sending-nsgroup-when-peer-is-ns

📊 Changes

2 files changed (+42 additions, -6 deletions)

View changed files

📝 management/server/dns.go (+18 -4)
📝 management/server/dns_test.go (+24 -2)

📄 Description

Describe your changes

Filter nameserver configurations for ones where the peer that would receive the update is also the nameserver of a configuration.

In that case we skip the NS Group.

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/962 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 6/17/2023 **Status:** ✅ Merged **Merged:** 6/28/2023 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `fix/prevent-sending-nsgroup-when-peer-is-ns` --- ### 📝 Commits (4) - [`59846fc`](https://github.com/netbirdio/netbird/commit/59846fc669f636582d4ce7d9838a6fe729e6eb17) Prevent sending nameserver configuration when peer is set as NS - [`668deb1`](https://github.com/netbirdio/netbird/commit/668deb1b54398553bcf894c5e2753d175bd23925) Merge branch 'main' into fix/prevent-sending-nsgroup-when-peer-is-ns - [`222f389`](https://github.com/netbirdio/netbird/commit/222f38989992f4fa2cf698203b9d544a3b51d74e) Add DNS filter tests - [`e21305c`](https://github.com/netbirdio/netbird/commit/e21305ca9cf7f2f01a2cf9873206ae6a80aaa675) Merge branch 'main' into fix/prevent-sending-nsgroup-when-peer-is-ns ### 📊 Changes **2 files changed** (+42 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `management/server/dns.go` (+18 -4) 📝 `management/server/dns_test.go` (+24 -2) </details> ### 📄 Description ## Describe your changes Filter nameserver configurations for ones where the peer that would receive the update is also the nameserver of a configuration. In that case we skip the NS Group. ## 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:00 -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#14619