Netbird up with --hostname flag doesn't set the hostname #425

Closed
opened 2025-11-20 05:11:11 -05:00 by saavagebueno · 8 comments
Owner

Originally created by @clarkmcc on GitHub (Aug 23, 2023).

Describe the problem
Unable to set the hostname when starting the netbird agent

To Reproduce
Steps to reproduce the behavior:

sudo netbird up --management-url="..." --setup-key=... --hostname=foobar

Additional context
As noted in Slack, the workaround is

sudo netbird login --management-url="..." --hostname my-peer --log-file console --setup-key=...
sudo netbird up
Originally created by @clarkmcc on GitHub (Aug 23, 2023). **Describe the problem** Unable to set the hostname when starting the netbird agent **To Reproduce** Steps to reproduce the behavior: ``` sudo netbird up --management-url="..." --setup-key=... --hostname=foobar ``` **Additional context** As noted [in Slack](https://netbirdio.slack.com/archives/C028VPB34NB/p1692808751596709), the workaround is 1. ``` sudo netbird login --management-url="..." --hostname my-peer --log-file console --setup-key=... ``` 2. ``` sudo netbird up ```
saavagebueno added the waiting-feedback label 2025-11-20 05:11:11 -05:00
Author
Owner

@Horus-K commented on GitHub (Sep 13, 2023):

I have the same problem!!! netbird 0.23.1

@Horus-K commented on GitHub (Sep 13, 2023): I have the same problem!!! netbird 0.23.1
Author
Owner

@diegocn commented on GitHub (Nov 28, 2023):

Found the same issue on 0.24.3.

@diegocn commented on GitHub (Nov 28, 2023): Found the same issue on 0.24.3.
Author
Owner

@urssich commented on GitHub (Sep 24, 2024):

This feature is still missing on 0.29.4. Also this command flag is not listed on https://docs.netbird.io/how-to/cli . Any plans to (re)add it?

@urssich commented on GitHub (Sep 24, 2024): This feature is still missing on 0.29.4. Also this command flag is not listed on https://docs.netbird.io/how-to/cli . Any plans to (re)add it?
Author
Owner

@maslyankov commented on GitHub (Nov 24, 2024):

This now seems to work:

netbird up --setup-key {{ netbird_setup_key }} --management-url {{ netbird_url }} --hostname {{ hostname }}

@maslyankov commented on GitHub (Nov 24, 2024): This now seems to work: netbird up --setup-key {{ netbird_setup_key }} --management-url {{ netbird_url }} --hostname {{ hostname }}
Author
Owner

@nazarewk commented on GitHub (Apr 28, 2025):

Hello @clarkmcc,

We're currently reviewing our open issues and would like to verify if this problem still exists in the latest NetBird version.

Could you please confirm if the issue is still there?

We may close this issue temporarily if we don't hear back from you within 2 weeks, but feel free to reopen it with updated information.

Thanks for your contribution to improving the project!

@nazarewk commented on GitHub (Apr 28, 2025): Hello @clarkmcc, We're currently reviewing our open issues and would like to verify if this problem still exists in the [latest NetBird version](https://github.com/netbirdio/netbird/releases). Could you please confirm if the issue is still there? We may close this issue temporarily if we don't hear back from you within **2 weeks**, but feel free to reopen it with updated information. Thanks for your contribution to improving the project!
Author
Owner

@mlsmaycon commented on GitHub (Jun 1, 2025):

closing issue due to no recent feedback. Feel free to open a new one if the issue persist or reopen if this was a feature request.

@mlsmaycon commented on GitHub (Jun 1, 2025): closing issue due to no recent feedback. Feel free to open a new one if the issue persist or reopen if this was a feature request.
Author
Owner

@diegocn commented on GitHub (Jun 22, 2025):

I can confirm the parameter hostname is working on the version 0.48.0.
Tested within a Kubernetes Pod.

@diegocn commented on GitHub (Jun 22, 2025): I can confirm the parameter `hostname` is working on the version 0.48.0. Tested within a Kubernetes Pod.
Author
Owner

@mlsmaycon commented on GitHub (Jun 22, 2025):

That should set the hostname only on peer registration.

So for existing peers the flag has no effect

@mlsmaycon commented on GitHub (Jun 22, 2025): That should set the hostname only on peer registration. So for existing peers the flag has no effect
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#425