Class MxLookup
- Object
-
- mireka.transmission.immediate.dns.MxLookup
-
@ThreadSafe public class MxLookup extends ObjectThe MxLookup class determines the MTA servers responsible from a domain by querying the MX records from the DNS system.
-
-
Constructor Summary
Constructors Constructor Description MxLookup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xbill.DNS.Name[]queryMxTargets(Domain domain)Returns an ordered host name list based on the MX records of the domain.
-
-
-
Method Detail
-
queryMxTargets
public org.xbill.DNS.Name[] queryMxTargets(Domain domain) throws MxLookupException
Returns an ordered host name list based on the MX records of the domain. The first has the highest priority. If the domain has no MX records, then it returns the host itself. Records with the same priority are shuffled randomly.
-
-