Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

networkd: optionally change static (and not just transient) hostname based on acquired DHCP lease data #17403

Open
elschman opened this issue Oct 20, 2020 · 1 comment
Labels
dhcp network RFE 🎁 Request for Enhancement, i.e. a feature request

Comments

@elschman
Copy link

The hostname via option12 should be able to be set static for the host. So that hostname and login screens /etc/hostname and /etc/hosts are adapted if the dhcp server send the hostname.

this was possible in the past with dhcpdclient and exit hooks.

@poettering
Copy link
Member

Hmm, yeah, it might make sense to add an option to optionally make DHCP hostname info persistent, if possible, but it definitely shouldn't be the default.

/etc/hosts should never be updated though, it has nothing to do with DHCP.

and "login screens" (you mean gdm and the lot?) display the kernel hostname, so for them this should not be necessary

@poettering poettering added dhcp network RFE 🎁 Request for Enhancement, i.e. a feature request labels Oct 20, 2020
@poettering poettering changed the title hostname should be able to set via dhcp option 12 not only transient networkd: optionally change static (and not just transient) hostname based on acquired DHCP lease data Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dhcp network RFE 🎁 Request for Enhancement, i.e. a feature request
Development

Successfully merging a pull request may close this issue.

2 participants