Switching to randomly generated hostnames
wad at laptop.org
Wed May 2 03:28:16 EDT 2012
On May 1, 2012, at 6:49 PM, John Gilmore wrote:
>> Currently, XO hostnames are set on first boot in the following format:
>> Where A, B and C are the last 3 bytes of the MAC address expressed in hex.
>> In Nicaragua we are seeing cases where XOs have no hostname set, both
>> on XO-1 and XO-1.5. On XO-1 this is presumably because libertas
>> usb8388 init was never 100% reliable, and on XO-1.5 its presumably
>> because the wireless card was DOA but was replaced after first boot.
> Why would we need to get it from the wireless card? Isn't the
> laptop's MAC address stored in the manufacturing data in motherboard
I second this recommendation. While the MAC address in the manufacturing
data may not be correct (if the WLAN card has been changed), it is guaranteed
to be as unique as the laptop serial number.
Using only the last three bytes of the MAC may not result in a unique name, however.
It was when we only used cards from one manufacturer, but that changed starting
My problem with the suggestions to randomly generate the host name are
that no-one has proposed a method for detecting and correcting the name collisions
that are sure to occur. (How is /dev/urandom seeded these days ?)
Personally, most of the laptops I use don't have manufacturing data, but that
can be corrected.
More information about the Devel