JVM DNS 缓存和 DNS 循环
JVM DNS 缓存如何处理 DNS 循环? 它是缓存域的所有 IP 地址,然后在它们之间轮换,还是缓存一个 IP 地址,然后将其用于所有未来的请求,直到缓存过期?
How does the JVM DNS cache deal with DNS round robin?
Does it cache all IP addresses for domain and then rotate among them, or does it cache one IP address and then use it for all future requests until cache expires?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
JVM 似乎没有轮换 IP 地址。它只是选取一个地址并在进程的生命周期内使用它。查看来自 SUN/ 的这篇文章甲骨文。唯一的出路似乎是要么完全关闭 DNS 缓存,要么保持较低的 ttl 时间。另请查看以下链接。
http://www.verisigninc.com/assets/stellent/030957.pdf
It seems the JVM does not rotate the IP addresses. It just picks up the one address and uses it for the lifetime of the process. Check out this article from SUN/Oracle. The only way out seems to be either tun off the DNS caching altogether or keep a low ttl time. Check out the following link as well.
http://www.verisigninc.com/assets/stellent/030957.pdf