Change hostname function to get fqdn