码迷,mamicode.com
首页 > Web开发 > 详细

io.netty.resolver.dns.DnsNameResolverContext

时间:2018-04-14 10:13:40      阅读:531      评论:0      收藏:0      [点我收藏+]

标签:tor   dns   failure   name   AC   手动   win   thread   efault   

java.net.UnknownHostException: failed to resolve ‘xxx.com‘ after 3 queries
at io.netty.resolver.dns.DnsNameResolverContext.finishResolve(DnsNameResolverContext.java:699)
at io.netty.resolver.dns.DnsNameResolverContext.tryToFinishResolve(DnsNameResolverContext.java:641)
at io.netty.resolver.dns.DnsNameResolverContext.query(DnsNameResolverContext.java:290)
at io.netty.resolver.dns.DnsNameResolverContext.query(DnsNameResolverContext.java:280)
at io.netty.resolver.dns.DnsNameResolverContext.access$600(DnsNameResolverContext.java:60)
at io.netty.resolver.dns.DnsNameResolverContext$3.operationComplete(DnsNameResolverContext.java:322)
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:507)
at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:481)
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:420)
at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:122)
at io.netty.resolver.dns.DnsQueryContext.setFailure(DnsQueryContext.java:222)
at io.netty.resolver.dns.DnsQueryContext.access$300(DnsQueryContext.java:42)
at io.netty.resolver.dns.DnsQueryContext$4.run(DnsQueryContext.java:162)
at io.netty.util.concurrent.PromiseTask$RunnableAdapter.call(PromiseTask.java:38)
at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:120)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:463)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
at java.lang.Thread.run(Thread.java:748)

 

查看 windows 设置的dns服务器 用自动获取可能会拿到局域网的ip  如:192.168.0.1  出了问题 手动设置就可以了 如:8.8.8.8

技术分享图片

查看 linux设置的dns服务器

看看自己转载的这篇文章 http://www.cnblogs.com/LiuPan2016/p/8830244.html

io.netty.resolver.dns.DnsNameResolverContext

标签:tor   dns   failure   name   AC   手动   win   thread   efault   

原文地址:https://www.cnblogs.com/LiuPan2016/p/8830277.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!