DNS解析不可靠 [英] DNS resolution unreliable

查看:109
本文介绍了DNS解析不可靠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在大量线程上使用GetHostEntry.问题在于,有时DNS必须陷入请求的泥潭而无法响应. GetHostEntry不会告诉您DNS是否响应失败或只是没有条目.如何使它更可靠?我正在寻找100%的可靠性.

I''m using GetHostEntry on tons of threads. The problem is that sometimes the DNS must get bogged down by requests and not respond to it. GetHostEntry doesn''t tell you whether the DNS failed to respond or just didn''t have an entry. How do I make this more reliable? I''m looking for 100% reliability. Any help?

推荐答案

我认为您必须更改正在使用的一台或多台DNS服务器上的超时缓存.这样,您要查询的DNS服务器不必将查询转发到下一台DNS服务器,然后再转发到下一台和下一台DNS服务器,一直到根服务器.
I think you have to change timeout cache on one or more DNS servers that you are using. This way, the DNS server you are asking does not have to forward the query to the next and then the next and next DNS server, all the way up to the root server.


这篇关于DNS解析不可靠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆