public @NotNull HostAndPort getHost() throws UnknownHostException {
    if (host == null && hostname == null) {
      throw new UnknownHostException("locator ID has no hostname or resolved inet address");
    }
    return new HostAndPort(null == host ? hostname : host.getHostName(), port);
  }
Returns the resolved InetSocketAddress of the locator We cache the InetAddress if hostname is
ipString Otherwise we create InetAddress each time.
geode-core/src/main/java/org/apache/geode/internal/admin/remote/DistributionLocatorId.java