If on a DHCP network, might also be interesting to query DNS for the provided default domain to see if there is an additional list of reserved names (conflicts here may not be as directly user-visible, but could easily cause confusion if present).
If on a DHCP network, might also be interesting to query DNS for the provided default domain to see if there is an additional list of reserved names (conflicts here may not be as directly user-visible, but could easily cause confusion if present).