all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* send-hostname/DHCP Option 12 for lab environment?
@ 2024-10-09 21:59 Thom R Harmon
  2024-10-09 23:38 ` Felix Lechner via
  0 siblings, 1 reply; 3+ messages in thread
From: Thom R Harmon @ 2024-10-09 21:59 UTC (permalink / raw)
  To: help-guix

Hello, folks.

I have a lab environment where the DHCP server allows DHCP clients to 
register a name and then coordinates that name with the environment's 
DNS server to allow local clients to perform A record lookup. For the 
life of me I cannot configure how to tell Guix System DHCP client nodes 
to use send-hostname/DHCP Option 12. Anybody have an example?

thx




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: send-hostname/DHCP Option 12 for lab environment?
  2024-10-09 21:59 send-hostname/DHCP Option 12 for lab environment? Thom R Harmon
@ 2024-10-09 23:38 ` Felix Lechner via
  2024-10-10 20:21   ` Thom Harmon
  0 siblings, 1 reply; 3+ messages in thread
From: Felix Lechner via @ 2024-10-09 23:38 UTC (permalink / raw)
  To: Thom R Harmon; +Cc: help-guix

Hi Thom,

On Wed, Oct 09 2024, Thom R Harmon wrote:

> I cannot configure how to tell Guix System DHCP client nodes to use
> send-hostname/DHCP Option 12.

Did you already try the 'host-name' option from the example in the
manual page for dhclient? [1]

I never tried it but you can probably pass a file-like object [2] as a
'config-file' field [3] to the dhcp-client-service-type.

The '-H' option to dhclient looks like DHCP option twelve. [4]

Kind regards
Felix

[1] https://linux.die.net/man/5/dhclient.conf
[2] like this, https://codeberg.org/lechner/system-config/src/commit/a61e3731399bcd0f26a85688cd7ee37107b3266c/host/wallace-server/operating-system.scm#L473
[3] https://guix.gnu.org/manual/devel/en/html_node/Networking-Setup.html#index-dhcp_002dclient_002dconfiguration
[4] https://github.com/isc-projects/dhcp/blob/572032cb0e514606559de3784e3f7ca8e1539d17/includes/dhcp.h#L101


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: send-hostname/DHCP Option 12 for lab environment?
  2024-10-09 23:38 ` Felix Lechner via
@ 2024-10-10 20:21   ` Thom Harmon
  0 siblings, 0 replies; 3+ messages in thread
From: Thom Harmon @ 2024-10-10 20:21 UTC (permalink / raw)
  To: Felix Lechner; +Cc: help-guix


Thank you, Felix. 

I will give that a try. My question came about less from unfamiliarity
with ISC2 tools than from unfamiliarity with the Guix APIs and idioms.
I was expecting perhaps some util function or param I could set as
opposed to crafting the config syntax directly. 

Getting a feel for the idioms.

Thanks again.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-10-10 20:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-09 21:59 send-hostname/DHCP Option 12 for lab environment? Thom R Harmon
2024-10-09 23:38 ` Felix Lechner via
2024-10-10 20:21   ` Thom Harmon

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.