[PR #3867] [MERGED] [client] Use punycode domains internally consequently #23921

Open
opened 2026-08-05 06:08:01 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3867
Author: @lixmal
Created: 5/23/2025
Status: Merged
Merged: 5/24/2025
Merged by: @lixmal

Base: add-ns-punnycode-supportHead: fix-client-code


📝 Commits (5)

  • f0a5039 Use punycode domains internally consequently
  • 8e78c64 Clarify comments
  • 993c19b Fix test builds
  • b057253 Fix linux test
  • 7ce0b55 Merge branch 'add-ns-punnycode-support' into fix-client-code

📊 Changes

27 files changed (+223 additions, -219 deletions)

View changed files

📝 client/iface/device/device_android.go (+3 -2)
📝 client/iface/device_android.go (+2 -1)
📝 client/iface/iface_create.go (+6 -2)
📝 client/iface/iface_create_android.go (+3 -1)
📝 client/iface/iface_create_darwin.go (+3 -1)
📝 client/internal/dns/file_unix.go (+1 -1)
📝 client/internal/dns/handler_chain.go (+19 -17)
📝 client/internal/dns/handler_chain_test.go (+40 -39)
📝 client/internal/dns/host.go (+10 -7)
📝 client/internal/dns/host_darwin.go (+2 -2)
📝 client/internal/dns/host_windows.go (+2 -2)
📝 client/internal/dns/mock_server.go (+2 -2)
📝 client/internal/dns/network_manager_unix.go (+2 -2)
📝 client/internal/dns/notifier.go (+5 -15)
📝 client/internal/dns/server.go (+27 -29)
📝 client/internal/dns/server_test.go (+64 -65)
📝 client/internal/dns/systemd_linux.go (+3 -3)
📝 client/internal/dns/upstream.go (+3 -2)
📝 client/internal/dns/upstream_android.go (+2 -1)
📝 client/internal/dns/upstream_general.go (+2 -1)

...and 7 more files

📄 Description

Describe your changes

This changes most of string tpying for domains to domain.Domain

Stack

  • add-ns-punnycode-support - ⚠️ No PR associated with branch

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

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.


🔄 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/3867 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 5/23/2025 **Status:** ✅ Merged **Merged:** 5/24/2025 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `add-ns-punnycode-support` ← **Head:** `fix-client-code` --- ### 📝 Commits (5) - [`f0a5039`](https://github.com/netbirdio/netbird/commit/f0a5039219cd2d6cc50cd81ae2e3ae6e1fd47845) Use punycode domains internally consequently - [`8e78c64`](https://github.com/netbirdio/netbird/commit/8e78c6450b9712a28c69c3cecb1a662ddbb1ec27) Clarify comments - [`993c19b`](https://github.com/netbirdio/netbird/commit/993c19b17159de388982d2b7f141f45cddd6f741) Fix test builds - [`b057253`](https://github.com/netbirdio/netbird/commit/b057253a149254efaf80aa2b49daef8a55128572) Fix linux test - [`7ce0b55`](https://github.com/netbirdio/netbird/commit/7ce0b551d0f4f2b11759e58eb6d065904d33eb84) Merge branch 'add-ns-punnycode-support' into fix-client-code ### 📊 Changes **27 files changed** (+223 additions, -219 deletions) <details> <summary>View changed files</summary> 📝 `client/iface/device/device_android.go` (+3 -2) 📝 `client/iface/device_android.go` (+2 -1) 📝 `client/iface/iface_create.go` (+6 -2) 📝 `client/iface/iface_create_android.go` (+3 -1) 📝 `client/iface/iface_create_darwin.go` (+3 -1) 📝 `client/internal/dns/file_unix.go` (+1 -1) 📝 `client/internal/dns/handler_chain.go` (+19 -17) 📝 `client/internal/dns/handler_chain_test.go` (+40 -39) 📝 `client/internal/dns/host.go` (+10 -7) 📝 `client/internal/dns/host_darwin.go` (+2 -2) 📝 `client/internal/dns/host_windows.go` (+2 -2) 📝 `client/internal/dns/mock_server.go` (+2 -2) 📝 `client/internal/dns/network_manager_unix.go` (+2 -2) 📝 `client/internal/dns/notifier.go` (+5 -15) 📝 `client/internal/dns/server.go` (+27 -29) 📝 `client/internal/dns/server_test.go` (+64 -65) 📝 `client/internal/dns/systemd_linux.go` (+3 -3) 📝 `client/internal/dns/upstream.go` (+3 -2) 📝 `client/internal/dns/upstream_android.go` (+2 -1) 📝 `client/internal/dns/upstream_general.go` (+2 -1) _...and 7 more files_ </details> ### 📄 Description ## Describe your changes This changes most of `string` tpying for domains to `domain.Domain` ## Issue ticket number and link ## Stack - `add-ns-punnycode-support` - :warning: No PR associated with branch <!-- branch-stack --> - \#3867 :point\_left: ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [x] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary > By submitting this pull request, you confirm that you have read and agree to the terms of the [Contributor License Agreement](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT.md). --- <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:08:01 -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#23921