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

network: send node hostname to DHCP server #4536

Closed
dimatha opened this issue Nov 12, 2021 · 4 comments · Fixed by #5897
Closed

network: send node hostname to DHCP server #4536

dimatha opened this issue Nov 12, 2021 · 4 comments · Fixed by #5897

Comments

@dimatha
Copy link

dimatha commented Nov 12, 2021

Feature Request

Ability to send node hostname to the DHCP server (option 12?)

Description

We are relying on our DHCP server to update DNS records for our DHCP clients and need the ability to provide Talos hostname to the DHCP server

@smira
Copy link
Member

smira commented Nov 15, 2021

Thanks, that makes perfect sense to me. Talos might not have hostname on the initial DHCP request, but it should be able to send it while renewing the lease.

@dimatha
Copy link
Author

dimatha commented Nov 15, 2021

Yeah, I got the point - the configuration might be applied after the network is up? That means that the system will not be registered with DNS until the least reaches 50%. I'll do some captures as I still don't see the hostnames registered with the DHCP server.

@smira
Copy link
Member

smira commented Nov 15, 2021

There are many ways to set the hostname (including getting it from the DHCP server), so Talos might learn the hostname after the initial DHCP or before that, but still when it knows the hostname, it could update the DHCP server.

@dimatha
Copy link
Author

dimatha commented Nov 15, 2021

That's actually related to siderolabs/cluster-api-bootstrap-provider-talos#96
We use CAPI/CAPV + CABPT/CACPPT.
The idea is to use the Machine name provided by CAPI and DHCP client to ship the right hostname to the DHCP server for DNS update (we do not control the DHCP server and it will be harder to preconfigure the reservations there, keeping in mind the whole automation that CAPI already does)
Currently the hostname defaults to 'talos-1.2.3.4'

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants