[PR #1315] Use email address for iphone name generation #3074

Open
opened 2025-11-20 08:04:52 -05:00 by saavagebueno · 0 comments
Owner

Original Pull Request: https://github.com/netbirdio/netbird/pull/1315

State: closed
Merged: Yes


Describe your changes

Starting from iOS 16, it is not possible, to get the hostname from the device and only returns "iPhone". Therefore all devices will have the same name and the dns will be counted upwards (e.g. iphone-3.netbird.cloud). This PR adds a lookup on peer registration to get the email address of a user registering that device and adds it to the device name to allow easier differentiation. If the lookup fails or the device was added via setup key it will fall back to the default "iPhone" name.

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
**Original Pull Request:** https://github.com/netbirdio/netbird/pull/1315 **State:** closed **Merged:** Yes --- ## Describe your changes Starting from iOS 16, it is not possible, to get the hostname from the device and only returns "iPhone". Therefore all devices will have the same name and the dns will be counted upwards (e.g. iphone-3.netbird.cloud). This PR adds a lookup on peer registration to get the email address of a user registering that device and adds it to the device name to allow easier differentiation. If the lookup fails or the device was added via setup key it will fall back to the default "iPhone" name. ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary
saavagebueno added the pull-request label 2025-11-20 08:04:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#3074