docs: private LookupResult resolveAllAddressesForHostname(Object key) {
  
          try {
              List<ADnsAnswer> ip4Answers = new ArrayList<>();
              List<ADnsAnswer> ip6Answers = new ArrayList<>();
  
              // UnknownHostException is a valid case when the DNS record does not exist. Silently ignore and do not log an error.
              try {
                  ip4Answers = dnsClient.resolveIPv4AddressForHostname(key.toString(), true); // Include IP version
              } catch (UnknownHostException e) {
              }
  
              try {
                  ip6Answers = dnsClient.resolveIPv6AddressForHostname(key.toString(), true); // Include IP version
              } catch (UnknownHostException e) {
              }
  
              // Select answer for single value. Prefer use of IPv4 address. Only return IPv6 address if no IPv6 address found.
              final String singleValue;
              if (CollectionUtils.isNotEmpty(ip4Answers)) {
                  singleValue = ip4Answers.get(0).ipAddress();
              } else if (CollectionUtils.isNotEmpty(ip6Answers)) {
                  singleValue = ip6Answers.get(0).ipAddress();
              } else {
                  LOG.debug("Could not resolve [A/AAAA] records hostname [{}].", key);
                  return LookupResult.empty();
              }
  
              final LookupResult.Builder builder = LookupResult.builder();
              if (StringUtils.isNotBlank(singleValue)) {
                  builder.single(singleValue);
              }
  
              final List<ADnsAnswer> allAnswers = new ArrayList<>();
              allAnswers.addAll(ip4Answers);
              allAnswers.addAll(ip6Answers);
  
              if (CollectionUtils.isNotEmpty(allAnswers)) {
                  builder.multiValue(Collections.singletonMap(RESULTS_FIELD, allAnswers));
              }
  
              assignMinimumTTL(allAnswers, builder);
  
              return builder.build();
          } catch (Exception e) {
              LOG.error("Could not resolve [A/AAAA] records for hostname [{}]. Cause [{}]", key, ExceptionUtils.getRootCauseMessage(e));
              errorCounter.inc();
              return LookupResult.empty();
          }
      }