public static InetAddress getByName(final String urlAddr) {
        return FunctionUtils.doAndHandle(() -> {
            val url = new URI(urlAddr).toURL();
            return InetAddress.getAllByName(url.getHost())[0];
        }, e -> {
            LOGGER.trace("Host name could not be determined automatically.", e);
            return null;
        }).get();
    }
Gets by name.

@param urlAddr the host
@return the by name
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/InetAddressUtils.java