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 16/07/2018 04:17, John D. Baker wrote:
On Sun, 15 Jul 2018, John D. Baker wrote:

On Mon, 16 Jul 2018, Roy Marples wrote:

Sadly, all my machines are x86 based. I have an ERLITE mips router where I
also run dhcpcd, and it doesn't stamp on routes there either, so I'm pretty
sure this isn't an arch issue ... but I could be wrong.

The only route that was an issue was the local route to the NFS server.
Somehow a netbooted x86 system can complete the configuration, but
non-x86 dies as soon as 'dhcpcd' (or the earlier 'dhclient') touches
the interface.  Interface is downed, root file system is gone, can't
bring interface back up, game over.

I've got a fresh build of -current just installed for the netbooted
Lemote YeeLoong.  Need to give it a whirl with "dhcp" in the
"ifconfig.rtk0" file and see if the situation has changed.

Well, what do you know!  The YeeLoong successfully used 'dhcpcd' upon
netbooting.  And with "env force_hostname=YES", it gets an FQDN instead
of its short name (only).

And a SPARCstation 5 netbooting -8 has just done the same.  Looks like
a winner.

Great news!

After thinking about it some more, I think the best solution for the FQDN is to either fix the DHCP server to send the domain in the hostname field OR stop the kernel assigning a hostname OR leave things as they are.

I don't feel comfortable changing dhcpcd here because it now has the potential to flip-flop the hostname in a badly configured environment AND override the users default choice of setting a short hostname in rc.conf.

"env force_hostname=YES" has it's own pitfall of flip-flopping in the same way, but that's your adminsitrative decision based on your network setup.

BTW, sending the FQDN in the hostname option is RFC compliant but I understand your frustrations because there is no easy way to do that in your DHCP server.

Anyone have any preference on a course of action here?

Roy


Home | Main Index | Thread Index | Old Index