Class AddressLookup


  • @ThreadSafe
    public class AddressLookup
    extends Object
    The AddressLookup class queries the IP address of an MTA or domain by querying the A and AAAA records assigned to the domain name of the MTA.

    This implementation uses Dnsjava, therefore it can provide much more precise error messages than the InetAddress. It also respects DNS TTL values.

    • Constructor Summary

      Constructors 
      Constructor Description
      AddressLookup()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.InetAddress[] queryAddresses​(org.xbill.DNS.Name name)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AddressLookup

        public AddressLookup()
    • Method Detail

      • queryAddresses

        public java.net.InetAddress[] queryAddresses​(org.xbill.DNS.Name name)
                                              throws SendException
        Throws:
        SendException