classes.io.netty.resolver.dns.DnsNameResolver.class Maven / Gradle / Ivy
???? 2? ?
?? ?? ??
???
? ???
? ?? ?
?? ?? ?? ?
?? ?? ?
?? ? ?? ?? ?
?? ?? ?? ? ?? ?? ?? ?? ?? ? ?
?? ?? ?
?? ???
+?
??
+?
+? ??
??
+?? K?
3??
6?
+?
3? ??
+???? ?? =??
@??? =??
D???
?? =? =?
??? !?
???
?? ??
??
??
?? ??
??
??
??
???? ?? ?? ???
]? ???
`?
??
`?
?? ????? ????
j?
j?
??
??
??
???
q? ???
t?
??
??
???
y?
y??
y?
??
??
??
??
??
? =
?
?
?
?
?
?
? ? ? ?
? ? ?
?t
?
!" ?# $% ?&'
??(
??) DnsResponseHandler InnerClasses ListResolverContext SingleResolverContext logger /Lio/netty/util/internal/logging/InternalLogger; LOCALHOST Ljava/lang/String;
ConstantValue LOCALHOST_ADDRESS Ljava/net/InetAddress; DEFAULT_RESOLVE_ADDRESS_TYPES 1[Lio/netty/channel/socket/InternetProtocolFamily; DEFAULT_SEACH_DOMAINS [Ljava/lang/String; DECODER 7Lio/netty/handler/codec/dns/DatagramDnsResponseDecoder; ENCODER 4Lio/netty/handler/codec/dns/DatagramDnsQueryEncoder; nameServerAddresses *Lio/netty/resolver/dns/DnsServerAddresses;
channelFuture !Lio/netty/util/concurrent/Future; Signature =Lio/netty/util/concurrent/Future; ch )Lio/netty/channel/socket/DatagramChannel; queryContextManager .Lio/netty/resolver/dns/DnsQueryContextManager; resolveCache Lio/netty/resolver/dns/DnsCache; nameServerAddrStream *Lio/netty/util/concurrent/FastThreadLocal; ZLio/netty/util/concurrent/FastThreadLocal; queryTimeoutMillis J maxQueriesPerResolve I traceEnabled Z resolvedAddressTypes recursionDesired maxPayloadSize optResourceEnabled hostsFileEntriesResolver ,Lio/netty/resolver/HostsFileEntriesResolver;
searchDomains ndots $assertionsDisabled (Lio/netty/channel/EventLoop;Lio/netty/channel/ChannelFactory;Lio/netty/resolver/dns/DnsServerAddresses;Lio/netty/resolver/dns/DnsCache;J[Lio/netty/channel/socket/InternetProtocolFamily;ZIZIZLio/netty/resolver/HostsFileEntriesResolver;[Ljava/lang/String;I)V Code LineNumberTable LocalVariableTable this 'Lio/netty/resolver/dns/DnsNameResolver; eventLoop Lio/netty/channel/EventLoop; channelFactory !Lio/netty/channel/ChannelFactory; b Lio/netty/bootstrap/Bootstrap; responseHandler :Lio/netty/resolver/dns/DnsNameResolver$DnsResponseHandler; LocalVariableTypeTable MLio/netty/channel/ChannelFactory<+Lio/netty/channel/socket/DatagramChannel;>;-(Lio/netty/channel/EventLoop;Lio/netty/channel/ChannelFactory<+Lio/netty/channel/socket/DatagramChannel;>;Lio/netty/resolver/dns/DnsServerAddresses;Lio/netty/resolver/dns/DnsCache;J[Lio/netty/channel/socket/InternetProtocolFamily;ZIZIZLio/netty/resolver/HostsFileEntriesResolver;[Ljava/lang/String;I)V "()Lio/netty/resolver/dns/DnsCache; ()J ()Ljava/util/List; D()Ljava/util/List; resolveAddressTypesUnsafe 3()[Lio/netty/channel/socket/InternetProtocolFamily; ()[Ljava/lang/String; ()I isRecursionDesired ()Z isTraceEnabled isOptResourceEnabled .()Lio/netty/resolver/HostsFileEntriesResolver; close ()V
StackMapTable executor ()Lio/netty/channel/EventLoop; resolveHostsFileEntry *(Ljava/lang/String;)Ljava/net/InetAddress; address hostname* doResolve 7(Ljava/lang/String;Lio/netty/util/concurrent/Promise;)V inetHost promise "Lio/netty/util/concurrent/Promise; :Lio/netty/util/concurrent/Promise;
Exceptions O(Ljava/lang/String;Lio/netty/util/concurrent/Promise;)V W(Ljava/lang/String;Lio/netty/util/concurrent/Promise;Lio/netty/resolver/dns/DnsCache;)V bytes [B hostsFileEntry" o(Ljava/lang/String;Lio/netty/util/concurrent/Promise;Lio/netty/resolver/dns/DnsCache;)V doResolveCached W(Ljava/lang/String;Lio/netty/util/concurrent/Promise;Lio/netty/resolver/dns/DnsCache;)Z e %Lio/netty/resolver/dns/DnsCacheEntry; i f 0Lio/netty/channel/socket/InternetProtocolFamily; arr$ len$ i$
numEntries
cachedEntries Ljava/util/List; cause Ljava/lang/Throwable; 7Ljava/util/List;!
+, o(Ljava/lang/String;Lio/netty/util/concurrent/Promise;Lio/netty/resolver/dns/DnsCache;)Z
setSuccess ;(Lio/netty/util/concurrent/Promise;Ljava/net/InetAddress;)V result S(Lio/netty/util/concurrent/Promise;Ljava/net/InetAddress;)V doResolveUncached ctx =Lio/netty/resolver/dns/DnsNameResolver$SingleResolverContext; doResolveAll LLio/netty/util/concurrent/Promise;>; a(Ljava/lang/String;Lio/netty/util/concurrent/Promise;>;)V ?(Ljava/lang/String;Lio/netty/util/concurrent/Promise;>;Lio/netty/resolver/dns/DnsCache;)V doResolveAllCached (Ljava/util/List;? ?(Ljava/lang/String;Lio/netty/util/concurrent/Promise;>;Lio/netty/resolver/dns/DnsCache;)Z doResolveAllUncached .Lio/netty/resolver/dns/DnsNameResolverContext; XLio/netty/resolver/dns/DnsNameResolverContext;>; &(Ljava/lang/String;)Ljava/lang/String; query K(Lio/netty/handler/codec/dns/DnsQuestion;)Lio/netty/util/concurrent/Future; question (Lio/netty/handler/codec/dns/DnsQuestion; ?(Lio/netty/handler/codec/dns/DnsQuestion;)Lio/netty/util/concurrent/Future;>; _(Lio/netty/handler/codec/dns/DnsQuestion;Ljava/lang/Iterable;)Lio/netty/util/concurrent/Future;
additional Ljava/lang/Iterable; ; ?(Lio/netty/handler/codec/dns/DnsQuestion;Ljava/lang/Iterable;)Lio/netty/util/concurrent/Future;>; m(Lio/netty/handler/codec/dns/DnsQuestion;Lio/netty/util/concurrent/Promise;)Lio/netty/util/concurrent/Future; ?Lio/netty/util/concurrent/Promise;>;F(Lio/netty/handler/codec/dns/DnsQuestion;Lio/netty/util/concurrent/Promise;>;)Lio/netty/util/concurrent/Future;>; nextNameServerAddress ()Ljava/net/InetSocketAddress; g(Ljava/net/InetSocketAddress;Lio/netty/handler/codec/dns/DnsQuestion;)Lio/netty/util/concurrent/Future; nameServerAddr Ljava/net/InetSocketAddress; ?(Ljava/net/InetSocketAddress;Lio/netty/handler/codec/dns/DnsQuestion;)Lio/netty/util/concurrent/Future;>; {(Ljava/net/InetSocketAddress;Lio/netty/handler/codec/dns/DnsQuestion;Ljava/lang/Iterable;)Lio/netty/util/concurrent/Future;(Ljava/net/InetSocketAddress;Lio/netty/handler/codec/dns/DnsQuestion;Ljava/lang/Iterable;)Lio/netty/util/concurrent/Future;>; ?(Ljava/net/InetSocketAddress;Lio/netty/handler/codec/dns/DnsQuestion;Lio/netty/util/concurrent/Promise;)Lio/netty/util/concurrent/Future;b(Ljava/net/InetSocketAddress;Lio/netty/handler/codec/dns/DnsQuestion;Lio/netty/util/concurrent/Promise;>;)Lio/netty/util/concurrent/Future;>; ?(Ljava/net/InetSocketAddress;Lio/netty/handler/codec/dns/DnsQuestion;Ljava/lang/Iterable;Lio/netty/util/concurrent/Promise;)Lio/netty/util/concurrent/Future;?(Ljava/net/InetSocketAddress;Lio/netty/handler/codec/dns/DnsQuestion;Ljava/lang/Iterable;Lio/netty/util/concurrent/Promise;>;)Lio/netty/util/concurrent/Future;>; query0 Ljava/lang/Exception; castPromise ?Lio/netty/util/concurrent/Promise;>;-./ cast F(Lio/netty/util/concurrent/Promise;)Lio/netty/util/concurrent/Promise; %Lio/netty/util/concurrent/Promise<*>; ?(Lio/netty/util/concurrent/Promise<*>;)Lio/netty/util/concurrent/Promise;>; *()Lio/netty/util/concurrent/EventExecutor;
access$000 9()Lio/netty/handler/codec/dns/DatagramDnsResponseDecoder;
access$100 6()Lio/netty/handler/codec/dns/DatagramDnsQueryEncoder;
access$300 x0 x1
access$400 1()Lio/netty/util/internal/logging/InternalLogger; configClass Ljava/lang/Class; open Ljava/lang/reflect/Method; nameservers instance Ljava/lang/Object; list ignore Ljava/lang/Class<*>; $Ljava/util/List;
SourceFile DnsNameResolver.java ? ?/0 ? ? ? ? ?0 ,io/netty/resolver/dns/DnsQueryContextManager ? ? ? ? 'io/netty/resolver/dns/DnsNameResolver$1 ?1 ? ?234 (io/netty/resolver/dns/DnsServerAddresses ? ?56 ? ?78 ? ? ? ?59 ? ? ? ? ? ? ? ? *io/netty/resolver/HostsFileEntriesResolver ? ? ? ? ?:; ? ?<9 ? ? io/netty/bootstrap/Bootstrap=> ??@ABCDEFG 8io/netty/resolver/dns/DnsNameResolver$DnsResponseHandlerHI ?J 'io/netty/resolver/dns/DnsNameResolver$2 ?KLMNO ? ?PQRST 'io/netty/channel/socket/DatagramChannel ? ?UV *io/netty/channel/FixedRecvByteBufAllocator ?WXYZ[Q 'io/netty/resolver/dns/DnsNameResolver$3 ?\]^_`ab ? ?Qg io/netty/channel/EventLoopcd ? localhostef ? ?ghi*jk/lA3+mno ?p ? ? ? java/lang/AssertionErrormq #io/netty/resolver/dns/DnsCacheEntry$rstuvwxy )Failed to notify failure to a promise: {}z{|}w .Failed to notify success ({}) to a promise: {} ;io/netty/resolver/dns/DnsNameResolver$SingleResolverContext ?~?6???:> java/util/ArrayList?w 9io/netty/resolver/dns/DnsNameResolver$ListResolverContext???A??? java/lang/StringBuilder?? .??OPBQBU? ?BY?m; ,io/netty/resolver/dns/DnsServerAddressStream?P ?[Y io/netty/util/concurrent/Promisecd %io/netty/resolver/dns/DnsQueryContext ??B ? java/lang/Exception?? %io/netty/resolver/dns/DnsNameResolver? ????? ? .io/netty/channel/socket/InternetProtocolFamily? ? ???? ???? !sun.net.dns.ResolverConfiguration?? java/lang/Class??
searchlist java/lang/Object??? java/util/List java/lang/String???? ? ? ? 5io/netty/handler/codec/dns/DatagramDnsResponseDecoder 2io/netty/handler/codec/dns/DatagramDnsQueryEncoder "io/netty/resolver/InetNameResolver java/net/InetAddress io/netty/resolver/dns/DnsCache java/lang/Throwable java/net/InetSocketAddress &io/netty/handler/codec/dns/DnsQuestion java/lang/Iterable +(Lio/netty/util/concurrent/EventExecutor;)V *(Lio/netty/resolver/dns/DnsNameResolver;)V !io/netty/util/internal/ObjectUtil checkNotNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkPositive (JLjava/lang/String;)J
checkNonEmpty :([Ljava/lang/Object;Ljava/lang/String;)[Ljava/lang/Object; (ILjava/lang/String;)I clone ()Ljava/lang/Object; checkPositiveOrZero group I(Lio/netty/channel/EventLoopGroup;)Lio/netty/bootstrap/AbstractBootstrap; I(Lio/netty/channel/ChannelFactory;)Lio/netty/bootstrap/AbstractBootstrap; io/netty/channel/ChannelOption 'DATAGRAM_CHANNEL_ACTIVE_ON_REGISTRATION Lio/netty/channel/ChannelOption; java/lang/Boolean valueOf (Z)Ljava/lang/Boolean; option Z(Lio/netty/channel/ChannelOption;Ljava/lang/Object;)Lio/netty/bootstrap/AbstractBootstrap;
newPromise $()Lio/netty/util/concurrent/Promise; L(Lio/netty/resolver/dns/DnsNameResolver;Lio/netty/util/concurrent/Promise;)V d(Lio/netty/resolver/dns/DnsNameResolver;Lio/netty/resolver/dns/DnsNameResolver$DnsResponseHandler;)V handler I(Lio/netty/channel/ChannelHandler;)Lio/netty/bootstrap/AbstractBootstrap;
access$200 ^(Lio/netty/resolver/dns/DnsNameResolver$DnsResponseHandler;)Lio/netty/util/concurrent/Promise; register "()Lio/netty/channel/ChannelFuture; io/netty/channel/ChannelFuture channel ()Lio/netty/channel/Channel; config 1()Lio/netty/channel/socket/DatagramChannelConfig; (I)V -io/netty/channel/socket/DatagramChannelConfig setRecvByteBufAllocator X(Lio/netty/channel/RecvByteBufAllocator;)Lio/netty/channel/socket/DatagramChannelConfig; closeFuture J(Lio/netty/resolver/dns/DnsNameResolver;Lio/netty/resolver/dns/DnsCache;)V addListener R(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelFuture; java/util/Arrays asList %([Ljava/lang/Object;)Ljava/util/List; isOpen (io/netty/util/internal/PlatformDependent isWindows equalsIgnoreCase (Ljava/lang/String;)Z io/netty/util/NetUtil "createByteArrayFromIpAddressString (Ljava/lang/String;)[B getByAddress ([B)Ljava/net/InetAddress; 6(Ljava/lang/Object;)Lio/netty/util/concurrent/Promise; get $(Ljava/lang/String;)Ljava/util/List; isEmpty size (I)Ljava/lang/Object; ()Ljava/lang/Throwable; addressType ()Ljava/lang/Class; ()Ljava/net/InetAddress;
isInstance (Ljava/lang/Object;)Z
tryFailure (Ljava/lang/Throwable;)Z -io/netty/util/internal/logging/InternalLogger warn 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
trySuccess ?(Lio/netty/resolver/dns/DnsNameResolver;Lio/netty/resolver/dns/DnsNameResolver;Ljava/lang/String;Lio/netty/resolver/dns/DnsCache;)V resolve %(Lio/netty/util/concurrent/Promise;)V java/util/Collections
singletonList $(Ljava/lang/Object;)Ljava/util/List; add ,io/netty/resolver/dns/DnsNameResolverContext java/net/IDN toASCII !io/netty/util/internal/StringUtil endsWith (Ljava/lang/CharSequence;C)Z append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; emptyList (io/netty/util/concurrent/FastThreadLocal next ?(Lio/netty/resolver/dns/DnsNameResolver;Ljava/net/InetSocketAddress;Lio/netty/handler/codec/dns/DnsQuestion;Ljava/lang/Iterable;Lio/netty/util/concurrent/Promise;)V
setFailure 9(Ljava/lang/Throwable;)Lio/netty/util/concurrent/Promise; desiredAssertionStatus 4io/netty/util/internal/logging/InternalLoggerFactory getInstance B(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger; isIpV4StackPreferred IPv4
LOCALHOST4 Ljava/net/Inet4Address; isIpV6AddressesPreferred IPv6
LOCALHOST6 Ljava/net/Inet6Address; forName %(Ljava/lang/String;)Ljava/lang/Class; getMethod @(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; java/lang/reflect/Method invoke 9(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; toArray (([Ljava/lang/Object;)[Ljava/lang/Object; "io/netty/util/internal/EmptyArrays
EMPTY_STRINGS ! ? ? ? ? ? ? ? N ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? * ? ? ? ~ :*+? *? Y? ? *? Y*?
? ,?
W*-?
? ? *? ? *? ? ? *? * ? ? *
? *? ? *? *
?
? !? "*? #*$?
? %? &? %? '*(? )? *? +Y? ,:*? -? .W,? /W? 0? 1? 2W? 3Y**? -? 4 ? 5:? 6Y*? 7? 8W*? 9? :*? ;? < ? =? >*? >? ? ? @Y? A? B W*? >? C ? DY*? E? F W? ? n ? z ? ? # ? 0 ? ; ? I ? O ? Z ? ` ? k ? q ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?9 ? ? ? : ? ? : ? ? : ? ? : ? ? : ? ? : ? ? : ? ? : ? ? : ? ? : ? ?
: ? ? : ? ? : ? ?
: ? ? : ? ? ? ? ? ? ? \ ? ? ? : ? ? ? ? ? ? ? / *? #? ? ? ? ? ? ? ? ? / *? ? ? ? ? ? ? ? ? ? 2 *? ? G? ? ? ? ? ? ? ? ? ? ? / *? ? ? ? ? ? ? ? ? ? / *? '? ? ? ? ? ? ? ? ? / *? *? ? ? ? ? ? ? ? / *? ? ? ? ? ? ? ? ? / *? ? ? ? ? ? ? ? ? / *? ? ? ? ? ? ? ? ? / *? ? ? ? ? ? ? ? ? / *? ? ? ' ? ? ? ? ? ? / *? "? ? / ? ? ? ? ? ? R *? >? H ?
*? >? I W? ? 9 : <