ke 11.12.2024 klo 15.31 Martin-Éric Racine (martin-eric.rac...@iki.fi)
kirjoitti:
>
> ke 11.12.2024 klo 15.21 Chris Hofstaedtler (z...@debian.org) kirjoitti:
> >
> > On Mon, Dec 09, 2024 at 06:06:32PM +0100, Daniel Gröber wrote:
> > > dhcpcd-base does not send the system's hostname by default as
> > > isc-dhcp-client used to due to /etc/dhcpcd.conf having the `hostname`
> > > option commented out.
> > >
> > > This will cause outages for users relying on DDNS when upgrading to
> > > trixie. Please let's change the default before releasing this. ifupdown's
> > > reputation is already hanging on by a thread as it is.
> >
> > Shouldn't preserving the previous meaning of (default) config
> > settings in /etc/network/interfaces be a concern of ifupdown, and
> > not of the DHCP client implementation?
> >
> > If so, then ifupdown could/should change how it configured dhcpcd?
>
> Correct. ifupdown could change its commandline recipe to call dhcpcd
> with (and generally use long options):
>
> --hostname hostname
>
> This option does what Daniel wants. If the release team feels that
> drop-in compatibility with previous dhclient is an absolute must, it
> could be accomplished this way without altering upstream stock
> dhcpcd.conf defaults.

Actually, looking at ifupdown sources, I notice that the following
command line is currently used:

dhcpcd [[-h %hostname%]] [[-i %vendor%]] [[-I %client%]]  [[-l
%leasetime%]] %iface%

With one small modification, this could do what Daniel wants. As per
the manual page:

"Sends the hostname name to the DHCP server so it can be registered in
DNS.  If name is an empty string then the current system hostname is
sent."

Basically, the above could be modified to send the current hostname if
no "hostname" option is specified for that interface via
/etc/network/interfaces, which would be consistent with what dhclient
is doing with its custom Debian configuration file (send host-name =
gethostname();).

Martin-Éric

Reply via email to