Package akka.io.dns

Class DnsSettings$


  • public class DnsSettings$
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static DnsSettings$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      DnsSettings$()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      scala.util.Try<scala.collection.immutable.List<java.net.InetSocketAddress>> getDefaultNameServers​(ExtendedActorSystem system)
      INTERNAL API Find out the default search lists that Java would use normally, e.g.
      java.net.InetSocketAddress parseNameserverAddress​(java.lang.String str)
      INTERNAL API
      • Methods inherited from class java.lang.Object

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

      • MODULE$

        public static final DnsSettings$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • DnsSettings$

        public DnsSettings$()
    • Method Detail

      • parseNameserverAddress

        public java.net.InetSocketAddress parseNameserverAddress​(java.lang.String str)
        INTERNAL API
        Parameters:
        str - (undocumented)
        Returns:
        (undocumented)
      • getDefaultNameServers

        public scala.util.Try<scala.collection.immutable.List<java.net.InetSocketAddress>> getDefaultNameServers​(ExtendedActorSystem system)
        INTERNAL API Find out the default search lists that Java would use normally, e.g. when using InetAddress to resolve domains.

        The default nameservers are attempted to be obtained from: jndi-dns and from sun.net.dnsResolverConfiguration as a fallback (which is expected to fail though when running on JDK9+ due to the module encapsulation of sun packages).

        Based on: https://github.com/netty/netty/blob/4.1/resolver-dns/src/main/java/io/netty/resolver/dns/DefaultDnsServerAddressStreamProvider.java#L58-L146

        Parameters:
        system - (undocumented)
        Returns:
        (undocumented)