Revert "changed to use user_data for setting public dns name as its hostname."
Because user_data isn't executed in 'reload'.

This reverts commit 80fd3cc5f04bef61737f73d43e09b39a15150cfe.