Optional<String> resolveRawRecord(final String domainName) {
    LOG.trace("Resolving TXT records on domain: {}", domainName);
    try {
      // Future.await parks current virtual thread and waits for the result. Any failure is
      // thrown as a Throwable.
      return Future.await(dnsClient.resolveTXT(domainName)).stream().findFirst();
    } catch (final Throwable e) {
      LOG.trace("Error while resolving TXT records on domain: {}", domainName, e);
      return Optional.empty();
    }
  }
Resolves the first TXT record for a domain name and returns it.

@param domainName the name of the DNS domain to query
@return the first TXT entry of the DNS record. Empty if no record is found.
ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/dns/DNSResolver.java