Resolver resolver = new SimpleResolver();
// lookup.setResolver(resolver);
// lookup.setCache(null);
for (Record dnsRecord: lookup.run()) {
MXRecord record = (MXRecord)dnsRecord;
System.out.println(record.getPriority() + " " + record.rdataToString());
}
}
}