try {
lookup = new Lookup(queryDomain, Type.TXT);
} catch (TextParseException e) {
throw new RuntimeException(e);
}
Record[] records = lookup.run();
if (lookup.getResult() != Lookup.SUCCESSFUL
&& lookup.getResult() != Lookup.TYPE_NOT_FOUND) {
logger.warn("Error while looking up TXT record for "
+ "address {} in DNSBL {}: {}", new Object[] { address,
domain, lookup.getErrorString() });