@Override
  public String getHost() {
    final URI uriWithoutDiscoveryPort = toURIWithoutDiscoveryPort();
    String host = uriWithoutDiscoveryPort.getHost();
    if (host == null) {
      host = "";
      final String uriString = uriWithoutDiscoveryPort.toString();
      int indexOfAt = uriString.indexOf("@");
      if (indexOfAt > -1) {
        int lastIndexOfColon = uriString.lastIndexOf(":");
        if (lastIndexOfColon > indexOfAt) {
          host = uriString.substring(indexOfAt + 1, lastIndexOfColon);
        }
      }
    }
    return host;
  }
Get IP of the EnodeURL

<p>If "dns" and "dns-update" are enabled -&gt; DNS lookup every time to have the IP up to date
and not to rely on an invalid cache

<p>If the "dns" is enabled but "dns-update" is disabled -&gt; IP is retrieved only one time and
the hostname is no longer stored (maybeHostname is empty).

@return ip
ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/peers/EnodeURLImpl.java