When setting hostname, also configure hosts file