It is now possible to define the hostname from the admin page. 

This should definitely end the problem that the hostname couldn't be detected under certain conditions.