NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: FQDNs for netbooted hosts via DHCP?



On Sat, 14 Jul 2018, Robert Elz wrote:

> 	env force_hostname=YES

Yes, that's the ticket.

I also needed to set "use-host-decl-names true;" in "dhcpcd.conf".  Some
netbooted hosts would get their hostname without this, but most would
not, ending up with "localhost".  The same hosts always got their hostname
when booting from local disk even with "use-host-decl-names false;"
(assumed to be the default case--dhcpd.conf(5) is not clear about this).

Otherwise 'option host-name "foo";' would be needed to explicitly set
the hostname for a netbooted client that did not receive it without the
option (or "use-host-decl-names true;").

> (or true) in /etc/dhcpcd.conf should make things work as desired.
> It would not hurt to also include
> 
> 	env hostname_fqdn=YES
> 
> to force setting the FQDN, though that one should be the default if
> nothing else overrides it.

Not needed.

Thanks for the tips.

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645



Home | Main Index | Thread Index | Old Index