properly set hostname, including a dash