Update hostname method to get full hostname