Server Autoconfig

Tom H tomh0665 at gmail.com
Fri Jul 10 14:33:10 UTC 2020


On Tue, Jul 7, 2020 at 7:17 PM Karl Auer <kauer at biplane.com.au> wrote:
> On Tue, 2020-07-07 at 18:43 +0200, Tom H wrote:
>>
>> But i would prefer to get the hostname from dhcp, how can i do that
>>
>> What happens if you don't set "hostname:"? Or set "hostname: ''"?
>
> DHCP will not give you a hostname. It *may* be able to register a
> hostname that you send to it.

ACK. dhclient (and I assume dhcpcd and udhcpc too) has a config
directive to send it. In dhclient's case, it's "send-hostname", IIRC.




More information about the ubuntu-users mailing list