[PR #3620] [MERGED] [client] Enhance DNS forwarder to track resolved IPs with resource IDs #23208

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3620
Author: @hakansa
Created: 4/4/2025
Status: Merged
Merged: 4/7/2025
Merged by: @hakansa

Base: mainHead: feat/nf-dns-routed-resid


📝 Commits (4)

  • 92b734b Enhance DNS forwarder to track resolved IPs with resource IDs
  • e33f82a Implement removal of resolved IP lookup entries in DNS forwarder
  • afd3205 Refactor routeIDLookup to use most specific route for lookup
  • a0a0007 Refactor DNS forwarder to handle domain suffixes and improve resource ID extraction

📊 Changes

6 files changed (+181 additions, -67 deletions)

View changed files

📝 client/internal/dnsfwd/forwarder.go (+40 -9)
📝 client/internal/dnsfwd/manager.go (+11 -8)
📝 client/internal/engine.go (+16 -8)
📝 client/internal/netflow/logger/logger.go (+10 -10)
📝 client/internal/peer/route.go (+82 -32)
📝 client/internal/peer/status.go (+22 -0)

📄 Description

Describe your changes

[client] Enhance DNS forwarder to track resolved IPs with resource IDs

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/3620 **Author:** [@hakansa](https://github.com/hakansa) **Created:** 4/4/2025 **Status:** ✅ Merged **Merged:** 4/7/2025 **Merged by:** [@hakansa](https://github.com/hakansa) **Base:** `main` ← **Head:** `feat/nf-dns-routed-resid` --- ### 📝 Commits (4) - [`92b734b`](https://github.com/netbirdio/netbird/commit/92b734b3d66f6053554d72fc4171df1dff34c819) Enhance DNS forwarder to track resolved IPs with resource IDs - [`e33f82a`](https://github.com/netbirdio/netbird/commit/e33f82a7424fc4fcc4400aa47be3357cc9bcd549) Implement removal of resolved IP lookup entries in DNS forwarder - [`afd3205`](https://github.com/netbirdio/netbird/commit/afd32054541ad4a57e1e1b446b5eb85f0183c3f9) Refactor routeIDLookup to use most specific route for lookup - [`a0a0007`](https://github.com/netbirdio/netbird/commit/a0a0007c24357aab2b7272ac7844930618d38ef0) Refactor DNS forwarder to handle domain suffixes and improve resource ID extraction ### 📊 Changes **6 files changed** (+181 additions, -67 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/dnsfwd/forwarder.go` (+40 -9) 📝 `client/internal/dnsfwd/manager.go` (+11 -8) 📝 `client/internal/engine.go` (+16 -8) 📝 `client/internal/netflow/logger/logger.go` (+10 -10) 📝 `client/internal/peer/route.go` (+82 -32) 📝 `client/internal/peer/status.go` (+22 -0) </details> ### 📄 Description ## Describe your changes [client] Enhance DNS forwarder to track resolved IPs with resource IDs ## Issue ticket number and link ### 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 --- <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 06:06:55 -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#23208