Anybody knows how to get MX address (from for example gmail.com) in java using standard libraries? Or do I need to download external one?
I\'m using netbeans if it
I was also searching for standart lib for this in java. Unsuccessful.
Then I have used dnsjava.
private Record[] lookupMxRecords(final String domainPart) throw TextParseException { final Lookup dnsLookup = new Lookup(domainPart, Type.MX); return dnsLookup.run(); }