if (domainList.size() > 0) {
String currentDomain = (String) domainList.remove(0);
DNSRequest dnsRequest;
// check if the connecting ip is ip6. If so lookup AAAA record
if (IPAddr.isIPV6(spfSession.getIpAddress())) {
// Get aaaa record for this
dnsRequest = new DNSRequest(currentDomain, DNSRequest.AAAA);
} else {
// Get a record for this
dnsRequest = new DNSRequest(currentDomain, DNSRequest.A);
}
spfSession.setAttribute(ATTRIBUTE_CURRENT_DOMAIN, currentDomain);
return new DNSLookupContinuation(dnsRequest, PTRMechanism.this);