update hostname code