[PR #3052] [MERGED] Improve dns forwarder errors and improve domain anonymization #21334

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3052
Author: @lixmal
Created: 12/14/2024
Status: Merged
Merged: 12/17/2024
Merged by: @lixmal

Base: feature/new-networks-conceptHead: fwder-errors-and-anon


📝 Commits (10+)

  • fd2a0e0 Improve dns forwarder errors and improve domain anonymization
  • 91c214f Remove helper
  • 6feb3b8 Log more info
  • efd041b Merge branch 'feature/new-networks-concept' into fwder-errors-and-anon
  • 0cd79cc Use original domain for dns states
  • b0265d7 Don't match subdomains for non-wildcard dns routes
  • 4916780 Fix iOS
  • adff8c8 Add string representation for local resolver
  • 8f63d34 Return correct handler for dynamic
  • 7eac24a Add dns server dns route + upstream handler test

📊 Changes

16 files changed (+429 additions, -161 deletions)

View changed files

📝 client/anonymize/anonymize.go (+7 -8)
📝 client/anonymize/anonymize_test.go (+52 -4)
📝 client/cmd/networks.go (+7 -9)
📝 client/internal/dns/handler_chain.go (+55 -25)
📝 client/internal/dns/handler_chain_test.go (+87 -66)
📝 client/internal/dns/local.go (+13 -1)
📝 client/internal/dns/server_test.go (+85 -0)
📝 client/internal/dns/upstream.go (+5 -1)
📝 client/internal/dnsfwd/forwarder.go (+30 -7)
📝 client/internal/peer/status.go (+22 -6)
📝 client/internal/routemanager/client.go (+1 -1)
📝 client/internal/routemanager/dnsinterceptor/handler.go (+39 -17)
📝 client/internal/routemanager/dynamic/route.go (+1 -1)
📝 client/ios/NetBirdSDK/client.go (+4 -3)
📝 client/server/network.go (+19 -8)
📝 client/ui/network.go (+2 -4)

📄 Description

Describe your changes

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/3052 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 12/14/2024 **Status:** ✅ Merged **Merged:** 12/17/2024 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `feature/new-networks-concept` ← **Head:** `fwder-errors-and-anon` --- ### 📝 Commits (10+) - [`fd2a0e0`](https://github.com/netbirdio/netbird/commit/fd2a0e0ecfb72da5a9f6db4913049264207108d2) Improve dns forwarder errors and improve domain anonymization - [`91c214f`](https://github.com/netbirdio/netbird/commit/91c214f8c3e5a4cdf33c073399f48ad789fa6479) Remove helper - [`6feb3b8`](https://github.com/netbirdio/netbird/commit/6feb3b8a89848d4a8763898e47fe5cb761875c74) Log more info - [`efd041b`](https://github.com/netbirdio/netbird/commit/efd041be11167e1b49962b90e03e6421e1098e99) Merge branch 'feature/new-networks-concept' into fwder-errors-and-anon - [`0cd79cc`](https://github.com/netbirdio/netbird/commit/0cd79cce286e188061e17328c87ac88994120464) Use original domain for dns states - [`b0265d7`](https://github.com/netbirdio/netbird/commit/b0265d7fc146b0873d182b191251bfe61e337cae) Don't match subdomains for non-wildcard dns routes - [`4916780`](https://github.com/netbirdio/netbird/commit/49167802fb41bd340551dcbe5a217f06187be965) Fix iOS - [`adff8c8`](https://github.com/netbirdio/netbird/commit/adff8c8189b054151e9f114ab299ff0f6eee9308) Add string representation for local resolver - [`8f63d34`](https://github.com/netbirdio/netbird/commit/8f63d34300eeabc2f3e465c14e8e606523f6ee6a) Return correct handler for dynamic - [`7eac24a`](https://github.com/netbirdio/netbird/commit/7eac24a5d70013451900fbcac23ba52cdcc4c734) Add dns server dns route + upstream handler test ### 📊 Changes **16 files changed** (+429 additions, -161 deletions) <details> <summary>View changed files</summary> 📝 `client/anonymize/anonymize.go` (+7 -8) 📝 `client/anonymize/anonymize_test.go` (+52 -4) 📝 `client/cmd/networks.go` (+7 -9) 📝 `client/internal/dns/handler_chain.go` (+55 -25) 📝 `client/internal/dns/handler_chain_test.go` (+87 -66) 📝 `client/internal/dns/local.go` (+13 -1) 📝 `client/internal/dns/server_test.go` (+85 -0) 📝 `client/internal/dns/upstream.go` (+5 -1) 📝 `client/internal/dnsfwd/forwarder.go` (+30 -7) 📝 `client/internal/peer/status.go` (+22 -6) 📝 `client/internal/routemanager/client.go` (+1 -1) 📝 `client/internal/routemanager/dnsinterceptor/handler.go` (+39 -17) 📝 `client/internal/routemanager/dynamic/route.go` (+1 -1) 📝 `client/ios/NetBirdSDK/client.go` (+4 -3) 📝 `client/server/network.go` (+19 -8) 📝 `client/ui/network.go` (+2 -4) </details> ### 📄 Description ## Describe your changes ## 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 05:08:22 -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#21334