derive hostname