[PR #1514] [MERGED] Update port, ip choice logic in DNS service #13849

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1514
Author: @pappz
Created: 1/31/2024
Status: Merged
Merged: 2/2/2024
Merged by: @mlsmaycon

Base: mainHead: fix/ebpf-listen-addr


📝 Commits (9)

📊 Changes

3 files changed (+102 additions, -49 deletions)

View changed files

📝 client/internal/dns/service_listener.go (+95 -47)
📝 client/internal/ebpf/ebpf/dns_fwd_linux.go (+1 -1)
📝 client/internal/ebpf/ebpf/src/readme.md (+6 -1)

📄 Description

Describe your changes

Ensure we use WG address instead of loopback addresses for eBPF.

  • First try to use 53 port
  • Try to use 5053 port on WG interface for eBPF
  • Try to use 5053 on WG interface or loopback interface

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/1514 **Author:** [@pappz](https://github.com/pappz) **Created:** 1/31/2024 **Status:** ✅ Merged **Merged:** 2/2/2024 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `fix/ebpf-listen-addr` --- ### 📝 Commits (9) - [`432e5c2`](https://github.com/netbirdio/netbird/commit/432e5c23de233b03b52ec0dc24da3ecd7303d78f) Update port, ip choice logic - [`13a5deb`](https://github.com/netbirdio/netbird/commit/13a5deb00f50650d4105c0b93643b54a0b6022a7) Pick random port for eBPF - [`7cb7ceb`](https://github.com/netbirdio/netbird/commit/7cb7cebfc653d96ed5ac26a941208cd053b2ffb4) fix - [`b0398eb`](https://github.com/netbirdio/netbird/commit/b0398ebe4a37339d4a40cb678dc70529e1443803) init port var - [`8346ec2`](https://github.com/netbirdio/netbird/commit/8346ec21b3f81d3206dc6ff3ffa0c3aec3f6ec87) init port var - [`a5a91f2`](https://github.com/netbirdio/netbird/commit/a5a91f2af65c2465d3fe5c62f86e652b30412648) skip unused check - [`49e4fad`](https://github.com/netbirdio/netbird/commit/49e4fada4393eea40a1682713c9eca6eebf5ab65) skip unused check - [`0ff153f`](https://github.com/netbirdio/netbird/commit/0ff153f40a339aeb4889bafe88c32c7e8edb7885) revert changes - [`fa8cd5d`](https://github.com/netbirdio/netbird/commit/fa8cd5dee6b7e3e3b3ae5e5d1ccb0c1618299bb1) no lint to the function line ### 📊 Changes **3 files changed** (+102 additions, -49 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/dns/service_listener.go` (+95 -47) 📝 `client/internal/ebpf/ebpf/dns_fwd_linux.go` (+1 -1) 📝 `client/internal/ebpf/ebpf/src/readme.md` (+6 -1) </details> ### 📄 Description ## Describe your changes Ensure we use WG address instead of loopback addresses for eBPF. - First try to use 53 port - Try to use 5053 port on WG interface for eBPF - Try to use 5053 on WG interface or loopback interface ## 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:09:06 -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#13849