[GH-ISSUE #5043] Attempt standard DNS name before appending IP octets #10592

Open
opened 2026-08-05 01:26:33 -04:00 by saavagebueno · 2 comments
Owner

Originally created by @TechSupportJosh on GitHub (Jan 6, 2026).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/5043

Is your feature request related to a problem? Please describe.
I have NetBird installed on VMs which are frequently reflashed to specific hostnames (e.g. jumpbox-alpha, jumpbox-beta). I've configured the setup key as ephermal, so that once the VM is re-flashed, the old peer is removed. However, as the host is configured as ephermal, NetBird does not attempt to obtain the original DNS hostname, instead automatically defaulting to [hostname]-[ip octet]-[ip octet]:

9bd578d4ea/management/server/peer.go (L552-L563)

Describe the solution you'd like
I'd like NetBird to either attempt to just use the existing hostname (and failing back to including the IP octets), or provide a configuration option to force DNS hostnames containing IP octets / try the hostname and then fallback.

Describe alternatives you've considered
I could set the VM to non-ephermal, but that will end up creating excessive amounts of peers which we'd then need to build automation around to clean up every once in a while.

Additional context
N/A

Originally created by @TechSupportJosh on GitHub (Jan 6, 2026). Original GitHub issue: https://github.com/netbirdio/netbird/issues/5043 **Is your feature request related to a problem? Please describe.** I have NetBird installed on VMs which are frequently reflashed to specific hostnames (e.g. jumpbox-alpha, jumpbox-beta). I've configured the setup key as ephermal, so that once the VM is re-flashed, the old peer is removed. However, as the host is configured as ephermal, NetBird does not attempt to obtain the original DNS hostname, instead automatically defaulting to [hostname]-[ip octet]-[ip octet]: https://github.com/netbirdio/netbird/blob/9bd578d4ea98e93ee409c7f093934898d42208d7/management/server/peer.go#L552-L563 **Describe the solution you'd like** I'd like NetBird to either attempt to just use the existing hostname (and failing back to including the IP octets), or provide a configuration option to force DNS hostnames containing IP octets / try the hostname and then fallback. **Describe alternatives you've considered** I could set the VM to non-ephermal, but that will end up creating excessive amounts of peers which we'd then need to build automation around to clean up every once in a while. **Additional context** N/A
saavagebueno added the feature-request label 2026-08-05 01:26:33 -04:00
Author
Owner

@Kimamisa commented on GitHub (Jan 10, 2026):

I'm interested in this feature too :)

<!-- gh-comment-id:3732383985 --> @Kimamisa commented on GitHub (Jan 10, 2026): I'm interested in this feature too :)
Author
Owner

@eaterm commented on GitHub (Apr 20, 2026):

Same, im also reinstalling servers regularly.

<!-- gh-comment-id:4278659222 --> @eaterm commented on GitHub (Apr 20, 2026): Same, im also reinstalling servers regularly.
Sign in to join this conversation.
No Label feature-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#10592