NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/55011 dhcpcd(8) sets "localhost" as hostname
The following reply was made to PR bin/55011; it has been noted by GNATS.
From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: roy%marples.name@localhost
Cc: gnats-bugs%NetBSD.org@localhost, tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: bin/55011 dhcpcd(8) sets "localhost" as hostname
Date: Wed, 1 Apr 2020 01:10:10 +0900
> Is this report about the manpage being slightly inaccurate - if an invalid
> hostname it will set a default hostname of localhost even if no hostname option
> in the dhcp message and the current hostname is "invalid" (ie blank, (null) or
> localhost)?
> OR is it about changing the default behaviour to not change hostname if blank or
> (null) to localhost?
Well I don't know what is "accurate" behavior.
There are two points:
- As noted in the PR, replacing /libexec/dhcpcd-hooks/30-hostname
with 29-lookup-hostname and 30-hostname from NetBSD 6.1.5 makes
dhcpcd(8) use "expected" hostname even in sysinst.
dhclient(8) in NetBSD 8.1 also uses an expected hostname.
(I'm not sure if it's provided from dhcpd or not)
- The default name of "localhost" is annoying for me because
it's also used by sysinst as default settings in /etc/hosts.
Blank is still better for me.
Is there any intentional changes (lookup removal?) from 6.1.5 one?
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index