Class Dns

java.lang.Object
overit.geocall.util.Dns

public class Dns extends Object
Utility class used to manage the DNS
  • Field Details

  • Constructor Details

    • Dns

      public Dns(String host)
      Method constructor of DNS
      Parameters:
      host - A string containing the host
  • Method Details

    • lookupDomainServices

      public Dns.SRV[] lookupDomainServices(String domain, String service) throws NamingException
      Method used to retrive the Service records
      Parameters:
      domain - The domain
      service - The service
      Returns:
      An array of SRV
      Throws:
      NamingException - if an exeption occurs during the Context and/or DirContext interfaces
    • main

      public static void main(String[] args) throws NamingException
      Throws:
      NamingException