Make sure we assign a hostname first before doing anything else