public static boolean isDnsQueryTimedOut(@Nullable Throwable cause) {
        if (cause == null) {
            return false;
        }
        final Throwable rootCause = Throwables.getRootCause(cause);
        if (rootCause instanceof DnsErrorCauseException) {
            return false;
        }
        if (rootCause instanceof DnsTimeoutException ||
            rootCause instanceof DnsNameResolverTimeoutException) {
            return true;
        }

        if (rootCause instanceof UnknownHostException) {
            for (Throwable suppressedCause : rootCause.getSuppressed()) {
                final Throwable suppressedRootCause = Throwables.getRootCause(suppressedCause);
                if (suppressedRootCause instanceof DnsNameResolverTimeoutException) {
                    return true;
                }
            }
        }

        return false;
    }
Logs a warning message about an invalid record.
core/src/main/java/com/linecorp/armeria/internal/client/dns/DnsUtil.java