Reads hostname from env variable.