Package arc.net.dns

Class ArcDns

java.lang.Object
arc.net.dns.ArcDns

public final class ArcDns extends Object
  • Field Details

    • dnsResolverPort

      public static final int dnsResolverPort
      Default dns server port.
      See Also:
  • Constructor Details

    • ArcDns

      public ArcDns()
  • Method Details

    • getNameserverProviders

      public static Seq<NameserverProvider> getNameserverProviders()
    • setNameserverProviders

      public static void setNameserverProviders(Seq<NameserverProvider> providers)
      Set a new ordered list of resolver config providers.
    • getNameservers

      public static Seq<InetSocketAddress> getNameservers()
      Returns all located servers
    • refreshNameservers

      public static void refreshNameservers()
    • getSrvRecords

      public static Seq<SRVRecord> getSrvRecords(String domain)
      Lookup the SRV record of a domain in the format _service._protocol.name with the list of nameservers from getNameservers().
    • getSrvRecords

      public static Seq<SRVRecord> getSrvRecords(String domain, InetSocketAddress nameserver) throws IOException
      Lookup the SRV record of a domain in the format _service._protocol.name. The results are sorted by priority, then by weight.
      Throws:
      IOException